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 String & result_filename, PeptideIdentificationList & peptide_identifications, ProteinIdentification & protein_identification, const double p_value_threshold, std::vector<double> & pvalues, const 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 String & line, std::vector<String> & substrings, Size number_of_columns, Size reference_column);
79
88 void getSequences(const String & database_filename, const std::map<String, Size> & ac_position_map, std::vector<String> & sequences, std::vector<std::pair<String, Size> > & found, std::map<String, Size> & not_found);
89
92 void getACAndACType(String line, String & accession, String & accession_type);
93
99 void readOutHeader(const String & result_filename, DateTime & datetime, double & precursor_mz_value, Int & charge, Size & precursor_mass_type, Size & ion_mass_type, Size & displayed_peptides, String & sequest, String & sequest_version, 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:35
Container for peptide identifications from multiple spectra.
Definition PeptideIdentificationList.h:66
Representation of a protein identification run.
Definition ProteinIdentification.h:54
Representation of a Sequest output file.
Definition SequestOutfile.h:37
bool operator==(const SequestOutfile &sequest_outfile) const
equality operator
void getSequences(const String &database_filename, const std::map< String, Size > &ac_position_map, std::vector< String > &sequences, std::vector< std::pair< String, Size > > &found, std::map< String, Size > &not_found)
SequestOutfile()
Constructor.
void readOutHeader(const String &result_filename, DateTime &datetime, double &precursor_mz_value, Int &charge, Size &precursor_mass_type, Size &ion_mass_type, Size &displayed_peptides, String &sequest, String &sequest_version, 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)
bool getColumns(const String &line, std::vector< String > &substrings, Size number_of_columns, Size reference_column)
retrieve columns from a Sequest outfile line
SequestOutfile & operator=(const SequestOutfile &sequest_outfile)
assignment operator
SequestOutfile(const SequestOutfile &sequest_outfile)
copy constructor
virtual ~SequestOutfile()
destructor
void getACAndACType(String line, String &accession, String &accession_type)
void load(const String &result_filename, PeptideIdentificationList &peptide_identifications, ProteinIdentification &protein_identification, const double p_value_threshold, std::vector< double > &pvalues, const String &database="", const bool ignore_proteins_per_peptide=false)
loads data from a Sequest outfile
A more convenient string class.
Definition String.h:34
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