OpenMS
TransitionPQPFile.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: George Rosenberger $
6 // $Authors: George Rosenberger, Hannes Roest $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
12 
13 namespace OpenMS
14 {
15 
189  class OPENMS_DLLAPI TransitionPQPFile :
190  public TransitionTSVFile
191  {
192 
193 private:
194 
202  void readPQPInput_(const char* filename, std::vector<TSVTransition>& transition_list, bool legacy_traml_id = false);
203 
209  void writePQPOutput_(const char* filename, OpenMS::TargetedExperiment& targeted_exp);
210 
211 public:
212 
216 
218  ~TransitionPQPFile() override;
220 
227  void convertTargetedExperimentToPQP(const char* filename, OpenMS::TargetedExperiment& targeted_exp);
228 
236  void convertPQPToTargetedExperiment(const char* filename, OpenMS::TargetedExperiment& targeted_exp, bool legacy_traml_id = false);
237 
245  void convertPQPToTargetedExperiment(const char* filename, OpenSwath::LightTargetedExperiment& targeted_exp, bool legacy_traml_id = false);
246 
247  };
248 }
249 
250 
A description of a targeted experiment containing precursor and production ions.
Definition: TargetedExperiment.h:39
This class supports reading and writing of PQP files.
Definition: TransitionPQPFile.h:191
~TransitionPQPFile() override
Destructor.
void convertPQPToTargetedExperiment(const char *filename, OpenMS::TargetedExperiment &targeted_exp, bool legacy_traml_id=false)
Read in a PQP file and construct a targeted experiment (TraML structure)
void writePQPOutput_(const char *filename, OpenMS::TargetedExperiment &targeted_exp)
Write a TargetedExperiment to a file.
void convertPQPToTargetedExperiment(const char *filename, OpenSwath::LightTargetedExperiment &targeted_exp, bool legacy_traml_id=false)
Read in a PQP file and construct a targeted experiment (Light transition structure)
void convertTargetedExperimentToPQP(const char *filename, OpenMS::TargetedExperiment &targeted_exp)
Write out a targeted experiment (TraML structure) into a PQP file.
void readPQPInput_(const char *filename, std::vector< TSVTransition > &transition_list, bool legacy_traml_id=false)
Read PQP SQLite file.
Definition: TransitionTSVFile.h:121
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Definition: TransitionExperiment.h:185