OpenMS
FLASHTnTFile.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 
9 
10 #pragma once
11 
12 #include <OpenMS/config.h>
13 #include <iomanip>
14 #include <iostream>
17 
18 namespace OpenMS
19 {
20  class OPENMS_DLLAPI FLASHTnTFile
21 {
22  public:
24  static void writeTagHeader(std::fstream& fs);
25 
27  static void writePrSMHeader(std::fstream& fs);
28 
30  static void writeProHeader(std::fstream& fs);
31 
33  static void writeTags(const FLASHTnTAlgorithm& tnt, double flanking_mass_tol, std::fstream& fs);
34 
35  static void writePrSMs(const std::vector<ProteinHit>& hits, std::fstream& fs);
36 
37  static String generateProFormaString_(const String& sequence, int seq_start, int seq_end,
38  const std::vector<double>& mod_masses,
39  const std::vector<int>& mod_starts,
40  const std::vector<int>& mod_ends,
41  const std::vector<String>& mod_ids);
42 
43  static void writeProteoforms(const std::vector<ProteinHit>& hits, std::fstream& fs, double pro_fdr);
44  };
45 } // namespace OpenMS
Definition: FLASHTnTAlgorithm.h:29
Definition: FLASHTnTFile.h:21
static void writeProteoforms(const std::vector< ProteinHit > &hits, std::fstream &fs, double pro_fdr)
static void writeProHeader(std::fstream &fs)
write header line for Proteoform output file
static String generateProFormaString_(const String &sequence, int seq_start, int seq_end, const std::vector< double > &mod_masses, const std::vector< int > &mod_starts, const std::vector< int > &mod_ends, const std::vector< String > &mod_ids)
static void writePrSMHeader(std::fstream &fs)
write header line for PrSM output file
static void writeTagHeader(std::fstream &fs)
write header line for tag output file
static void writePrSMs(const std::vector< ProteinHit > &hits, std::fstream &fs)
static void writeTags(const FLASHTnTAlgorithm &tnt, double flanking_mass_tol, std::fstream &fs)
write the features in regular file output
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: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19