Title: | Reads Mass Spectrometry Data in mzXML Format |
---|---|
Description: | Functions for reading mass spectrometry data in mzXML format. |
Authors: | Sebastian Gibb [aut, cre] |
Maintainer: | Sebastian Gibb <[email protected]> |
License: | GPL (>= 3) |
Version: | 2.8.3 |
Built: | 2024-11-11 02:58:01 UTC |
Source: | https://github.com/sgibb/readmzxmldata |
The package reads mass spectrometry data in mzXML format.
Main functions:
readMzXmlFile
: Reads mass spectrometry data in mzXML format.
readMzXmlDir
: Reads recursively mass spectrometry data in mzXML
format in a specific directory.
mqReadMzXml
: Reads mass spectrometry data into MALDIquant.
Sebastian Gibb [email protected]
See website: https://strimmerlab.github.io/software/maldiquant/
Reads recursively all mass spectrometry data in mzXML format in a specified directory.
readMzXmlDir( mzXmlDir, removeCalibrationScans = TRUE, removeMetaData = FALSE, rewriteNames = TRUE, fileExtension = "mzXML", verbose = FALSE )
readMzXmlDir( mzXmlDir, removeCalibrationScans = TRUE, removeMetaData = FALSE, rewriteNames = TRUE, fileExtension = "mzXML", verbose = FALSE )
mzXmlDir |
|
removeCalibrationScans |
|
removeMetaData |
|
rewriteNames |
|
fileExtension |
|
verbose |
|
See readMzXmlFile
.
A list of spectra.
[[1]]spectrum$mass
: A vector of calculated mass.
[[1]]spectrum$intensity
: A vector of intensity values.
[[1]]metaData
: A list of metaData depending on read spectrum.
Sebastian Gibb [email protected]
## load library library("readMzXmlData") ## get examples directory exampleDirectory <- system.file("Examples", package="readMzXmlData") ## read example spectra spec <- readMzXmlDir(exampleDirectory) ## plot spectra plot(spec[[1]]$spectrum$mass, spec[[1]]$spectrum$intensity, type="n") l <- length(spec) legendStr <- character(l) for (i in seq(along=spec)) { lines(spec[[i]]$spectrum$mass, spec[[i]]$spectrum$intensity, type="l", col=rainbow(l)[i]) legendStr[i] <- basename(spec[[i]]$metaData$file) } ## draw legend legend(x="topright", legend=legendStr, col=rainbow(l), lwd=1)
## load library library("readMzXmlData") ## get examples directory exampleDirectory <- system.file("Examples", package="readMzXmlData") ## read example spectra spec <- readMzXmlDir(exampleDirectory) ## plot spectra plot(spec[[1]]$spectrum$mass, spec[[1]]$spectrum$intensity, type="n") l <- length(spec) legendStr <- character(l) for (i in seq(along=spec)) { lines(spec[[i]]$spectrum$mass, spec[[i]]$spectrum$intensity, type="l", col=rainbow(l)[i]) legendStr[i] <- basename(spec[[i]]$metaData$file) } ## draw legend legend(x="topright", legend=legendStr, col=rainbow(l), lwd=1)
Reads mass spectrometry data in mzXML format defined in http://tools.proteomecenter.org/wiki/index.php?title=Formats:mzXML
readMzXmlFile(mzXmlFile, removeMetaData = FALSE, verbose = FALSE)
readMzXmlFile(mzXmlFile, removeMetaData = FALSE, verbose = FALSE)
mzXmlFile |
|
removeMetaData |
|
verbose |
|
A list of spectra and metadata.
spectrum$mass
: A vector of calculated mass.
spectrum$intensity
: A vector of intensity values.
metaData
: A list of metaData depending on read spectrum.
Sebastian Gibb [email protected]
Definition of mzXML
format:
http://tools.proteomecenter.org/wiki/index.php?title=Formats:mzXML
## load library library("readMzXmlData") ## get examples directory exampleDirectory <- system.file("Examples", package="readMzXmlData") ## read example spectrum spec <- readMzXmlFile(file.path(exampleDirectory, "A1-0_A1.mzXML")) ## print metaData print(spec$metaData) ## plot spectrum plot(spec$spectrum$mass, spec$spectrum$intensity, type="l")
## load library library("readMzXmlData") ## get examples directory exampleDirectory <- system.file("Examples", package="readMzXmlData") ## read example spectrum spec <- readMzXmlFile(file.path(exampleDirectory, "A1-0_A1.mzXML")) ## print metaData print(spec$metaData) ## plot spectrum plot(spec$spectrum$mass, spec$spectrum$intensity, type="l")