View source: R/SpectraFromMzML.R
createSpectraFromMzML | R Documentation |
The function createSpectraFromMzML
creates a (single) Spectra
object from all mzML files found in path
.
createSpectraFromMzML(path = ".", type = "")
path |
|
type |
|
The functions imports mzML files by either Spectra::Spectra
and the
MsBackendMzR
backend or MSnbase::readSRMData
.
The entries in the returned Spectra
object are separable by
Spectra$dataOrigin
.
The type
argument specifies the underlying technology of the
mzML files. Depending on the technology the quantitative information will
be stored in different lists within the mzML files. In case of
selected reaction monitoring (SRM)- or multiple reaction monitoring
(MRM)-derived files, the intensities and m/z values are stored in
chromatogram
entries within chromatogramList
. In this case,
type
has to be set to "SRM"
or "MRM"
. Typically,
the intensities and m/z values are stored in spectrum
entries
within spectrumList
. In this case, type
has to be set
to any other value than "SRM"
or "MRM"
.
Spectra
object
Thomas Naake
## for non-SRM and non-MRM files path <- system.file("sciex", package = "msdata") createSpectraFromMzML(path = path) ## for SRM and MRM files path <- system.file("srm", package = "MsQualityUtils") createSpectraFromMzML(path = path, type = "SRM")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.