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// Consumers
14
15// Files
23
24// Kernel and implementations
30
31// Helpers
35
36// Algorithms
42
44
45#include <cassert>
46#include <limits>
47
49
50namespace OpenMS
51{
52 class OPENMS_DLLAPI TOPPOpenSwathBase : public TOPPBase
53 {
54
55 public:
58 {
61
63 double ms2_mz_window_ppm{ -1.0 };
64
66 double ms2_im_window{ -1.0 };
67
69 double ms1_mz_window_ppm{ -1.0 };
70
72 double ms1_im_window{ -1.0 };
73 };
74
86 TOPPOpenSwathBase(String name, String description, bool official = true, const std::vector<Citation>& citations = {});
87
90
91 protected:
118 bool loadSwathFiles(const StringList& file_list,
119 std::shared_ptr<ExperimentalSettings >& exp_meta,
120 std::vector< OpenSwath::SwathMap >& swath_maps,
121 std::vector<String> & swath_map_sources,
122 const bool split_file,
123 const String& tmp,
124 const String& readoptions,
125 const String& swath_windows_file,
126 const double min_upper_edge_dist,
127 const bool force,
128 const bool sort_swath_maps,
129 const bool prm,
130 const bool pasef,
131 Interfaces::IMSDataConsumer* plugin_consumer = nullptr);
132
148 const std::shared_ptr<ExperimentalSettings>& exp_meta,
149 const OpenSwath::LightTargetedExperiment& transition_exp,
150 const String& out_chrom,
151 const UInt64 run_id,
152 const String& source_file);
153
163 const String& tr_file,
164 const Param& tsv_reader_param);
165
166 private:
167 void loadSwathFiles_(const StringList& file_list,
168 const bool split_file,
169 const String& tmp,
170 const String& readoptions,
171 std::shared_ptr<ExperimentalSettings > & exp_meta,
172 std::vector< OpenSwath::SwathMap > & swath_maps,
173 std::vector<String> & swath_map_sources,
174 Interfaces::IMSDataConsumer* plugin_consumer);
175 }; // end TOPPOpenSwathBase
176} // 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
A more convenient string class.
Definition String.h:34
Base class for TOPP applications.
Definition TOPPBase.h:122
Definition OpenSwathBase.h:53
void loadSwathFiles_(const StringList &file_list, const bool split_file, const String &tmp, const String &readoptions, std::shared_ptr< ExperimentalSettings > &exp_meta, std::vector< OpenSwath::SwathMap > &swath_maps, std::vector< String > &swath_map_sources, Interfaces::IMSDataConsumer *plugin_consumer)
void prepareChromOutput(Interfaces::IMSDataConsumer **chromatogramConsumer, const std::shared_ptr< ExperimentalSettings > &exp_meta, const OpenSwath::LightTargetedExperiment &transition_exp, const String &out_chrom, const UInt64 run_id, const String &source_file)
Prepare chromatogram output.
TOPPOpenSwathBase(String name, String description, bool official=true, const std::vector< Citation > &citations={})
Constructor.
OpenMS::TransformationDescription rt_trafo
RT normalization transformation (fitted Trafo)
Definition OpenSwathBase.h:60
bool loadSwathFiles(const StringList &file_list, std::shared_ptr< ExperimentalSettings > &exp_meta, std::vector< OpenSwath::SwathMap > &swath_maps, std::vector< String > &swath_map_sources, const bool split_file, const String &tmp, const String &readoptions, const String &swath_windows_file, const double min_upper_edge_dist, const bool force, const bool sort_swath_maps, const bool prm, const bool pasef, Interfaces::IMSDataConsumer *plugin_consumer=nullptr)
Load the DIA files into internal data structures.
~TOPPOpenSwathBase() override
Destructor.
OpenSwath::LightTargetedExperiment loadTransitionList(const FileTypes::Type &tr_type, const String &tr_file, const Param &tsv_reader_param)
Loads transition list from TraML / TSV or PQP.
Outputs of RT, m/z, IM calibration.
Definition OpenSwathBase.h:58
Generic description of a coordinate transformation.
Definition TransformationDescription.h:37
uint64_t UInt64
Unsigned integer type (64bit)
Definition Types.h:47
std::vector< 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:356