Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Static Public Member Functions | List of all members
OpenSwathHelper Class Reference

A helper class that is used by several OpenSWATH tools. More...

#include <OpenMS/ANALYSIS/OPENSWATH/OpenSwathHelper.h>

Static Public Member Functions

static void selectSwathTransitions (const OpenMS::TargetedExperiment &targeted_exp, OpenMS::TargetedExperiment &transition_exp_used, double min_upper_edge_dist, double lower, double upper)
 Select transitions between lower and upper and write them into the new TargetedExperiment. More...
 
static void selectSwathTransitions (const OpenSwath::LightTargetedExperiment &targeted_exp, OpenSwath::LightTargetedExperiment &transition_exp_used, double min_upper_edge_dist, double lower, double upper)
 Select transitions between lower and upper and write them into the new TargetedExperiment. More...
 
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. More...
 
template<class TargetedExperimentT >
static bool checkSwathMapAndSelectTransitions (const OpenMS::PeakMap &exp, const TargetedExperimentT &targeted_exp, TargetedExperimentT &transition_exp_used, double min_upper_edge_dist)
 Check the map and select transition in one function. More...
 
static std::pair< double, doubleestimateRTRange (OpenSwath::LightTargetedExperiment &exp)
 Estimate the retention time span of a targeted experiment (returns min/max values as a pair) More...
 
static std::map< std::string, doublesimpleFindBestFeature (OpenMS::MRMFeatureFinderScoring::TransitionGroupMapType &transition_group_map, bool useQualCutoff=false, double qualCutoff=0.0)
 Simple method to extract the best Feature for each transition group (e.g. for RT alignment) More...
 

Detailed Description

A helper class that is used by several OpenSWATH tools.

Member Function Documentation

◆ checkSwathMap()

static void checkSwathMap ( const OpenMS::PeakMap swath_map,
double lower,
double upper 
)
static

Get the lower / upper offset for this SWATH map and do some sanity checks.

Sanity check for the whole map:

  • all scans need to have exactly one precursor
  • all scans need to have the same MS levels (otherwise extracting an XIC from them makes no sense)
  • all scans need to have the same precursor isolation window (otherwise extracting an XIC from them makes no sense)
Exceptions
throwsIllegalArgument exception if the sanity checks fail.

Referenced by OpenSwathHelper::checkSwathMapAndSelectTransitions(), and SwathFile::loadSplit().

◆ checkSwathMapAndSelectTransitions()

static bool checkSwathMapAndSelectTransitions ( const OpenMS::PeakMap exp,
const TargetedExperimentT &  targeted_exp,
TargetedExperimentT &  transition_exp_used,
double  min_upper_edge_dist 
)
inlinestatic

◆ estimateRTRange()

static std::pair<double,double> estimateRTRange ( OpenSwath::LightTargetedExperiment exp)
static

Estimate the retention time span of a targeted experiment (returns min/max values as a pair)

◆ selectSwathTransitions() [1/2]

static void selectSwathTransitions ( const OpenMS::TargetedExperiment targeted_exp,
OpenMS::TargetedExperiment transition_exp_used,
double  min_upper_edge_dist,
double  lower,
double  upper 
)
static

Select transitions between lower and upper and write them into the new TargetedExperiment.

Version for the OpenMS TargetedExperiment

Referenced by OpenSwathHelper::checkSwathMapAndSelectTransitions().

◆ selectSwathTransitions() [2/2]

static void selectSwathTransitions ( const OpenSwath::LightTargetedExperiment targeted_exp,
OpenSwath::LightTargetedExperiment transition_exp_used,
double  min_upper_edge_dist,
double  lower,
double  upper 
)
static

Select transitions between lower and upper and write them into the new TargetedExperiment.

Version for the LightTargetedExperiment

◆ simpleFindBestFeature()

static std::map<std::string, double> simpleFindBestFeature ( OpenMS::MRMFeatureFinderScoring::TransitionGroupMapType transition_group_map,
bool  useQualCutoff = false,
double  qualCutoff = 0.0 
)
static

Simple method to extract the best Feature for each transition group (e.g. for RT alignment)

Parameters
transition_group_mapInput data containing the picked and scored map
useQualCutoffWhether to apply a quality cutoff to the data
qualCutoffWhen applying a quality cutoff, what it should be
Returns
Result of the best scoring peaks (stored as map of peptide id and RT)

OpenMS / TOPP release 2.3.0 Documentation generated on Tue Jan 9 2018 18:22:11 using doxygen 1.8.13