 |
OpenMS
3.0.0
|
|
Go to the documentation of this file.
48 #include <boost/shared_ptr.hpp>
90 bool openFile(
const String& filename,
bool skipMetaData =
false);
94 filename_(source.filename_),
95 indexed_mzml_file_(source.indexed_mzml_file_),
96 meta_ms_experiment_(source.meta_ms_experiment_)
135 if (!meta_ms_experiment_)
return false;
137 return meta_ms_experiment_->isSorted(
false);
143 return getNrSpectra();
149 return getNrSpectra() == 0;
155 return indexed_mzml_file_.getNrSpectra();
161 return indexed_mzml_file_.getNrChromatograms();
167 return boost::static_pointer_cast<const ExperimentalSettings>(meta_ms_experiment_);
172 return meta_ms_experiment_;
178 return getSpectrum(n);
188 if (!meta_ms_experiment_)
return indexed_mzml_file_.getMSSpectrumById(
int(
id));
190 MSSpectrum spectrum(meta_ms_experiment_->operator[](
id));
191 indexed_mzml_file_.getMSSpectrumById(
int(
id), spectrum);
200 return indexed_mzml_file_.getSpectrumById((
int)
id);
210 if (!meta_ms_experiment_)
return indexed_mzml_file_.getMSChromatogramById(
int(
id));
212 MSChromatogram chromatogram(meta_ms_experiment_->getChromatogram(
id));
213 indexed_mzml_file_.getMSChromatogramById(
int(
id), chromatogram);
229 MSSpectrum getSpectrumByNativeId(
const std::string&
id);
237 void setSkipXMLChecks(
bool skip);
244 void loadMetaData_(
const String& filename);
248 MSSpectrum getMetaSpectrumById_(
const std::string&
id);
OpenMS::Interfaces::SpectrumPtr getSpectrumById(Size id)
returns a single spectrum
Definition: OnDiscMSExperiment.h:198
ChromatogramPeak ChromatogramPeakT
Definition: OnDiscMSExperiment.h:69
boost::shared_ptr< Spectrum > SpectrumPtr
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:236
String filename_
The filename of the underlying data file.
Definition: OnDiscMSExperiment.h:253
boost::shared_ptr< PeakMap > meta_ms_experiment_
The meta-data.
Definition: OnDiscMSExperiment.h:257
A more convenient string class.
Definition: String.h:58
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
bool empty() const
returns whether spectra are empty
Definition: OnDiscMSExperiment.h:147
bool operator!=(const OnDiscMSExperiment &rhs) const
Inequality operator.
Definition: OnDiscMSExperiment.h:122
OpenMS::OnDiscMSExperiment OnDiscPeakMap
Definition: IndexedMzMLFileLoader.h:42
OnDiscMSExperiment(const OnDiscMSExperiment &source)
Copy constructor.
Definition: OnDiscMSExperiment.h:93
boost::shared_ptr< Chromatogram > ChromatogramPtr
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:156
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Size getNrSpectra() const
get the total number of spectra available
Definition: OnDiscMSExperiment.h:153
A 1-dimensional raw data point or peak for chromatograms.
Definition: ChromatogramPeak.h:53
Representation of a mass spectrometry experiment on disk.
Definition: OnDiscMSExperiment.h:66
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:53
Size getNrChromatograms() const
get the total number of chromatograms available
Definition: OnDiscMSExperiment.h:159
MSSpectrum operator[](Size n)
alias for getSpectrum
Definition: OnDiscMSExperiment.h:176
Peak1D PeakT
Definition: OnDiscMSExperiment.h:70
std::unordered_map< std::string, Size > chromatograms_native_ids_
Mapping of chromatogram native ids to offsets.
Definition: OnDiscMSExperiment.h:259
bool isSortedByRT() const
Checks if all spectra are sorted with respect to ascending RT.
Definition: OnDiscMSExperiment.h:133
bool operator==(const IDBoostGraph::ProteinGroup &lhs, const IDBoostGraph::ProteinGroup &rhs)
The representation of a chromatogram.
Definition: MSChromatogram.h:53
MSChromatogram getChromatogram(Size id)
returns a single chromatogram
Definition: OnDiscMSExperiment.h:208
boost::shared_ptr< const ExperimentalSettings > getExperimentalSettings() const
returns the meta information of this experiment (const access)
Definition: OnDiscMSExperiment.h:165
Size size() const
alias for getNrSpectra
Definition: OnDiscMSExperiment.h:141
bool operator==(const OnDiscMSExperiment &rhs) const
Equality operator.
Definition: OnDiscMSExperiment.h:107
boost::shared_ptr< PeakMap > getMetaData() const
Definition: OnDiscMSExperiment.h:170
The representation of a 1D spectrum.
Definition: MSSpectrum.h:66
MSSpectrum getSpectrum(Size id)
returns a single spectrum
Definition: OnDiscMSExperiment.h:186
std::unordered_map< std::string, Size > spectra_native_ids_
Mapping of spectra native ids to offsets.
Definition: OnDiscMSExperiment.h:261
Internal::IndexedMzMLHandler indexed_mzml_file_
The index of the underlying data file.
Definition: OnDiscMSExperiment.h:255
A low-level class to read an indexedmzML file.
Definition: IndexedMzMLHandler.h:79