An implementation of the Spectrum Access interface using on-disk caching. More...
#include <OpenMS/ANALYSIS/OPENSWATH/DATAACCESS/SpectrumAccessOpenMSCached.h>
Public Types | |
| typedef OpenMS::PeakMap | MSExperimentType |
| typedef OpenMS::MSSpectrum | MSSpectrumType |
Public Member Functions | |
| SpectrumAccessOpenMSCached (String filename) | |
| Constructor, opens the file stream. More... | |
| ~SpectrumAccessOpenMSCached () | |
| Destructor. More... | |
| SpectrumAccessOpenMSCached (const SpectrumAccessOpenMSCached &rhs) | |
| Copy constructor. More... | |
| boost::shared_ptr< OpenSwath::ISpectrumAccess > | lightClone () const |
| Light clone operator (actual data will not get copied) More... | |
| OpenSwath::SpectrumPtr | getSpectrumById (int id) |
| Return a pointer to a spectrum at the given id. More... | |
| OpenSwath::SpectrumMeta | getSpectrumMetaById (int id) const |
| Returns the meta information for a spectrum. More... | |
| std::vector< std::size_t > | getSpectraByRT (double RT, double deltaRT) const |
| Return a vector of ids of spectra that are within RT +/- deltaRT. More... | |
| size_t | getNrSpectra () const |
| Returns the number of spectra available. More... | |
| SpectrumSettings | getSpectraMetaInfo (int id) const |
| OpenSwath::ChromatogramPtr | getChromatogramById (int id) |
| Return a pointer to a chromatogram at the given id. More... | |
| size_t | getNrChromatograms () const |
| Returns the number of chromatograms available. More... | |
| ChromatogramSettings | getChromatogramMetaInfo (int id) const |
| std::string | getChromatogramNativeID (int id) const |
| Returns the native id of the chromatogram at the given id. More... | |
Public Member Functions inherited from ISpectrumAccess | |
| virtual | ~ISpectrumAccess () |
| Destructor. More... | |
Private Attributes | |
| MSExperimentType | meta_ms_experiment_ |
| Meta data. More... | |
| std::ifstream | ifs_ |
| Internal filestream. More... | |
| String | filename_ |
| Name of the mzML file. More... | |
| String | filename_cached_ |
| Name of the cached mzML file. More... | |
| std::vector< std::streampos > | spectra_index_ |
| Indices. More... | |
| std::vector< std::streampos > | chrom_index_ |
An implementation of the Spectrum Access interface using on-disk caching.
This class implements the OpenSWATH Spectrum Access interface (ISpectrumAccess) using the CachedmzML class which is able to read and write a cached mzML file.
| typedef OpenMS::PeakMap MSExperimentType |
| typedef OpenMS::MSSpectrum MSSpectrumType |
|
explicit |
Constructor, opens the file stream.
| filename | The filename of the .mzML file (it is assumed a second file .mzML.cached exists). |
| Exception::FileNotFound | is thrown if the file is not found |
| Exception::ParseError | is thrown if the file cannot be parsed |
Destructor.
| SpectrumAccessOpenMSCached | ( | const SpectrumAccessOpenMSCached & | rhs | ) |
Copy constructor.
|
virtual |
Return a pointer to a chromatogram at the given id.
Implements ISpectrumAccess.
| ChromatogramSettings getChromatogramMetaInfo | ( | int | id | ) | const |
|
virtual |
Returns the native id of the chromatogram at the given id.
Implements ISpectrumAccess.
|
virtual |
Returns the number of chromatograms available.
Implements ISpectrumAccess.
|
virtual |
Returns the number of spectra available.
Implements ISpectrumAccess.
Return a vector of ids of spectra that are within RT +/- deltaRT.
Implements ISpectrumAccess.
| SpectrumSettings getSpectraMetaInfo | ( | int | id | ) | const |
|
virtual |
Return a pointer to a spectrum at the given id.
Implements ISpectrumAccess.
|
virtual |
Returns the meta information for a spectrum.
Implements ISpectrumAccess.
|
virtual |
Light clone operator (actual data will not get copied)
Implements ISpectrumAccess.
|
private |
|
private |
Name of the mzML file.
|
private |
Name of the cached mzML file.
|
private |
Internal filestream.
|
private |
Meta data.
|
private |
Indices.
| OpenMS / TOPP release 2.3.0 | Documentation generated on Tue Jan 9 2018 18:22:13 using doxygen 1.8.13 |