58 return transition_group_id +
"_Precursor_i" +
String(isotope);
74 double min_upper_edge_dist,
75 double lower,
double upper);
90 double min_upper_edge_dist,
91 double lower,
double upper);
111 double& lower,
double& upper);
124 template <
class TargetedExperimentT>
126 const TargetedExperimentT& targeted_exp,
127 TargetedExperimentT& selected_transitions,
128 double min_upper_edge_dist)
130 if (exp.
size() == 0 || exp[0].getPrecursors().
size() == 0)
133 <<
" does not have any experiments or any precursors. Is it a SWATH map? " 134 <<
"I will move to the next map." 141 if (selected_transitions.getTransitions().size() == 0)
144 <<
" no transition were within the precursor window of " << lower <<
" to " << upper
168 bool useQualCutoff =
false,
169 double qualCutoff = 0.0);
A more convenient string class.
Definition: String.h:57
A helper class that is used by several OpenSWATH tools.
Definition: OpenSwathHelper.h:48
std::map< String, MRMTransitionGroupType > TransitionGroupMapType
Definition: MRMFeatureFinderScoring.h:109
static String computePrecursorId(const String &transition_group_id, int isotope)
Compute unique precursor identifier.
Definition: OpenSwathHelper.h:56
Size size() const
Definition: MSExperiment.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
static bool checkSwathMapAndSelectTransitions(const OpenMS::PeakMap &exp, const TargetedExperimentT &targeted_exp, TargetedExperimentT &selected_transitions, double min_upper_edge_dist)
Check the map and select transition in one function.
Definition: OpenSwathHelper.h:125
const String & getLoadedFilePath() const
get the file_name_ which is the absolute path to the file loaded from
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:77
static void checkSwathMap(const OpenMS::PeakMap &swath_map, double &lower, double &upper)
Get the lower / upper offset for this SWATH map and do some sanity checks.
static void selectSwathTransitions(const OpenMS::TargetedExperiment &targeted_exp, OpenMS::TargetedExperiment &selected_transitions, double min_upper_edge_dist, double lower, double upper)
Select transitions between lower and upper and write them into the new TargetedExperiment.
A description of a targeted experiment containing precursor and production ions.
Definition: TargetedExperiment.h:64
Definition: TransitionExperiment.h:206