133 std::shared_ptr<OpenSwath::ISpectrumAccess>
lightClone()
const override;
165 void getAllSpectra(std::vector< OpenSwath::SpectrumPtr > & spectra, std::vector< OpenSwath::SpectrumMeta > & spectra_meta)
const;
175 std::vector<std::size_t>
getSpectraByRT(
double RT,
double deltaRT)
const override;
Sqlite handler for storing spectra and chromatograms in sqMass format.
Definition MzMLSqliteHandler.h:52
The representation of a chromatogram.
Definition MSChromatogram.h:30
The representation of a 1D spectrum.
Definition MSSpectrum.h:44
OpenSwath::ISpectrumAccess implementation backed by an sqMass (SQLite) spectrum store.
Definition SpectrumAccessSqMass.h:76
std::shared_ptr< OpenSwath::ISpectrumAccess > lightClone() const override
Return a copy of this accessor as a new OpenSwath::ISpectrumAccess pointer.
size_t getNrSpectra() const override
Number of spectra in the visible view.
SpectrumAccessSqMass(const SpectrumAccessSqMass &sp, const std::vector< int > &indices)
Construct a narrower view of an existing accessor.
OpenMS::MSSpectrum MSSpectrumType
Definition SpectrumAccessSqMass.h:79
SpectrumAccessSqMass(const SpectrumAccessSqMass &rhs)
Copy constructor.
SpectrumAccessSqMass(const OpenMS::Internal::MzMLSqliteHandler &handler)
Construct from an sqMass handler exposing every spectrum it contains.
OpenMS::Internal::MzMLSqliteHandler handler_
Handler for the underlying sqMass file (copied by value into each accessor / clone)
Definition SpectrumAccessSqMass.h:214
size_t getNrChromatograms() const override
Number of chromatograms in the underlying sqMass file.
OpenMS::MSChromatogram MSChromatogramType
Definition SpectrumAccessSqMass.h:80
void getAllSpectra(std::vector< OpenSwath::SpectrumPtr > &spectra, std::vector< OpenSwath::SpectrumMeta > &spectra_meta) const
Batch-load every spectrum in the visible view into memory.
std::vector< int > sidx_
Optional subset of absolute spectrum indices; empty means "all spectra in the file are visible".
Definition SpectrumAccessSqMass.h:216
SpectrumAccessSqMass(const OpenMS::Internal::MzMLSqliteHandler &handler, const std::vector< int > &indices)
Construct from an sqMass handler exposing only the spectra at the given indices.
OpenSwath::ChromatogramPtr getChromatogramById(int id) override
Not supported on sqMass.
~SpectrumAccessSqMass() override
Destructor.
OpenSwath::SpectrumPtr getSpectrumById(int id) override
Load one spectrum by index in the visible view.
std::string getChromatogramNativeID(int id) const override
Not supported on sqMass.
std::vector< std::size_t > getSpectraByRT(double RT, double deltaRT) const override
Indices into the visible view of spectra whose RT lies within an absolute window.
OpenSwath::SpectrumMeta getSpectrumMetaById(int id) const override
Load metadata (native id, RT, MS level) for one spectrum.
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