OpenMS
Loading...
Searching...
No Matches
SequestOutfile.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: Timo Sachsenberg $
6// $Authors: Martin Langwisch $
7// --------------------------------------------------------------------------
8
9#pragma once
10
15
16#include <map>
17#include <vector>
18#include <cmath>
19
20namespace OpenMS
21{
22 class ProteinIdentification;
23 class DateTime;
24
36 class OPENMS_DLLAPI SequestOutfile
37 {
38public:
41
43 SequestOutfile(const SequestOutfile & sequest_outfile);
44
46 virtual ~SequestOutfile();
47
49 SequestOutfile & operator=(const SequestOutfile & sequest_outfile);
50
52 bool operator==(const SequestOutfile & sequest_outfile) const;
53
72 void load(const std::string & result_filename, PeptideIdentificationList & peptide_identifications, ProteinIdentification & protein_identification, const double p_value_threshold, std::vector<double> & pvalues, const std::string & database = "", const bool ignore_proteins_per_peptide = false);
73
74// /// retrieve the p-values from the out files
75// void getPValuesFromOutFiles(vector< pair < String, vector< double > > >& filenames_and_pvalues) throw (Exception::FileNotFound&, Exception::ParseError);
76
78 bool getColumns(const std::string & line, std::vector<std::string> & substrings, Size number_of_columns, Size reference_column);
79
88 void getSequences(const std::string & database_filename, const std::map<std::string, Size> & ac_position_map, std::vector<std::string> & sequences, std::vector<std::pair<std::string, Size> > & found, std::map<std::string, Size> & not_found);
89
92 void getACAndACType(std::string line, std::string &accession, std::string &accession_type);
93
99 void readOutHeader(const std::string & result_filename, DateTime & datetime, double & precursor_mz_value, Int & charge, Size & precursor_mass_type, Size & ion_mass_type, Size & displayed_peptides, std::string &sequest, std::string &sequest_version, std::string &database_type, Int & number_column, Int & rank_sp_column, Int & id_column, Int & mh_column, Int & delta_cn_column, Int & xcorr_column, Int & sp_column, Int & sf_column, Int & ions_column, Int & reference_column, Int & peptide_column, Int & score_column, Size & number_of_columns);
100
101private:
102
103 static double const_weights_[];
104 static double xcorr_weights_[];
105 static double delta_cn_weights_[];
106 static double rank_sp_weights_[];
107 static double delta_mass_weights_[];
108 static Size max_pep_lens_[];
109 static Size num_frags_[];
110 };
111
112} //namespace OpenMS
113
DateTime Class.
Definition DateTime.h:31
Container for peptide identifications from multiple spectra.
Definition PeptideIdentificationList.h:66
Representation of a protein identification run.
Definition ProteinIdentification.h:55
Representation of a Sequest output file.
Definition SequestOutfile.h:37
bool operator==(const SequestOutfile &sequest_outfile) const
equality operator
void readOutHeader(const std::string &result_filename, DateTime &datetime, double &precursor_mz_value, Int &charge, Size &precursor_mass_type, Size &ion_mass_type, Size &displayed_peptides, std::string &sequest, std::string &sequest_version, std::string &database_type, Int &number_column, Int &rank_sp_column, Int &id_column, Int &mh_column, Int &delta_cn_column, Int &xcorr_column, Int &sp_column, Int &sf_column, Int &ions_column, Int &reference_column, Int &peptide_column, Int &score_column, Size &number_of_columns)
void getSequences(const std::string &database_filename, const std::map< std::string, Size > &ac_position_map, std::vector< std::string > &sequences, std::vector< std::pair< std::string, Size > > &found, std::map< std::string, Size > &not_found)
SequestOutfile()
Constructor.
bool getColumns(const std::string &line, std::vector< std::string > &substrings, Size number_of_columns, Size reference_column)
retrieve columns from a Sequest outfile line
void load(const std::string &result_filename, PeptideIdentificationList &peptide_identifications, ProteinIdentification &protein_identification, const double p_value_threshold, std::vector< double > &pvalues, const std::string &database="", const bool ignore_proteins_per_peptide=false)
loads data from a Sequest outfile
SequestOutfile & operator=(const SequestOutfile &sequest_outfile)
assignment operator
SequestOutfile(const SequestOutfile &sequest_outfile)
copy constructor
virtual ~SequestOutfile()
destructor
void getACAndACType(std::string line, std::string &accession, std::string &accession_type)
if none is found
Definition common-cmake-parameters.doxygen:53
int Int
Signed integer type.
Definition Types.h:72
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19