|
OpenMS
2.5.0
|
Go to the documentation of this file.
49 #define CACHED_MZML_FILE_IDENTIFIER 8094
101 void writeMemdump(
const MapType& exp,
const String& out)
const;
104 void writeMetadata(
MapType exp,
String out_meta,
bool addCacheMetaValue=
false);
107 void writeMetadata_x(
const MapType& exp,
const String& out_meta,
bool addCacheMetaValue=
false);
110 void readMemdump(
MapType& exp_reading,
String filename)
const;
116 void createMemdumpIndex(
String filename);
120 const std::vector<std::streampos>& getSpectraIndex()
const;
123 const std::vector<std::streampos>& getChromatogramIndex()
const;
146 std::vector<OpenSwath::BinaryDataArrayPtr> data = readSpectrumFast(ifs, ms_level, rt);
160 static std::vector<OpenSwath::BinaryDataArrayPtr> readSpectrumFast(std::ifstream& ifs,
int& ms_level,
double& rt);
173 std::vector<OpenSwath::BinaryDataArrayPtr> data = readChromatogramFast(ifs);
185 static std::vector<OpenSwath::BinaryDataArrayPtr> readChromatogramFast(std::ifstream& ifs);
196 static void readSpectrum(
SpectrumType& spectrum, std::ifstream& ifs);
206 static void readChromatogram(
ChromatogramType& chromatogram, std::ifstream& ifs);
211 void writeSpectrum_(
const SpectrumType& spectrum, std::ofstream& ofs)
const;
214 void writeChromatogram_(
const ChromatogramType& chromatogram, std::ofstream& ofs)
const;
217 static inline void readDataFast_(std::ifstream& ifs, std::vector<OpenSwath::BinaryDataArrayPtr>& data,
const Size& data_size,
218 const Size& nr_float_arrays);
int IntType
Definition: CachedMzMLHandler.h:69
std::vector< DatumSingleton > Datavector
Definition: CachedMzMLHandler.h:81
MSSpectrum SpectrumType
Definition: CachedMzMLHandler.h:75
double DoubleType
Definition: CachedMzMLHandler.h:70
static void readSpectrumFast(OpenSwath::BinaryDataArrayPtr &data1, OpenSwath::BinaryDataArrayPtr &data2, std::ifstream &ifs, int &ms_level, double &rt)
fast access to a spectrum (a direct copy of the data into the provided arrays)
Definition: CachedMzMLHandler.h:140
A more convenient string class.
Definition: String.h:58
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:77
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:46
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:54
boost::shared_ptr< BinaryDataArray > BinaryDataArrayPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/DataStructures.h:79
std::vector< std::streampos > chrom_index_
Definition: CachedMzMLHandler.h:222
PeakMap MapType
Definition: CachedMzMLHandler.h:74
static void readChromatogramFast(OpenSwath::BinaryDataArrayPtr &data1, OpenSwath::BinaryDataArrayPtr &data2, std::ifstream &ifs)
Fast access to a chromatogram.
Definition: CachedMzMLHandler.h:170
The representation of a chromatogram.
Definition: MSChromatogram.h:54
std::vector< std::streampos > spectra_index_
Members.
Definition: CachedMzMLHandler.h:221
double DatumSingleton
Definition: CachedMzMLHandler.h:79
The representation of a 1D spectrum.
Definition: MSSpectrum.h:67
An class that uses on-disk caching to read and write spectra and chromatograms.
Definition: CachedMzMLHandler.h:66
MSChromatogram ChromatogramType
Definition: CachedMzMLHandler.h:76