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_SEQUESTINFILE_H
00036 #define OPENMS_FORMAT_SEQUESTINFILE_H
00037
00038 #include <OpenMS/DATASTRUCTURES/String.h>
00039
00040 #include <map>
00041
00042
00043 namespace OpenMS
00044 {
00052 class OPENMS_DLLAPI SequestInfile
00053 {
00054 public:
00056 SequestInfile();
00057
00059 SequestInfile(const SequestInfile & sequest_infile);
00060
00062 virtual ~SequestInfile();
00063
00065 SequestInfile & operator=(const SequestInfile & sequest_infile);
00066
00068 bool operator==(const SequestInfile & sequest_infile) const;
00069
00074 void store(const String & filename);
00075
00077 const String getEnzymeInfoAsString() const;
00078
00080 const String & getDatabase() const;
00082 void setDatabase(const String & database);
00083
00085 const String & getNeutralLossesForIons() const;
00087 void setNeutralLossesForIons(const String & neutral_losses_for_ions);
00088
00090 const String & getIonSeriesWeights() const;
00092 void setIonSeriesWeights(const String & ion_series_weights);
00093
00095 const String & getPartialSequence() const;
00097 void setPartialSequence(const String & partial_sequence);
00098
00100 const String & getSequenceHeaderFilter() const;
00102 void setSequenceHeaderFilter(const String & sequence_header_filter);
00103
00105 const String & getProteinMassFilter() const;
00107 void setProteinMassFilter(const String & protein_mass_filter);
00108
00109
00111 Real getPeakMassTolerance() const;
00113 void setPeakMassTolerance(Real peak_mass_tolerance);
00114
00116 Real getPrecursorMassTolerance() const;
00118 void setPrecursorMassTolerance(Real precursor_mass_tolerance);
00119
00121 Real getMatchPeakTolerance() const;
00123 void setMatchPeakTolerance(Real match_peak_tolerance);
00124
00126 Real getIonCutoffPercentage() const;
00128 void setIonCutoffPercentage(Real ion_cutoff_percentage);
00129
00131 Size getPeptideMassUnit() const;
00133 void setPeptideMassUnit(Size peptide_mass_unit);
00134
00136 Size getOutputLines() const;
00138 void setOutputLines(Size output_lines);
00139
00141 Size getEnzymeNumber() const;
00143 String getEnzymeName() const;
00145 Size setEnzyme(String enzyme_name);
00146
00148 Size getMaxAAPerModPerPeptide() const;
00150 void setMaxAAPerModPerPeptide(Size max_aa_per_mod_per_peptide);
00151
00153 Size getMaxModsPerPeptide() const;
00155 void setMaxModsPerPeptide(Size max_mods_per_peptide);
00156
00158 Size getNucleotideReadingFrame() const;
00170 void setNucleotideReadingFrame(Size nucleotide_reading_frame);
00171
00173 Size getMaxInternalCleavageSites() const;
00175 void setMaxInternalCleavageSites(Size max_internal_cleavage_sites);
00176
00178 Size getMatchPeakCount() const;
00180 void setMatchPeakCount(Size match_peak_count);
00181
00183 Size getMatchPeakAllowedError() const;
00185 void setMatchPeakAllowedError(Size match_peak_allowed_error);
00186
00187
00189 bool getShowFragmentIons() const;
00191 void setShowFragmentIons(bool show_fragments);
00192
00194 bool getPrintDuplicateReferences() const;
00196 void setPrintDuplicateReferences(bool print_duplicate_references);
00197
00199 bool getRemovePrecursorNearPeaks() const;
00201 void setRemovePrecursorNearPeaks(bool remove_precursor_near_peaks);
00202
00204 bool getMassTypeParent() const;
00206 void setMassTypeParent(bool mass_type_parent);
00207
00209 bool getMassTypeFragment() const;
00211 void setMassTypeFragment(bool mass_type_fragment);
00212
00214 bool getNormalizeXcorr() const;
00216 void setNormalizeXcorr(bool normalize_xcorr);
00217
00219 bool getResiduesInUpperCase() const;
00221 void setResiduesInUpperCase(bool residues_in_upper_case);
00222
00226 void addEnzymeInfo(std::vector<String> & enzyme_info);
00227
00229 const std::map<String, std::vector<String> > & getModifications() const;
00230
00242 void handlePTMs(const String & modification_line, const String & modifications_filename, const bool monoisotopic);
00243
00244 protected:
00246 const std::map<String, std::vector<String> > & getEnzymeInfo_() const;
00247
00249 void setStandardEnzymeInfo_();
00250
00251 std::map<String, std::vector<String> > enzyme_info_;
00252 String database_;
00253 String snd_database_;
00254 String neutral_losses_for_ions_;
00255 String ion_series_weights_;
00256 String partial_sequence_;
00257 String sequence_header_filter_;
00258 String protein_mass_filter_;
00259
00260 Real precursor_mass_tolerance_;
00261 Real peak_mass_tolerance_;
00262 Real match_peak_tolerance_;
00263 Real ion_cutoff_percentage_;
00264
00265 Size peptide_mass_unit_;
00266 Size output_lines_;
00267 Size enzyme_number_;
00268 Size max_AA_per_mod_per_peptide_;
00269 Size max_mods_per_peptide_;
00270 Size nucleotide_reading_frame_;
00271
00272
00273
00274
00275
00276
00277
00278
00279
00280
00281 Size max_internal_cleavage_sites_;
00282 Size match_peak_count_;
00283 Size match_peak_allowed_error_;
00284
00285
00286 bool show_fragment_ions_;
00287 bool print_duplicate_references_;
00288 bool remove_precursor_near_peaks_;
00289 bool mass_type_parent_;
00290 bool mass_type_fragment_;
00291 bool normalize_xcorr_;
00292 bool residues_in_upper_case_;
00293
00294 std::map<String, std::vector<String> > PTMname_residues_mass_type_;
00295 };
00296
00297 }
00298
00299 #endif // OPENMS_FORMAT_SEQUESTINFILE_H