OpenMS
FLASHDeconvSpectrumFile.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- 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::fstream& fs,
33  uint ms_level,
34  bool detail,
35  bool report_decoy);
60  std::fstream& fs,
61  const String& file_name,
64  double tol,
65  bool write_detail,
66  bool record_decoy, double noise_decoy_weight);
67 
77  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);
78 
84  static void writeIsobaricQuantification(std::fstream& fs, std::vector<DeconvolvedSpectrum>& deconvolved_spectra);
85 
86  static void writeTopFDHeader(std::fstream& fs, const Param& param);
87 
98  // @param avg averagine information to calculate monoisotopic and average mass difference
99  static void writeTopFD(DeconvolvedSpectrum& dspec, std::fstream& fs, const String& filename,
100  const double qval_threshold = 1.0,
101  const uint min_ms_level = 1,
102  bool randomize_precursor_mass = false,
103  bool randomize_fragment_mass = false);
104 
105  private:
106 
108  static const int topFD_min_peak_count_ = 3;
110  static const int topFD_max_peak_count_ = 500;
111 
112  };
113 }// namespace OpenMS
A class representing a deconvolved spectrum. DeconvolvedSpectrum consists of PeakGroups representing ...
Definition: DeconvolvedSpectrum.h:30
FLASHDeconv Spectrum level output *.tsv, *.msalign (for TopPIC) file formats.
Definition: FLASHDeconvSpectrumFile.h:23
static void writeIsobaricQuantification(std::fstream &fs, std::vector< DeconvolvedSpectrum > &deconvolved_spectra)
static void writeDeconvolvedMasses(DeconvolvedSpectrum &dspec, std::fstream &fs, 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 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 writeDeconvolvedMassesHeader(std::fstream &fs, uint ms_level, bool detail, bool report_decoy)
write the header in the tsv output file (spectrum level)
static void writeTopFDHeader(std::fstream &fs, const Param &param)
static void writeTopFD(DeconvolvedSpectrum &dspec, std::fstream &fs, const String &filename, const double qval_threshold=1.0, const uint min_ms_level=1, bool randomize_precursor_mass=false, bool randomize_fragment_mass=false)
write the deconvolved masses TopFD output (*.msalign)
Averagine patterns pre-calculated for speed up. Other variables are also calculated for fast cosine c...
Definition: FLASHHelperClasses.h:35
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:46
Management and storage of parameters / INI files.
Definition: Param.h:44
A more convenient string class.
Definition: String.h:34
std::vector< double > DoubleList
Vector of double precision real types.
Definition: ListUtils.h:36
FLASHIda C++ to C# (or vice versa) bridge functions The functions here are called in C# to invoke fun...
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
static FLASHHelperClasses::PrecalculatedAveragine avg
keeps the precalculated averagine to calculate average masses from monoisotopic masses
Definition: FLASHIdaBridgeFunctions.h:92