getSpectra: getSpectra

View source: R/getset_MSData.R

getSpectraR Documentation

getSpectra

Description

get a list of spectra using indices from the OnDiskMSnExp object

Usage

getSpectra(data, ...)

## S3 method for class 'reactivevalues'
getSpectra(data, ...)

## S3 method for class 'OnDiskMSnExp'
getSpectra(data, index, xcmsRawobject = NULL, SpectrumClass = F)

Arguments

data

an OnDiskMSnExp or MseekValues (reactivevalues) object

...

arguments passed to getSpectra.OnDiskMSnExp

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

Value

a list of Spectrum1 or Spectrum2 objects


mjhelf/Mosaic documentation built on April 28, 2022, 11:32 a.m.