91 void readSpectra(std::vector<MSSpectrum> & exp,
const std::vector<int> & indices,
bool meta_only =
false)
const;
100 void readChromatograms(std::vector<MSChromatogram> & exp,
const std::vector<int> & indices,
bool meta_only =
false)
const;
124 void setConfig(
bool write_full_meta,
bool use_lossy_compression,
double linear_abs_mass_acc,
int sql_batch_size = 500)
126 write_full_meta_ = write_full_meta;
127 use_lossy_compression_ = use_lossy_compression;
128 linear_abs_mass_acc_ = linear_abs_mass_acc;
129 sql_batch_size_ = sql_batch_size;
152 void prepareChroms_(sqlite3 *db, std::vector<MSChromatogram>& chromatograms,
const std::vector<int> & indices = {})
const;
154 void prepareSpectra_(sqlite3 *db, std::vector<MSSpectrum>& spectra,
const std::vector<int> & indices = {})
const;
Sqlite handler for storing spectra and chromatograms in sqMass format.
Definition: MzMLSqliteHandler.h:52
std::vector< size_t > getSpectraIndicesbyRT(double RT, double deltaRT, const std::vector< int > &indices) const
Get spectral indices around a specific retention time.
void writeExperiment(const MSExperiment &exp)
Write an experiment to disk.
Size getNrSpectra() const
Get number of spectra in the file.
String filename_
Definition: MzMLSqliteHandler.h:214
void populateSpectraWithData_(sqlite3 *db, std::vector< MSSpectrum > &spectra) const
void prepareChroms_(sqlite3 *db, std::vector< MSChromatogram > &chromatograms, const std::vector< int > &indices={}) const
UInt64 run_id_
Definition: MzMLSqliteHandler.h:226
void createTables()
Create data tables for a new file.
Size getNrChromatograms() const
Get number of chromatograms in the file.
void readChromatograms(std::vector< MSChromatogram > &exp, const std::vector< int > &indices, bool meta_only=false) const
Read an set of chromatograms (potentially restricted to a subset)
Int spec_id_
Definition: MzMLSqliteHandler.h:224
void setConfig(bool write_full_meta, bool use_lossy_compression, double linear_abs_mass_acc, int sql_batch_size=500)
Set file configuration.
Definition: MzMLSqliteHandler.h:124
void readExperiment(MSExperiment &exp, bool meta_only=false) const
Read an experiment into an MSExperiment structure.
void prepareSpectra_(sqlite3 *db, std::vector< MSSpectrum > &spectra, const std::vector< int > &indices={}) const
void writeRunLevelInformation(const MSExperiment &exp, bool write_full_meta)
Write the run-level information for an experiment into tables.
void readSpectra(std::vector< MSSpectrum > &exp, const std::vector< int > &indices, bool meta_only=false) const
Read an set of spectra (potentially restricted to a subset)
void populateChromatogramsWithData_(sqlite3 *db, std::vector< MSChromatogram > &chromatograms) const
bool use_lossy_compression_
Definition: MzMLSqliteHandler.h:228
void populateSpectraWithData_(sqlite3 *db, std::vector< MSSpectrum > &spectra, const std::vector< int > &indices) const
void writeSpectra(const std::vector< MSSpectrum > &spectra)
Writes a set of spectra to disk.
void writeChromatograms(const std::vector< MSChromatogram > &chroms)
Writes a set of chromatograms to disk.
void populateChromatogramsWithData_(sqlite3 *db, std::vector< MSChromatogram > &chromatograms, const std::vector< int > &indices) const
double write_full_meta_
Definition: MzMLSqliteHandler.h:230
Int chrom_id_
Definition: MzMLSqliteHandler.h:225
int sql_batch_size_
Definition: MzMLSqliteHandler.h:231
double linear_abs_mass_acc_
Definition: MzMLSqliteHandler.h:229
MzMLSqliteHandler(const String &filename, const UInt64 run_id)
Constructor of sqMass file.
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:45
A more convenient string class.
Definition: String.h:34
int Int
Signed integer type.
Definition: Types.h:72
uint64_t UInt64
Unsigned integer type (64bit)
Definition: Types.h:47
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:97
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19