View source: R/getset_MSData.R
getSpectra | R Documentation |
get a list of spectra using indices from the OnDiskMSnExp object
getSpectra(data, ...) ## S3 method for class 'reactivevalues' getSpectra(data, ...) ## S3 method for class 'OnDiskMSnExp' getSpectra(data, index, xcmsRawobject = NULL, SpectrumClass = F)
data |
an OnDiskMSnExp or MseekValues (reactivevalues) object |
... |
arguments passed to |
index |
a numeric vector of scan indices |
xcmsRawobject |
list of xcmsRaw objects |
SpectrumClass |
if TRUE, will return a list of Spectum class objects, otherwise will return a list of matrices with mz and intensity values |
a list of Spectrum1 or Spectrum2 objects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.