OpenMS
Qvalue Class Reference

Qvalue : contains functions to calculate Qvalues from deconvolution quality score. More...

#include <OpenMS/ANALYSIS/TOPDOWN/Qvalue.h>

Public Types

typedef FLASHDeconvHelperStructs::LogMzPeak LogMzPeak
 

Static Public Member Functions

static void updatePeakGroupQvalues (std::vector< DeconvolvedSpectrum > &deconvolved_spectra, std::vector< DeconvolvedSpectrum > &deconvolved_decoy_spectra)
 

Static Private Member Functions

static uint getBinNumber (float qscore, uint total_bin_number)
 get a bin number given qvalue. qvalue is calculated per bin (bin from 0 to 1). More...
 
static float getBinValue (uint bin_number, uint total_bin_number)
 get the qvalue corresponding to a bin number More...
 
static std::vector< float > getDistribution (const std::vector< float > &qscores, uint bin_number)
 get the Qscore distribution More...
 
static std::vector< float > getDistributionWeights (const std::vector< float > &mixed_dist, const std::vector< std::vector< float >> &comp_dists, uint num_iterations=100)
 get the weights of different dummy types. More...
 

Detailed Description

Qvalue : contains functions to calculate Qvalues from deconvolution quality score.

Member Typedef Documentation

◆ LogMzPeak

Member Function Documentation

◆ getBinNumber()

static uint getBinNumber ( float  qscore,
uint  total_bin_number 
)
staticprivate

get a bin number given qvalue. qvalue is calculated per bin (bin from 0 to 1).

◆ getBinValue()

static float getBinValue ( uint  bin_number,
uint  total_bin_number 
)
staticprivate

get the qvalue corresponding to a bin number

◆ getDistribution()

static std::vector<float> getDistribution ( const std::vector< float > &  qscores,
uint  bin_number 
)
staticprivate

get the Qscore distribution

◆ getDistributionWeights()

static std::vector<float> getDistributionWeights ( const std::vector< float > &  mixed_dist,
const std::vector< std::vector< float >> &  comp_dists,
uint  num_iterations = 100 
)
staticprivate

get the weights of different dummy types.

◆ updatePeakGroupQvalues()

static void updatePeakGroupQvalues ( std::vector< DeconvolvedSpectrum > &  deconvolved_spectra,
std::vector< DeconvolvedSpectrum > &  deconvolved_decoy_spectra 
)
static

Calculate and perform a batch update of peak group qvalues using Qscores of target and dummy peak groups in deconvolved spectra, when FDR report is necessary.

Parameters
deconvolved_spectratarget deconvolved spectra
deconvolved_decoy_spectradecoy deconvolved spectra

Referenced by TOPPFLASHDeconv::main_().