Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #ifndef OPENMS_FORMAT_SEQUESTOUTFILE_H
00036 #define OPENMS_FORMAT_SEQUESTOUTFILE_H
00037
00038 #include <OpenMS/CONCEPT/Exception.h>
00039 #include <OpenMS/DATASTRUCTURES/String.h>
00040 #include <OpenMS/METADATA/PeptideIdentification.h>
00041
00042 #include <map>
00043 #include <vector>
00044 #include <cmath>
00045
00046 namespace OpenMS
00047 {
00048 class ProteinIdentification;
00049 class DateTime;
00050
00062 class OPENMS_DLLAPI SequestOutfile
00063 {
00064 public:
00066 SequestOutfile();
00067
00069 SequestOutfile(const SequestOutfile & sequest_outfile);
00070
00072 virtual ~SequestOutfile();
00073
00075 SequestOutfile & operator=(const SequestOutfile & sequest_outfile);
00076
00078 bool operator==(const SequestOutfile & sequest_outfile) const;
00079
00098 void load(const String & result_filename, std::vector<PeptideIdentification> & peptide_identifications, ProteinIdentification & protein_identification, const DoubleReal p_value_threshold, std::vector<DoubleReal> & pvalues, const String & database = "", const bool ignore_proteins_per_peptide = false);
00099
00100
00101
00102
00104 bool getColumns(const String & line, std::vector<String> & substrings, Size number_of_columns, Size reference_column);
00105
00114 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);
00115
00118 void getACAndACType(String line, String & accession, String & accession_type);
00119
00125 void readOutHeader(const String & result_filename, DateTime & datetime, DoubleReal & 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);
00126
00127 private:
00128
00129 static DoubleReal const_weights_[];
00130 static DoubleReal xcorr_weights_[];
00131 static DoubleReal delta_cn_weights_[];
00132 static DoubleReal rank_sp_weights_[];
00133 static DoubleReal delta_mass_weights_[];
00134 static Size max_pep_lens_[];
00135 static Size num_frags_[];
00136 };
00137
00138 }
00139
00140 #endif // OPENMS_FORMAT_SEQUESTOUTFILE_H