OpenMS
FLASHDeconvSpectrumFile.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: Kyowon Jeong $
6 // $Authors: Kyowon Jeong $
7 // --------------------------------------------------------------------------
8 #pragma once
9 
12 #include <OpenMS/config.h>
13 #include <iomanip>
14 
15 namespace OpenMS
16 {
22  class OPENMS_DLLAPI FLASHDeconvSpectrumFile
23  {
24  public:
32  static void writeDeconvolvedMassesHeader(std::ostream& os,
33  uint ms_level,
34  bool detail,
35  bool report_decoy);
58  static void writeDeconvolvedMasses(const DeconvolvedSpectrum& dspec,
59  std::ostream& os,
60  const String& file_name,
63  double tol,
64  bool write_detail,
65  bool record_decoy, double noise_decoy_weight);
66 
76  static void writeMzML(const MSExperiment& map,
77  std::vector<DeconvolvedSpectrum>& deconvolved_spectra,
78  const String& deconvolved_mzML_file,
79  const String& annotated_mzML_file,
80  int mzml_charge, DoubleList tols);
81 
87  static void writeIsobaricQuantification(std::ostream& os, std::vector<DeconvolvedSpectrum>& deconvolved_spectra);
88 
90  static void writeTopFDHeader(std::ostream& os, const Param& param);
91 
102  static void writeTopFD(const DeconvolvedSpectrum& dspec, std::ostream& os, const String& filename,
103  double qval_threshold = 1.0,
104  uint min_ms_level = 1,
105  bool randomize_precursor_mass = false,
106  bool randomize_fragment_mass = false);
107 
108  private:
109 
111  static const int topFD_min_peak_count_ = 3;
113  static const int topFD_max_peak_count_ = 500;
114  };
115 }// namespace OpenMS
A class representing a deconvolved spectrum. DeconvolvedSpectrum consists of PeakGroup instances repr...
Definition: DeconvolvedSpectrum.h:30
FLASHDeconv Spectrum level output *.tsv, *.msalign (for TopPIC) file formats.
Definition: FLASHDeconvSpectrumFile.h:23
static void writeDeconvolvedMassesHeader(std::ostream &os, uint ms_level, bool detail, bool report_decoy)
write the header in the tsv output file (spectrum level)
static void writeMzML(const MSExperiment &map, std::vector< DeconvolvedSpectrum > &deconvolved_spectra, const String &deconvolved_mzML_file, const String &annotated_mzML_file, int mzml_charge, DoubleList tols)
static void writeDeconvolvedMasses(const DeconvolvedSpectrum &dspec, std::ostream &os, const String &file_name, const FLASHHelperClasses::PrecalculatedAveragine &avg, const FLASHHelperClasses::PrecalculatedAveragine &decoy_avg, double tol, bool write_detail, bool record_decoy, double noise_decoy_weight)
static void writeTopFDHeader(std::ostream &os, const Param &param)
write topFD header
static void writeTopFD(const DeconvolvedSpectrum &dspec, std::ostream &os, const String &filename, double qval_threshold=1.0, uint min_ms_level=1, bool randomize_precursor_mass=false, bool randomize_fragment_mass=false)
write the deconvolved masses TopFD output (*.msalign)
static void writeIsobaricQuantification(std::ostream &os, std::vector< DeconvolvedSpectrum > &deconvolved_spectra)
Averagine patterns pre-calculated for speed up. Other variables are also calculated for fast cosine c...
Definition: FLASHHelperClasses.h:39
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:49
Management and storage of parameters / INI files.
Definition: Param.h:46
A more convenient string class.
Definition: String.h:34
std::vector< double > DoubleList
Vector of double precision real types.
Definition: ListUtils.h:36
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19