OpenMS
Loading...
Searching...
No Matches
MzPeakFile.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Oliver Kohlbacher $
6// $Authors: Oliver Kohlbacher $
7// --------------------------------------------------------------------------
8
9#pragma once
10
15
16#include <string>
17
18namespace OpenMS
19{
49 class OPENMS_DLLAPI MzPeakFile :
50 public ProgressLogger
51 {
52public:
54 ~MzPeakFile() override;
55
62
70 void load(const std::string& filename, PeakMap& exp);
71
82 void transform(const std::string& filename, Interfaces::IMSDataConsumer* consumer);
83
90 void store(const std::string& filename, const PeakMap& exp) const;
91
96 static bool isMzPeak(const std::string& path);
97
99 static bool isSupported();
100
101private:
103 };
104
105} // namespace OpenMS
The interface of a consumer of spectra and chromatograms.
Definition IMSDataConsumer.h:46
In-Memory representation of a mass spectrometry run.
Definition MSExperiment.h:49
mzPeak file reader and writer (HUPO-PSI mzPeak: Parquet tables in a ZIP archive or a directory).
Definition MzPeakFile.h:51
void setOptions(const PeakFileOptions &)
set options for loading/storing
void transform(const std::string &filename, Interfaces::IMSDataConsumer *consumer)
Streams the spectra (and chromatograms) of an mzPeak archive or directory into consumer.
const PeakFileOptions & getOptions() const
Non-mutable access to the options for loading/storing.
static bool isMzPeak(const std::string &path)
Whether path looks like an mzPeak run: a directory holding 'mzpeak_index.json', or a file that is a Z...
PeakFileOptions options_
Definition MzPeakFile.h:102
void store(const std::string &filename, const PeakMap &exp) const
Stores a run as an mzPeak archive (ZIP) at filename.
PeakFileOptions & getOptions()
Mutable access to the options for loading/storing.
static bool isSupported()
Whether OpenMS was built with mzPeak support (OPENMS_ENABLE_MZPEAK)
void load(const std::string &filename, PeakMap &exp)
Loads a run from an mzPeak archive or directory into exp.
~MzPeakFile() override
Options for loading files containing peak data.
Definition PeakFileOptions.h:22
Base class for all classes that want to report their progress.
Definition ProgressLogger.h:28
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19