View source: R/readBrukerFlexDir-functions.R
readBrukerFlexDir | R Documentation |
This function leads recursively all mass spectrometry data in Bruker Daltonics XMASS format in a specified directory.
readBrukerFlexDir(
brukerFlexDir,
removeCalibrationScans = TRUE,
removeMetaData = FALSE,
useHpc = TRUE,
useSpectraNames = TRUE,
filterZeroIntensities = FALSE,
verbose = FALSE
)
brukerFlexDir |
|
removeCalibrationScans |
|
removeMetaData |
|
useHpc |
|
useSpectraNames |
|
filterZeroIntensities |
|
verbose |
|
See readBrukerFlexFile
.
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.
importBrukerFlex
,
readBrukerFlexFile
,
.hpc
## load library
library("readBrukerFlexData")
## get examples directory
exampleDirectory <- system.file("Examples", package="readBrukerFlexData")
## read example spectra
spec <- readBrukerFlexDir(file.path(exampleDirectory,
"2010_05_19_Gibb_C8_A1"))
## 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] <- spec[[i]]$metaData$fullName
}
## draw legend
legend(x="topright", legend=legendStr, col=rainbow(l), lwd=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.