OpenMS
Loading...
Searching...
No Matches
OpenSwathBase.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: Hannes Roest, Justin Sing$
6// $Authors: Hannes Roest, Justin Sing$
7// --------------------------------------------------------------------------
8
9#pragma once
10
11#include <memory>
12
13// Consumers
16
17// Files
25
26// Kernel and implementations
32
33// Helpers
37
38// Algorithms
44
46
47#include <cassert>
48#include <limits>
49
51
52namespace OpenMS
53{
77 class OPENMS_DLLAPI TOPPOpenSwathBase : public TOPPBase
78 {
79
80 public:
89 {
92
94 double ms2_mz_window_ppm{ -1.0 };
95
97 double ms2_im_window{ -1.0 };
98
100 double ms1_mz_window_ppm{ -1.0 };
101
103 double ms1_im_window{ -1.0 };
104 };
105
117 TOPPOpenSwathBase(std::string name, std::string description, bool official = true, const std::vector<Citation>& citations = {});
118
121
122 protected:
148 bool loadSwathFiles(const StringList& file_list,
149 std::shared_ptr<ExperimentalSettings >& exp_meta,
150 std::vector< OpenSwath::SwathMap >& swath_maps,
151 std::vector<std::string> & swath_map_sources,
152 const bool split_file,
153 const std::string& tmp,
154 const std::string& readoptions,
155 const std::string& swath_windows_file,
156 const double min_upper_edge_dist,
157 const bool force,
158 const bool sort_swath_maps,
159 const bool prm,
160 Interfaces::IMSDataConsumer* plugin_consumer = nullptr);
161
177 const std::shared_ptr<ExperimentalSettings>& exp_meta,
178 const OpenSwath::LightTargetedExperiment& transition_exp,
179 const std::string& out_chrom,
180 const UInt64 run_id,
181 const std::string& source_file);
182
196 void prepareMobilogramOutput(std::unique_ptr<class MobilogramParquetConsumer>& mobilogramConsumer,
197 const std::shared_ptr<ExperimentalSettings>& exp_meta,
198 const OpenSwath::LightTargetedExperiment& transition_exp,
199 const std::string& out_mobilogram,
200 const UInt64 run_id,
201 const std::string& source_file);
202
212 const std::string& tr_file,
213 const Param& tsv_reader_param);
214
215 private:
216 void loadSwathFiles_(const StringList& file_list,
217 const bool split_file,
218 const std::string& tmp,
219 const std::string& readoptions,
220 std::shared_ptr<ExperimentalSettings > & exp_meta,
221 std::vector< OpenSwath::SwathMap > & swath_maps,
222 std::vector<std::string> & swath_map_sources,
223 Interfaces::IMSDataConsumer* plugin_consumer);
224 }; // end TOPPOpenSwathBase
225} // end NS OpenMS
The interface of a consumer of spectra and chromatograms.
Definition IMSDataConsumer.h:46
Management and storage of parameters / INI files.
Definition Param.h:46
Base class for TOPP applications.
Definition TOPPBase.h:120
Shared TOPPBase scaffolding for OpenSWATH-family CLI tools (currently OpenSwathWorkflow).
Definition OpenSwathBase.h:78
OpenSwath::LightTargetedExperiment loadTransitionList(const FileTypes::Type &tr_type, const std::string &tr_file, const Param &tsv_reader_param)
Loads transition list from TraML / TSV or PQP.
void prepareMobilogramOutput(std::unique_ptr< class MobilogramParquetConsumer > &mobilogramConsumer, const std::shared_ptr< ExperimentalSettings > &exp_meta, const OpenSwath::LightTargetedExperiment &transition_exp, const std::string &out_mobilogram, const UInt64 run_id, const std::string &source_file)
Prepare mobilogram output.
void prepareChromOutput(Interfaces::IMSDataConsumer **chromatogramConsumer, const std::shared_ptr< ExperimentalSettings > &exp_meta, const OpenSwath::LightTargetedExperiment &transition_exp, const std::string &out_chrom, const UInt64 run_id, const std::string &source_file)
Prepare chromatogram output.
bool loadSwathFiles(const StringList &file_list, std::shared_ptr< ExperimentalSettings > &exp_meta, std::vector< OpenSwath::SwathMap > &swath_maps, std::vector< std::string > &swath_map_sources, const bool split_file, const std::string &tmp, const std::string &readoptions, const std::string &swath_windows_file, const double min_upper_edge_dist, const bool force, const bool sort_swath_maps, const bool prm, Interfaces::IMSDataConsumer *plugin_consumer=nullptr)
Load the DIA files into internal data structures.
OpenMS::TransformationDescription rt_trafo
RT normalization transformation (fitted Trafo)
Definition OpenSwathBase.h:91
void loadSwathFiles_(const StringList &file_list, const bool split_file, const std::string &tmp, const std::string &readoptions, std::shared_ptr< ExperimentalSettings > &exp_meta, std::vector< OpenSwath::SwathMap > &swath_maps, std::vector< std::string > &swath_map_sources, Interfaces::IMSDataConsumer *plugin_consumer)
~TOPPOpenSwathBase() override
Destructor.
TOPPOpenSwathBase(std::string name, std::string description, bool official=true, const std::vector< Citation > &citations={})
Constructor.
Per-run outputs of the RT / m/z / IM calibration step.
Definition OpenSwathBase.h:89
Generic description of a coordinate transformation.
Definition TransformationDescription.h:38
uint64_t UInt64
Unsigned integer type (64bit)
Definition Types.h:47
std::vector< std::string > StringList
Vector of String.
Definition ListUtils.h:44
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Type
Actual file types enum.
Definition FileTypes.h:31
Definition TransitionExperiment.h:369