63 typedef std::map<size_t, std::map<std::string, FragmentSeqMap > >
IonMapT;
65 typedef std::vector<std::pair<std::string, double> >
IonSeries;
84 double precursor_mz_threshold,
85 double product_mz_threshold,
86 const std::vector<std::string>& fragment_types,
87 const std::vector<size_t>& fragment_charges,
88 bool enable_specific_losses,
89 bool enable_unspecific_losses,
90 int round_decPow = -4);
103 double lower_mz_limit,
double upper_mz_limit,
104 const std::vector<std::pair<double, double> >& swathes);
150 const std::vector<std::string>& fragment_types,
151 const std::vector<size_t>& fragment_charges,
152 bool enable_specific_losses,
153 bool enable_unspecific_losses,
154 bool enable_ms2_precursors,
156 const std::vector<std::pair<double, double> >& swathes,
157 int round_decPow = -4,
158 size_t max_num_alternative_localizations = 20,
159 int shuffle_seed = 1,
160 bool disable_decoy_transitions =
false);
207 double precursor_mz_threshold,
208 double product_mz_threshold,
209 const std::vector<std::string>& fragment_types,
210 const std::vector<size_t>& fragment_charges,
211 bool enable_specific_losses,
212 bool enable_unspecific_losses,
213 int round_decPow = -4);
227 double lower_mz_limit,
228 double upper_mz_limit,
229 const std::vector<std::pair<double, double> >& swathes);
243 int max_transitions);
265 const std::vector<std::string>& fragment_types,
266 const std::vector<size_t>& fragment_charges,
267 bool enable_specific_losses,
268 bool enable_unspecific_losses,
269 bool enable_ms2_precursors,
271 const std::vector<std::pair<double, double> >& swathes,
272 int round_decPow = -4,
273 size_t max_num_alternative_localizations = 20,
274 int shuffle_seed = 1,
275 bool disable_decoy_transitions =
false);
291 const double mz_threshold);
301 int getSwath_(
const std::vector<std::pair<double, double> >& swathes,
const double precursor_mz);
312 bool isInSwath_(
const std::vector<std::pair<double, double> >& swathes,
const double precursor_mz,
const double product_mz);
346 const std::vector<std::vector<size_t> >& mods_combs,
347 const std::string& modification);
395 const std::vector<std::string>& fragment_types,
396 const std::vector<size_t>& fragment_charges,
397 bool enable_specific_losses,
398 bool enable_unspecific_losses,
399 bool enable_ms2_precursors,
400 const std::vector<std::pair<double, double> >& swathes,
402 size_t max_num_alternative_localizations,
417 std::map<std::string, std::string>& DecoySequenceMap,
432 const std::vector<std::string>& fragment_types,
433 const std::vector<size_t>& fragment_charges,
434 bool enable_specific_losses,
435 bool enable_unspecific_losses,
436 bool enable_ms2_precursors,
437 const std::vector<std::pair<double, double> >& swathes,
441 std::map<std::string, std::string>& DecoySequenceMap,
466 const std::vector<std::pair<double, double> >& swathes,
480 const std::vector<std::pair<double, double> >& swathes,
502 const std::vector<std::string>& fragment_types,
503 const std::vector<size_t>& fragment_charges,
504 bool enable_specific_losses,
505 bool enable_unspecific_losses,
506 bool enable_ms2_precursors,
507 const std::vector<std::pair<double, double> >& swathes,
509 size_t max_num_alternative_localizations,
522 const std::vector<std::string>& fragment_types,
523 const std::vector<size_t>& fragment_charges,
524 bool enable_specific_losses,
525 bool enable_unspecific_losses,
526 bool enable_ms2_precursors,
527 const std::vector<std::pair<double, double> >& swathes,
531 const std::map<std::string, std::string>& DecoySequenceMap,
543 std::vector<OpenSwath::LightTransition>& transitions,
545 const std::vector<std::pair<double, double> >& swathes,
558 std::vector<OpenSwath::LightTransition>& transitions,
560 const std::vector<std::pair<double, double> >& swathes,
Definition AASequence.h:96
Generate assays from a TargetedExperiment.
Definition MRMAssay.h:40
void generateTargetAssays_(const OpenMS::TargetedExperiment &exp, TransitionVectorType &transitions, double mz_threshold, const std::vector< std::pair< double, double > > &swathes, int round_decPow, const PeptideMapT &TargetPeptideMap, const IonMapT &TargetIonMap)
Generate target identification transitions.
void restrictTransitionsLight(OpenSwath::LightTargetedExperiment &exp, double lower_mz_limit, double upper_mz_limit, const std::vector< std::pair< double, double > > &swathes)
Restrict and filter transitions in a LightTargetedExperiment.
std::vector< OpenMS::TargetedExperiment::Compound > CompoundVectorType
Definition MRMAssay.h:53
void detectingTransitions(OpenMS::TargetedExperiment &exp, int min_transitions, int max_transitions)
Select detecting fragment ions.
std::map< std::string, std::vector< const ReactionMonitoringTransition * > > PeptideTransitionMapType
Definition MRMAssay.h:56
void uisTransitionsLight(OpenSwath::LightTargetedExperiment &exp, const std::vector< std::string > &fragment_types, const std::vector< size_t > &fragment_charges, bool enable_specific_losses, bool enable_unspecific_losses, bool enable_ms2_precursors, double mz_threshold, const std::vector< std::pair< double, double > > &swathes, int round_decPow=-4, size_t max_num_alternative_localizations=20, int shuffle_seed=1, bool disable_decoy_transitions=false)
Annotate UIS / site-specific transitions (light version)
void generateTargetInSilicoMapLight_(const OpenSwath::LightTargetedExperiment &exp, const std::vector< std::string > &fragment_types, const std::vector< size_t > &fragment_charges, bool enable_specific_losses, bool enable_unspecific_losses, bool enable_ms2_precursors, const std::vector< std::pair< double, double > > &swathes, int round_decPow, size_t max_num_alternative_localizations, SequenceMapT &TargetSequenceMap, IonMapT &TargetIonMap, PeptideMapT &TargetPeptideMap)
Generate target in silico map (light version)
void generateDecoyAssaysLight_(const OpenSwath::LightTargetedExperiment &exp, std::vector< OpenSwath::LightTransition > &transitions, double mz_threshold, const std::vector< std::pair< double, double > > &swathes, int round_decPow, const PeptideMapT &DecoyPeptideMap, const TargetDecoyMapLightT &TargetDecoyMap, const IonMapT &DecoyIonMap, const IonMapT &TargetIonMap)
Generate decoy assays (light version)
void generateTargetAssaysLight_(const OpenSwath::LightTargetedExperiment &exp, std::vector< OpenSwath::LightTransition > &transitions, double mz_threshold, const std::vector< std::pair< double, double > > &swathes, int round_decPow, const PeptideMapT &TargetPeptideMap, const IonMapT &TargetIonMap)
Generate target identification transitions (light version)
void restrictTransitions(OpenMS::TargetedExperiment &exp, double lower_mz_limit, double upper_mz_limit, const std::vector< std::pair< double, double > > &swathes)
Restrict and filter transitions in a TargetedExperiment.
void generateDecoySequences_(const SequenceMapT &TargetSequenceMap, std::map< std::string, std::string > &DecoySequenceMap, int shuffle_seed)
Generate decoy sequences.
std::vector< std::vector< size_t > > nchoosekcombinations_(const std::vector< size_t > &n, size_t k)
Computes all N choose K combinations.
std::map< size_t, ModifiedSequenceMap > SequenceMapT
Stores the ModifiedSequenceMap for all SWATH windows (uses std::map for deterministic iteration order...
Definition MRMAssay.h:60
std::map< size_t, std::map< std::string, FragmentSeqMap > > IonMapT
Stores a mapping : "unmodified sequence" -> FragmentSeqMap for all SWATH windows (uses std::map for d...
Definition MRMAssay.h:63
int getSwath_(const std::vector< std::pair< double, double > > &swathes, const double precursor_mz)
Get swath index (precursor isolation window ordinal) for a particular precursor.
void generateDecoyInSilicoMapLight_(const OpenSwath::LightTargetedExperiment &exp, const std::vector< std::string > &fragment_types, const std::vector< size_t > &fragment_charges, bool enable_specific_losses, bool enable_unspecific_losses, bool enable_ms2_precursors, const std::vector< std::pair< double, double > > &swathes, int round_decPow, TargetDecoyMapLightT &TargetDecoyMap, const PeptideMapT &TargetPeptideMap, const std::map< std::string, std::string > &DecoySequenceMap, IonMapT &DecoyIonMap, PeptideMapT &DecoyPeptideMap)
Generate decoy in silico map (light version)
std::vector< OpenMS::AASequence > generateTheoreticalPeptidoforms_(const OpenMS::AASequence &sequence)
Generate alternative modified peptide forms according to ModificationsDB.
std::map< std::string, IonSeries > PeptideMapT
Maps a peptide sequence to an ion series: "ion_type" -> "fragment m/z".
Definition MRMAssay.h:66
std::string getRandomSequence_(size_t sequence_size, const std::function< int()> &pseudoRNG)
Generates random peptide sequence.
std::map< std::string, OpenSwath::LightCompound > TargetDecoyMapLightT
Light version of TargetDecoyMapT using LightCompound.
Definition MRMAssay.h:492
void generateDecoyAssays_(const OpenMS::TargetedExperiment &exp, TransitionVectorType &transitions, double mz_threshold, const std::vector< std::pair< double, double > > &swathes, int round_decPow, const PeptideMapT &DecoyPeptideMap, TargetDecoyMapT &TargetDecoyMap, const IonMapT &DecoyIonMap, const IonMapT &TargetIonMap)
Generate decoy assays.
void generateDecoyInSilicoMap_(const OpenMS::TargetedExperiment &exp, const std::vector< std::string > &fragment_types, const std::vector< size_t > &fragment_charges, bool enable_specific_losses, bool enable_unspecific_losses, bool enable_ms2_precursors, const std::vector< std::pair< double, double > > &swathes, int round_decPow, TargetDecoyMapT &TargetDecoyMap, PeptideMapT &TargetPeptideMap, std::map< std::string, std::string > &DecoySequenceMap, IonMapT &DecoyIonMap, PeptideMapT &DecoyPeptideMap)
Generate decoy in silico map.
std::vector< OpenMS::ReactionMonitoringTransition > TransitionVectorType
Definition MRMAssay.h:54
std::map< std::string, TargetedExperiment::Peptide > TargetDecoyMapT
Maps the peptide id (same for target and decoy) to the decoy peptide object.
Definition MRMAssay.h:68
std::vector< std::pair< double, std::string > > FragmentSeqMap
Describes a fragment sequence map of : "fragment m/z" -> "modified sequence".
Definition MRMAssay.h:62
std::vector< OpenMS::TargetedExperiment::Peptide > PeptideVectorType
Definition MRMAssay.h:52
std::vector< std::pair< std::string, double > > IonSeries
Describes an ion series: "ion_type" -> "fragment m/z".
Definition MRMAssay.h:65
void reannotateTransitionsLight(OpenSwath::LightTargetedExperiment &exp, double precursor_mz_threshold, double product_mz_threshold, const std::vector< std::string > &fragment_types, const std::vector< size_t > &fragment_charges, bool enable_specific_losses, bool enable_unspecific_losses, int round_decPow=-4)
Annotates and filters transitions in a LightTargetedExperiment.
void filterMinMaxTransitionsCompound(OpenMS::TargetedExperiment &exp, int min_transitions, int max_transitions)
Filters target and decoy transitions by intensity, only keeping the top N transitions.
std::map< std::string, std::vector< const ReactionMonitoringTransition * > > CompoundTransitionMapType
Definition MRMAssay.h:57
void detectingTransitionsLight(OpenSwath::LightTargetedExperiment &exp, int min_transitions, int max_transitions)
Select detecting fragment ions in a LightTargetedExperiment.
void reannotateTransitions(OpenMS::TargetedExperiment &exp, double precursor_mz_threshold, double product_mz_threshold, const std::vector< std::string > &fragment_types, const std::vector< size_t > &fragment_charges, bool enable_specific_losses, bool enable_unspecific_losses, int round_decPow=-4)
Annotates and filters transitions in a TargetedExperiment.
void uisTransitions(OpenMS::TargetedExperiment &exp, const std::vector< std::string > &fragment_types, const std::vector< size_t > &fragment_charges, bool enable_specific_losses, bool enable_unspecific_losses, bool enable_ms2_precursors, double mz_threshold, const std::vector< std::pair< double, double > > &swathes, int round_decPow=-4, size_t max_num_alternative_localizations=20, int shuffle_seed=1, bool disable_decoy_transitions=false)
Annotate UIS / site-specific transitions.
void filterUnreferencedDecoysCompound(OpenMS::TargetedExperiment &exp)
Filters decoy transitions, which do not have respective target transition based on the transitionID.
std::vector< OpenMS::TargetedExperiment::Protein > ProteinVectorType
Definition MRMAssay.h:51
std::vector< OpenMS::AASequence > generateTheoreticalPeptidoformsDecoy_(const OpenMS::AASequence &sequence, const OpenMS::AASequence &decoy_sequence)
Generate alternative modified peptide forms according to ModificationsDB.
void generateTargetInSilicoMap_(const OpenMS::TargetedExperiment &exp, const std::vector< std::string > &fragment_types, const std::vector< size_t > &fragment_charges, bool enable_specific_losses, bool enable_unspecific_losses, bool enable_ms2_precursors, const std::vector< std::pair< double, double > > &swathes, int round_decPow, size_t max_num_alternative_localizations, SequenceMapT &TargetSequenceMap, IonMapT &TargetIonMap, PeptideMapT &TargetPeptideMap)
Generate target in silico map.
bool isInSwath_(const std::vector< std::pair< double, double > > &swathes, const double precursor_mz, const double product_mz)
Check whether the product m/z of a transition falls into the precursor isolation window.
std::vector< std::string > getMatchingPeptidoforms_(const double fragment_ion, const FragmentSeqMap &ions, const double mz_threshold)
Check whether fragment ion are unique ion signatures in vector within threshold and return matching p...
std::map< std::string, std::set< std::string > > ModifiedSequenceMap
Maps an unmodified sequence to all its modified sequences.
Definition MRMAssay.h:59
~MRMAssay() override
Destructor.
std::vector< OpenMS::AASequence > addModificationsSequences_(const std::vector< OpenMS::AASequence > &sequences, const std::vector< std::vector< size_t > > &mods_combs, const std::string &modification)
Generate modified peptide forms based on all possible combinations.
Base class for all classes that want to report their progress.
Definition ProgressLogger.h:28
A description of a targeted experiment containing precursor and production ions.
Definition TargetedExperiment.h:40
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Definition TransitionExperiment.h:369