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_ANALYSIS_OPENSWATH_MRMDECOY_H
00036 #define OPENMS_ANALYSIS_OPENSWATH_MRMDECOY_H
00037
00038 #include <OpenMS/ANALYSIS/TARGETED/TargetedExperiment.h>
00039 #include <OpenMS/CONCEPT/ProgressLogger.h>
00040
00041 #include <boost/algorithm/string.hpp>
00042 #include <boost/lexical_cast.hpp>
00043 #include <boost/assign.hpp>
00044 #include <boost/random/mersenne_twister.hpp>
00045 #include <boost/random/uniform_int.hpp>
00046 #include <boost/random/variate_generator.hpp>
00047
00048 #include <map>
00049 #include <string>
00050 #include <vector>
00051 #include <utility>
00052
00053
00054
00055 namespace OpenMS
00056 {
00087 class OPENMS_DLLAPI MRMDecoy :
00088 public ProgressLogger
00089 {
00090 public:
00091 MRMDecoy() {}
00092
00109 void generateDecoys(OpenMS::TargetedExperiment& exp,
00110 OpenMS::TargetedExperiment& dec, String method, String decoy_tag,
00111 double identity_threshold, int max_attempts, double mz_threshold,
00112 bool theoretical, double mz_shift, bool exclude_similar,
00113 double similarity_threshold, bool remove_CNterm_mods);
00114
00122 void restrictTransitions(OpenMS::TargetedExperiment& exp, int min_transitions,
00123 int max_transitions);
00124
00125 typedef std::vector<OpenMS::TargetedExperiment::Protein> ProteinVectorType;
00126 typedef std::vector<OpenMS::TargetedExperiment::Peptide> PeptideVectorType;
00127 typedef std::vector<OpenMS::ReactionMonitoringTransition> TransitionVectorType;
00128
00129 typedef std::map<String, std::map<String, double> > IonSeries;
00130 typedef std::map<String, IonSeries> IonSeriesMapType;
00131
00132 typedef std::map<String, std::vector<const ReactionMonitoringTransition*> > PeptideTransitionMapType;
00133
00137 std::pair<String, DoubleReal> getDecoyIon(String ionid,
00138 std::map<String, std::map<String, DoubleReal> >& decoy_ionseries);
00139
00143 std::pair<String, double> getTargetIon(double ProductMZ, double mz_threshold,
00144 std::map<String, std::map<String, double> > target_ionseries);
00145
00161 std::map<String, std::map<String, double> > getIonSeries(
00162 AASequence sequence, int precursor_charge, int max_isotopes = 2);
00163
00167 std::vector<std::pair<std::string::size_type, std::string> > find_all_tryptic(
00168 std::string sequence);
00169
00173 float AASequenceIdentity(const String& sequence, const String& decoy);
00174
00178 bool has_CNterminal_mods(const OpenMS::TargetedExperiment::Peptide & peptide);
00179
00183 void correctMasses(OpenMS::TargetedExperiment& exp, double mz_threshold);
00184
00192 OpenMS::TargetedExperiment::Peptide shufflePeptide(
00193 OpenMS::TargetedExperiment::Peptide peptide, double identity_threshold, int seed = -1,
00194 int max_attempts = 10);
00195
00201 OpenMS::TargetedExperiment::Peptide pseudoreversePeptide(
00202 OpenMS::TargetedExperiment::Peptide peptide);
00203
00207 OpenMS::TargetedExperiment::Peptide reversePeptide(
00208 OpenMS::TargetedExperiment::Peptide peptide);
00209 };
00210 }
00211
00212 #endif