OpenMS
FLASHDeconvFeatureFile.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 
9 
10 #pragma once
11 
15 #include <OpenMS/config.h>
16 #include <iomanip>
17 #include <iostream>
18 
19 
20 namespace OpenMS
21 {
27  class OPENMS_DLLAPI FLASHDeconvFeatureFile
28  {
29  public:
31  static void writeHeader(std::ostream& os, bool report_decoy = false);
32 
34  static void writeTopFDFeatureHeader(std::ostream& os, uint ms_level);
35 
37  static void writeFeatures(const std::vector<FLASHHelperClasses::MassFeature>& mass_features, const String& file_name, std::ostream& os, bool report_decoy = false);
38 
49  static void writeTopFDFeatures(std::vector<DeconvolvedSpectrum>& deconvolved_spectra, const std::vector<FLASHHelperClasses::MassFeature>& mass_features,
50  const std::map<int, double>& scan_rt_map, const String& file_name, std::ostream& os, uint ms_level);
51  };
52 } // namespace OpenMS
FLASHDeconv feature level output *.tsv, *.ms1ft (for Promex), *.feature (for TopPIC) file formats.
Definition: FLASHDeconvFeatureFile.h:28
static void writeTopFDFeatures(std::vector< DeconvolvedSpectrum > &deconvolved_spectra, const std::vector< FLASHHelperClasses::MassFeature > &mass_features, const std::map< int, double > &scan_rt_map, const String &file_name, std::ostream &os, uint ms_level)
Find mass features and write features in TopFD format files.
static void writeTopFDFeatureHeader(std::ostream &os, uint ms_level)
write header line for topFD feature file
static void writeHeader(std::ostream &os, bool report_decoy=false)
write header line for regular file output
static void writeFeatures(const std::vector< FLASHHelperClasses::MassFeature > &mass_features, const String &file_name, std::ostream &os, bool report_decoy=false)
write the features in regular file output
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19