Giter Site home page Giter Site logo

q3ml's Introduction

q3ML

Lifecycle: stable R-CMD-check codecov License

Pwiz Free Parsing for Selective Reaction Monitoring (SRM) Mass Spectrometry (MS) .mzML Files

Installation

q3ML can de installed directly from GitHub using the remotes packages

remotes::install_github('wilsontom/q3ML')

Learn More

The package documentation can be browsed online at https://wilsontom/github.io/q3ML.

Quick Start

For mzML files that have been converted using msconvert pwiz Version 3.0.2000 or lower, then mzR should be used to open the files.

library(q3ML)

mzml_files <- list.files(system.file('extdata', package = 'q3ML'),
                         full.names = TRUE)


Pwiz_301 <- openFile(mzml_files[1])                         
! Use mzR for files converted with pwiz version <= 3.0.2000

Pwiz_301 <- mzR::openMSfile(mzml_files[1])

> Pwiz_V3_01
Mass Spectrometry file handle.
Filename:  QC01_pwiz3_0_1.mzML 
Number of scans:  0 

For .mzML files which have been created using msconvert pwiz Version > 3.0.2 then q3ML can be used to parse the file, if mzR throws an error.

Pwiz_V3_02 <- mzR::openMSfile(mzml_files[2])

Error: Can not open file /home/R/x86_64-pc-linux-gnu-library/4.1/q3ML/extdata/QC01_pwiz3_0_2.mzML! 
Original error was: Error in pwizModule$open(filename): [IO::HandlerBinaryDataArray] Unknown binary data type.

Pwiz_V3_02 <- openFile(mzml_files[2])



identical(Pwiz_V3_02$header,mzR::chromatogramHeader(Pwiz_V3_01))
[1] TRUE

identical(Pwiz_V3_02$peaks,mzR::chromatograms(Pwiz_V3_01))
[1] TRUE

q3ml's People

Contributors

wilsontom avatar

Watchers

 avatar  avatar

Forkers

lukewhiley

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.