117 void readSpectra(std::vector<MSSpectrum> & exp,
const std::vector<int> & indices,
bool meta_only =
false)
const;
126 void readChromatograms(std::vector<MSChromatogram> & exp,
const std::vector<int> & indices,
bool meta_only =
false)
const;
150 void setConfig(
bool write_full_meta,
bool use_lossy_compression,
double linear_abs_mass_acc,
int sql_batch_size = 500)
152 write_full_meta_ = write_full_meta;
153 use_lossy_compression_ = use_lossy_compression;
154 linear_abs_mass_acc_ = linear_abs_mass_acc;
155 sql_batch_size_ = sql_batch_size;
178 void prepareChroms_(sqlite3 *db, std::vector<MSChromatogram>& chromatograms,
const std::vector<int> & indices = {})
const;
180 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:78
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:240
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:252
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:250
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:150
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:254
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:256
Int chrom_id_
Definition: MzMLSqliteHandler.h:251
int sql_batch_size_
Definition: MzMLSqliteHandler.h:257
double linear_abs_mass_acc_
Definition: MzMLSqliteHandler.h:255
MzMLSqliteHandler(const String &filename, const UInt64 run_id)
Constructor of sqMass file.
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:73
A more convenient string class.
Definition: String.h:60
OPENMS_UINT64_TYPE UInt64
Unsigned integer type (64bit)
Definition: Types.h:77
int Int
Signed integer type.
Definition: Types.h:102
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47