SpectrumAccessOpenMS#

class pyopenms.SpectrumAccessOpenMS#

Bases: object

Cython implementation of _SpectrumAccessOpenMS

Original C++ documentation is available here

– Inherits from [‘ISpectrumAccess’]

__init__()#

Overload:

__init__(self) None

Overload:

__init__(self, in_0: SpectrumAccessOpenMS) None

Overload:

__init__(self, ms_experiment: MSExperiment) None

Methods

__init__

Overload:

getChromatogramById(self, id_)

Returns a pointer to a chromatogram at the given id

getChromatogramNativeID(self, id_)

getNrChromatograms(self)

Returns the number of chromatograms available

getNrSpectra(self)

Returns the number of spectra available

getSpectraByRT(self, RT, deltaRT)

Returns a vector of ids of spectra that are within RT +/- deltaRT

getSpectrumById(self, id_)

Returns a pointer to a spectrum at the given string id

getChromatogramById(self, id_: int) OSChromatogram#

Returns a pointer to a chromatogram at the given id

getChromatogramNativeID(self, id_: int) str#
getNrChromatograms(self) int#

Returns the number of chromatograms available

getNrSpectra(self) int#

Returns the number of spectra available

getSpectraByRT(self, RT: float, deltaRT: float) List[int]#

Returns a vector of ids of spectra that are within RT +/- deltaRT

getSpectrumById(self, id_: int) OSSpectrum#

Returns a pointer to a spectrum at the given string id