42 #include <boost/random/mersenne_twister.hpp> 43 #include <boost/random/uniform_int.hpp> 44 #include <boost/random/variate_generator.hpp> 45 #include <boost/unordered_map.hpp> 88 typedef boost::unordered_map<size_t, ModifiedSequenceMap>
SequenceMapT;
91 typedef boost::unordered_map<size_t, boost::unordered_map<String, FragmentSeqMap > >
IonMapT;
93 typedef std::vector<std::pair<std::string, double> >
IonSeries;
96 typedef boost::unordered_map<String, TargetedExperiment::Peptide>
TargetDecoyMapT;
112 double precursor_mz_threshold,
113 double product_mz_threshold,
114 const std::vector<String>& fragment_types,
115 const std::vector<size_t>& fragment_charges,
116 bool enable_specific_losses,
117 bool enable_unspecific_losses,
118 int round_decPow = -4);
131 double lower_mz_limit,
double upper_mz_limit,
132 const std::vector<std::pair<double, double> >& swathes);
178 const std::vector<String>& fragment_types,
179 const std::vector<size_t>& fragment_charges,
180 bool enable_specific_losses,
181 bool enable_unspecific_losses,
182 bool enable_ms2_precursors,
184 const std::vector<std::pair<double, double> >& swathes,
185 int round_decPow = -4,
186 size_t max_num_alternative_localizations = 20,
187 int shuffle_seed = -1,
188 bool disable_decoy_transitions =
false);
226 std::vector<std::string> getMatchingPeptidoforms_(
const double fragment_ion,
228 const double mz_threshold);
238 int getSwath_(
const std::vector<std::pair<double, double> >& swathes,
const double precursor_mz);
249 bool isInSwath_(
const std::vector<std::pair<double, double> >& swathes,
const double precursor_mz,
const double product_mz);
259 std::string getRandomSequence_(
size_t sequence_size, boost::variate_generator<boost::mt19937&, boost::uniform_int<> > pseudoRNG);
269 std::vector<std::vector<size_t> > nchoosekcombinations_(
const std::vector<size_t>& n,
size_t k);
280 std::vector<OpenMS::AASequence> addModificationsSequences_(
const std::vector<OpenMS::AASequence>& sequences,
281 const std::vector<std::vector<size_t> >& mods_combs,
295 std::vector<OpenMS::AASequence> generateTheoreticalPeptidoforms_(
const OpenMS::AASequence& sequence);
330 const std::vector<String>& fragment_types,
331 const std::vector<size_t>& fragment_charges,
332 bool enable_specific_losses,
333 bool enable_unspecific_losses,
334 bool enable_ms2_precursors,
335 const std::vector<std::pair<double, double> >& swathes,
337 size_t max_num_alternative_localizations,
351 void generateDecoySequences_(
const SequenceMapT& TargetSequenceMap,
352 boost::unordered_map<String, String>& DecoySequenceMap,
367 const std::vector<String>& fragment_types,
368 const std::vector<size_t>& fragment_charges,
369 bool enable_specific_losses,
370 bool enable_unspecific_losses,
371 bool enable_ms2_precursors,
372 const std::vector<std::pair<double, double> >& swathes,
376 boost::unordered_map<String, String>& DecoySequenceMap,
401 const std::vector<std::pair<double, double> >& swathes,
415 const std::vector<std::pair<double, double> >& swathes,
const double k
Definition: Constants.h:158
Generate assays from a TargetedExperiment.
Definition: MRMAssay.h:66
A more convenient string class.
Definition: String.h:58
Representation of a peptide/protein sequence.
Definition: AASequence.h:111
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
std::vector< std::pair< std::string, double > > IonSeries
Describes an ion series: "ion_type" -> "fragment m/z".
Definition: MRMAssay.h:93
boost::unordered_map< String, TargetedExperiment::Peptide > TargetDecoyMapT
Maps the peptide id (same for target and decoy) to the decoy peptide object.
Definition: MRMAssay.h:96
std::map< String, IonSeries > PeptideMapT
Maps a peptide sequence to an ion series: "ion_type" -> "fragment m/z".
Definition: MRMAssay.h:94
boost::unordered_map< String, std::set< std::string > > ModifiedSequenceMap
Maps an unmodified sequence to all its modified sequences.
Definition: MRMAssay.h:87
std::vector< OpenMS::TargetedExperiment::Peptide > PeptideVectorType
Definition: MRMAssay.h:80
boost::unordered_map< size_t, boost::unordered_map< String, FragmentSeqMap > > IonMapT
Stores a mapping : "unmodified sequence" -> FragmentSeqMap for all SWATH windows. ...
Definition: MRMAssay.h:91
std::vector< OpenMS::TargetedExperiment::Protein > ProteinVectorType
Definition: MRMAssay.h:79
std::vector< OpenMS::TargetedExperiment::Compound > CompoundVectorType
Definition: MRMAssay.h:81
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:52
A description of a targeted experiment containing precursor and production ions.
Definition: TargetedExperiment.h:64
std::map< String, std::vector< const ReactionMonitoringTransition * > > CompoundTransitionMapType
Definition: MRMAssay.h:85
std::vector< OpenMS::ReactionMonitoringTransition > TransitionVectorType
Definition: MRMAssay.h:82
std::map< String, std::vector< const ReactionMonitoringTransition * > > PeptideTransitionMapType
Definition: MRMAssay.h:84
boost::unordered_map< size_t, ModifiedSequenceMap > SequenceMapT
Stores the ModifiedSequenceMap for all SWATH windows.
Definition: MRMAssay.h:88
std::vector< std::pair< double, std::string > > FragmentSeqMap
Describes a fragment sequence map of : "fragment m/z" -> "modified sequence".
Definition: MRMAssay.h:90