59 void correctMZ(
const std::map<String, OpenMS::MRMFeatureFinderScoring::MRMTransitionGroupType *>& transition_group_map,
61 std::vector< OpenSwath::SwathMap > & swath_maps,
const bool pasef);
78 void correctIM(
const std::map<String, OpenMS::MRMFeatureFinderScoring::MRMTransitionGroupType *> & transition_group_map,
80 const std::vector< OpenSwath::SwathMap > & swath_maps,
95 const std::vector< OpenSwath::SwathMap > & swath_maps);
117 std::vector<double> residuals,
119 bool full_width =
true,
120 double padding_factor = 1.0
158 double mz_estimation_padding_factor_ = 1.0;
159 double im_estimation_padding_factor_ = 1.0;
160 double fragment_mz_window_ = -1;
161 double fragment_im_window_ = -1;
162 double precursor_mz_window_ = -1;
163 double precursor_im_window_ = -1;
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:66
The representation of a group of transitions in a targeted proteomics experiment.
Definition: MRMTransitionGroup.h:42
A more convenient string class.
Definition: String.h:34
A class containing correction functions for Swath MS maps.
Definition: SwathMapMassCorrection.h:28
std::vector< OpenSwath::SwathMap > findSwathMapsPasef(const OpenMS::MRMFeatureFinderScoring::MRMTransitionGroupType &transition_group, const std::vector< OpenSwath::SwathMap > &swath_maps)
Computes the SwathMaps for PASEF data in which windows can have the same m/z but differ by ion mobili...
void setPrecursorImWindow(double precursorImWindow)
Set the estimated precursor ion mobility extraction window.
bool mz_extraction_window_ppm_
Definition: SwathMapMassCorrection.h:149
void setFragmentMzWindow(double fragmentMzWindow)
Set the estimated fragment m/z extraction window (ppm_.
static double estimateWindow(std::vector< double > residuals, double quantile=0.99, bool full_width=true, double padding_factor=1.0)
Estimate an extraction window from absolute residuals.
double getPrecursorMzWindow() const
Retrieve the estimated precursor m/z extraction window (ppm)
double getFragmentMzWindow() const
Retrieve the estimated fragment m/z extraction window (ppm)
double getFragmentImWindow() const
Retrieve the estimated fragment ion mobility extraction window.
double im_extraction_window_
Definition: SwathMapMassCorrection.h:151
void setFragmentImWindow(double fragmentImWindow)
Set the estimated fragment ion mobility extraction window.
String mz_correction_function_
Definition: SwathMapMassCorrection.h:152
~SwathMapMassCorrection() override=default
Destructor.
String debug_mz_file_
Definition: SwathMapMassCorrection.h:155
double mz_extraction_window_
Definition: SwathMapMassCorrection.h:148
void correctIM(const std::map< String, OpenMS::MRMFeatureFinderScoring::MRMTransitionGroupType * > &transition_group_map, const OpenSwath::LightTargetedExperiment &targeted_exp, const std::vector< OpenSwath::SwathMap > &swath_maps, const bool pasef, TransformationDescription &im_trafo)
Correct the ion mobility values of a SWATH map based on the RT-normalization peptides.
bool ms1_im_
Definition: SwathMapMassCorrection.h:150
String im_correction_function_
Definition: SwathMapMassCorrection.h:153
void updateMembers_() override
Synchronize members with param class.
String debug_im_file_
Definition: SwathMapMassCorrection.h:154
double getPrecursorImWindow() const
Retrieve the estimated precursor ion mobility extraction window.
void setPrecursorMzWindow(double precursorMzWindow)
Set the estimated precursor m/z extraction window (ppm)
void correctMZ(const std::map< String, OpenMS::MRMFeatureFinderScoring::MRMTransitionGroupType * > &transition_group_map, const OpenSwath::LightTargetedExperiment &targeted_exp, std::vector< OpenSwath::SwathMap > &swath_maps, const bool pasef)
Correct the m/z values of a SWATH map based on the RT-normalization peptides.
T1::value_type quantile(const T1 &x, double q)
Returns the value of the q th quantile (0-1) in a sorted non-empty vector x.
Definition: MathFunctions.h:459
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Definition: TransitionExperiment.h:185