89 std::shared_ptr<OpenSwath::ISpectrumAccess>
lightClone()
const override;
122 std::vector<std::size_t>
getSpectraByRT(
double RT,
double deltaRT)
const override;
The representation of a chromatogram.
Definition MSChromatogram.h:30
In-Memory representation of a mass spectrometry run.
Definition MSExperiment.h:49
The representation of a 1D spectrum.
Definition MSSpectrum.h:44
OpenSwath::ISpectrumAccess implementation that holds the complete spectrum / chromatogram payload in ...
Definition SpectrumAccessOpenMSInMemory.h:47
std::shared_ptr< OpenSwath::ISpectrumAccess > lightClone() const override
Return a clone of this accessor as a new OpenSwath::ISpectrumAccess.
OpenMS::PeakMap MSExperimentType
Definition SpectrumAccessOpenMSInMemory.h:49
size_t getNrSpectra() const override
Number of spectra cached in memory.
~SpectrumAccessOpenMSInMemory() override
Destructor.
OpenMS::MSSpectrum MSSpectrumType
Definition SpectrumAccessOpenMSInMemory.h:50
SpectrumAccessOpenMSInMemory(const SpectrumAccessOpenMSInMemory &rhs)
Copy constructor (light copy).
size_t getNrChromatograms() const override
Number of chromatograms cached in memory.
OpenMS::MSChromatogram MSChromatogramType
Definition SpectrumAccessOpenMSInMemory.h:51
std::vector< OpenSwath::ChromatogramPtr > chromatograms_
Chromatogram payloads captured at construction; shared with light clones.
Definition SpectrumAccessOpenMSInMemory.h:155
OpenSwath::ChromatogramPtr getChromatogramById(int id) override
Look up one chromatogram by index.
std::vector< std::string > chromatogram_ids_
Parallel chromatogram native-id cache keyed on the same index.
Definition SpectrumAccessOpenMSInMemory.h:156
std::vector< OpenSwath::SpectrumPtr > spectra_
Spectrum payloads captured at construction; shared with light clones.
Definition SpectrumAccessOpenMSInMemory.h:152
OpenSwath::SpectrumPtr getSpectrumById(int id) override
Look up one spectrum by index.
std::vector< OpenSwath::SpectrumMeta > spectra_meta_
Parallel metadata cache (native id, RT, MS level) keyed on the same index.
Definition SpectrumAccessOpenMSInMemory.h:153
std::string getChromatogramNativeID(int id) const override
Native id of one cached chromatogram.
std::vector< std::size_t > getSpectraByRT(double RT, double deltaRT) const override
Indices of cached spectra whose RT lies in [RT - deltaRT, RT + deltaRT].
SpectrumAccessOpenMSInMemory(OpenSwath::ISpectrumAccess &origin)
Construct by reading every spectrum and chromatogram from origin into memory.
OpenSwath::SpectrumMeta getSpectrumMetaById(int id) const override
Look up one spectrum's metadata by index.
The interface of a mass spectrometry experiment.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:30
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::shared_ptr< Chromatogram > ChromatogramPtr
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/DataStructures.h:153
std::shared_ptr< Spectrum > SpectrumPtr
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/DataStructures.h:291