|
| | SpectrumAccessOnDisc (std::shared_ptr< IMSExperimentRandomAccess > experiment) |
| | Expose all spectra of experiment.
|
| |
| | SpectrumAccessOnDisc (std::shared_ptr< IMSExperimentRandomAccess > experiment, std::vector< Size > indices) |
| | Expose only the spectra of experiment with the given indices.
|
| |
| | SpectrumAccessOnDisc (const SpectrumAccessOnDisc &rhs) |
| | Copy constructor; clones the experiment (new file handle) and shares the index and subset.
|
| |
| | ~SpectrumAccessOnDisc () override |
| | Destructor.
|
| |
| std::shared_ptr< OpenSwath::ISpectrumAccess > | lightClone () const override |
| | A copy that can be used from another thread (see the copy constructor)
|
| |
| OpenSwath::SpectrumPtr | getSpectrumById (int id) override |
| | Peaks and data arrays of visible spectrum id (float and integer arrays, named after the array)
|
| |
| OpenSwath::SpectrumMeta | getSpectrumMetaById (int id) const override |
| | Retention time and MS level of visible spectrum id.
|
| |
| std::vector< std::size_t > | getSpectraByRT (double RT, double deltaRT) const override |
| | Visible spectra with RT in [RT - deltaRT, RT + deltaRT].
|
| |
| size_t | getNrSpectra () const override |
| | Number of visible spectra.
|
| |
| OpenSwath::ChromatogramPtr | getChromatogramById (int id) override |
| | Chromatogram id of the experiment.
|
| |
| size_t | getNrChromatograms () const override |
| | Number of chromatograms of the experiment.
|
| |
| std::string | getChromatogramNativeID (int id) const override |
| | Native ID of chromatogram id.
|
| |
| Size | getExperimentIndex (int id) const |
| | Index in the experiment of visible spectrum id.
|
| |
| const IMSExperimentRandomAccess & | getExperiment () const |
| | The experiment this accessor reads from.
|
| |
| virtual | ~ISpectrumAccess () |
| | Destructor.
|
| |
| SpectrumPtr | getSpectrumById (int id, double drift_start, double drift_end) |
| | Return pointer to a spectrum at the given id, the spectrum will be filtered by drift time.
|
| |
| SpectrumSequence | getMultipleSpectra (double RT, int nr_spectra_to_fetch) |
| |
| SpectrumSequence | getMultipleSpectra (double RT, int nr_spectra_to_fetch, double drift_start, double drift_end) |
| |
OpenSwath::ISpectrumAccess on an on-disc experiment (e.g. OnDiscThermoRawExperiment or OnDiscMSExperiment).
Spectra are read from the file on request (IMSExperimentRandomAccess::getSpectrumPeaks()), nothing is cached. The accessor can expose a subset of the spectra, e.g. those of one SWATH window, so that several views share one opened file and its index (as SpectrumAccessSqMass does). The visible spectra are ordered by retention time (ties keep the order of the experiment); id i refers to the i-th visible spectrum.
Chromatograms are those of the experiment (the subset applies to spectra only).
- Note
- lightClone() and the copy constructor clone the experiment (IMSExperimentRandomAccess::clone()), i.e. open a new handle on the file, and share the index and the subset. Clones can be used concurrently from different threads; a single instance must not.
auto experiment = std::make_shared<OnDiscThermoRawExperiment>();
experiment->openFile("run.raw");
std::vector<Size> window;
std::shared_ptr< ISpectrumAccess > SpectrumAccessPtr
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:146