OpenMS
FLASHDeconvFeatureFile.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, 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 
9 
10 #pragma once
11 
14 #include <OpenMS/config.h>
15 #include <iomanip>
16 #include <iostream>
17 
18 
19 namespace OpenMS
20 {
26  class OPENMS_DLLAPI FLASHDeconvFeatureFile
27  {
28  public:
30  static void writeHeader(std::fstream& fs, bool report_decoy = false);
31 
33  static void writeTopFDFeatureHeader(std::fstream& fs, uint ms_level);
34 
36  static void writeFeatures(const std::vector<FLASHDeconvHelperStructs::MassFeature>& mass_features, const String& file_name, std::fstream& fs, bool report_decoy = false);
37 
48  static void writeTopFDFeatures(const std::vector<FLASHDeconvHelperStructs::MassFeature>& mass_features, const std::map<int, PeakGroup>& precursor_peak_groups,
49  const std::map<int, double>& scan_rt_map, const String& file_name, std::fstream& fs, uint ms_level);
50 
51  };
52 } // namespace OpenMS
FLASHDeconv feature level output *.tsv, *.ms1ft (for Promex), *.feature (for TopPIC) file formats.
Definition: FLASHDeconvFeatureFile.h:27
static void writeHeader(std::fstream &fs, bool report_decoy=false)
write header line for regular file output
static void writeTopFDFeatureHeader(std::fstream &fs, uint ms_level)
write header line for topFD feature file
static void writeFeatures(const std::vector< FLASHDeconvHelperStructs::MassFeature > &mass_features, const String &file_name, std::fstream &fs, bool report_decoy=false)
write the features in regular file output
static void writeTopFDFeatures(const std::vector< FLASHDeconvHelperStructs::MassFeature > &mass_features, const std::map< int, PeakGroup > &precursor_peak_groups, const std::map< int, double > &scan_rt_map, const String &file_name, std::fstream &fs, uint ms_level)
Find mass features and write features in TopFD format files.
A more convenient string class.
Definition: String.h:34
FLASHIda C++ to C# (or vice versa) bridge functions The functions here are called in C# to invoke fun...
Definition: FeatureDeconvolution.h:22