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

An implementation of the scores for cross-link identification from the xQuest algorithm (O. Rinner et al., 2008, "Identification of cross-linked peptides from large sequence databases") More...

#include <OpenMS/ANALYSIS/XLMS/XQuestScores.h>

Static Public Member Functions

static float preScore (Size matched_alpha, Size ions_alpha, Size matched_beta, Size ions_beta)
 compute a simple and fast to compute pre-score for a cross-link spectrum match More...
 
static float preScore (Size matched_alpha, Size ions_alpha)
 compute a simple and fast to compute pre-score for a mono-link spectrum match More...
 
static double matchOddsScore (const PeakSpectrum &theoretical_spec, const std::vector< std::pair< Size, Size > > &matched_spec, double fragment_mass_tolerance, bool fragment_mass_tolerance_unit_ppm, bool is_xlink_spectrum, Size n_charges=1)
 compute the match-odds score, a score based on the probability of getting the given number of matched peaks by chance More...
 
static double weightedTICScoreXQuest (Size alpha_size, Size beta_size, double intsum_alpha, double intsum_beta, double total_current, bool type_is_cross_link)
 compute the weighted total ion current score for a cross-link. Reimplementation from xQuest. More...
 
static double weightedTICScore (Size alpha_size, Size beta_size, double intsum_alpha, double intsum_beta, double total_current, bool type_is_cross_link)
 compute the weighted total ion current score for a cross-link. Scaling changed from original xQuest. More...
 
static double matchedCurrentChain (const std::vector< std::pair< Size, Size > > &matched_spec_common, const std::vector< std::pair< Size, Size > > &matched_spec_xlinks, const PeakSpectrum &spectrum_common_peaks, const PeakSpectrum &spectrum_xlink_peaks)
 computes sum of peak intensities of matched peaks for either the alpha or the beta peptide More...
 
static double totalMatchedCurrent (const std::vector< std::pair< Size, Size > > &matched_spec_common_alpha, const std::vector< std::pair< Size, Size > > &matched_spec_common_beta, const std::vector< std::pair< Size, Size > > &matched_spec_xlinks_alpha, const std::vector< std::pair< Size, Size > > &matched_spec_xlinks_beta, const PeakSpectrum &spectrum_common_peaks, const PeakSpectrum &spectrum_xlink_peaks)
 computes sum of peak intensities of all matched peaks More...
 
static std::vector< doublexCorrelation (const PeakSpectrum &spec1, const PeakSpectrum &spec2, Int maxshift, double tolerance)
 computes a crude cross-correlation between two spectra. Crude, because it uses a static binsize based on a tolerance in Da and it uses equal intensities for all peaks More...
 

Detailed Description

An implementation of the scores for cross-link identification from the xQuest algorithm (O. Rinner et al., 2008, "Identification of cross-linked peptides from large sequence databases")

Member Function Documentation

◆ matchedCurrentChain()

static double matchedCurrentChain ( const std::vector< std::pair< Size, Size > > &  matched_spec_common,
const std::vector< std::pair< Size, Size > > &  matched_spec_xlinks,
const PeakSpectrum spectrum_common_peaks,
const PeakSpectrum spectrum_xlink_peaks 
)
static

computes sum of peak intensities of matched peaks for either the alpha or the beta peptide

Parameters
alignmentbetween common alpha or beta ions and common experimental peaks
alignmentbetween xlink alpha or beta ions and xlink experimental peaks
experimentalcommon ion spectrum
experimentalxlink spectrum

◆ matchOddsScore()

static double matchOddsScore ( const PeakSpectrum theoretical_spec,
const std::vector< std::pair< Size, Size > > &  matched_spec,
double  fragment_mass_tolerance,
bool  fragment_mass_tolerance_unit_ppm,
bool  is_xlink_spectrum,
Size  n_charges = 1 
)
static

compute the match-odds score, a score based on the probability of getting the given number of matched peaks by chance

Parameters
theoreticalspectrum, sorted by position
alignmentbetween the theoretical and the experimental spectra
fragmentmass tolerance of the alignment
fragmentmass tolerance unit of the alignment, true = ppm, false = Da
typeof cross-link, true = cross-link, false = mono-link
numberof considered charges in the theoretical spectrum

◆ preScore() [1/2]

static float preScore ( Size  matched_alpha,
Size  ions_alpha,
Size  matched_beta,
Size  ions_beta 
)
static

compute a simple and fast to compute pre-score for a cross-link spectrum match

Parameters
numberof experimental peaks matched to theoretical common ions from the alpha peptide
numberof theoretical ions from the alpha peptide
numberof experimental peaks matched to theoretical common ions from the beta peptide
numberof theoretical ions from the beta peptide

◆ preScore() [2/2]

static float preScore ( Size  matched_alpha,
Size  ions_alpha 
)
static

compute a simple and fast to compute pre-score for a mono-link spectrum match

Parameters
numberof experimental peaks matched to theoretical common ions from the alpha peptide
numberof theoretical ions from the alpha peptide

◆ totalMatchedCurrent()

static double totalMatchedCurrent ( const std::vector< std::pair< Size, Size > > &  matched_spec_common_alpha,
const std::vector< std::pair< Size, Size > > &  matched_spec_common_beta,
const std::vector< std::pair< Size, Size > > &  matched_spec_xlinks_alpha,
const std::vector< std::pair< Size, Size > > &  matched_spec_xlinks_beta,
const PeakSpectrum spectrum_common_peaks,
const PeakSpectrum spectrum_xlink_peaks 
)
static

computes sum of peak intensities of all matched peaks

Parameters
alignmentbetween common alpha ions and common experimental peaks
alignmentbetween common beta ions and common experimental peaks
alignmentbetween xlink alpha ions and xlink experimental peaks
alignmentbetween xlink beta ions and xlink experimental peaks
experimentalcommon ion spectrum
experimentalxlink spectrum

◆ weightedTICScore()

static double weightedTICScore ( Size  alpha_size,
Size  beta_size,
double  intsum_alpha,
double  intsum_beta,
double  total_current,
bool  type_is_cross_link 
)
static

compute the weighted total ion current score for a cross-link. Scaling changed from original xQuest.

Parameters
sequencelength of alpha peptide
sequencelength of beta peptide
intensitysum of matched peaks from alpha peptide
intensitysum of matched peaks from beta peptide
typeof cross-link, true = cross-link, false = mono-link
sumof peak intensities of the experimental spectrum
true= cross-link, false = mono-link. in case of a mono-link, beta_size and intsum_beta should be 0

◆ weightedTICScoreXQuest()

static double weightedTICScoreXQuest ( Size  alpha_size,
Size  beta_size,
double  intsum_alpha,
double  intsum_beta,
double  total_current,
bool  type_is_cross_link 
)
static

compute the weighted total ion current score for a cross-link. Reimplementation from xQuest.

Parameters
sequencelength of alpha peptide
sequencelength of beta peptide
intensitysum of matched peaks from alpha peptide
intensitysum of matched peaks from beta peptide
typeof cross-link, true = cross-link, false = mono-link
sumof peak intensities of the experimental spectrum
true= cross-link, false = mono-link. in case of a mono-link, beta_size and intsum_beta should be 0

◆ xCorrelation()

static std::vector< double > xCorrelation ( const PeakSpectrum spec1,
const PeakSpectrum spec2,
Int  maxshift,
double  tolerance 
)
static

computes a crude cross-correlation between two spectra. Crude, because it uses a static binsize based on a tolerance in Da and it uses equal intensities for all peaks

Parameters
firstspectrum
secondspectrum
numberof bins, that should be considered for shifting the second spectrum. the second spectrum is shifted from -maxshift to +maxshift of tolerance bins and a correlation is computed for each position.
toleranceor binsize in Da

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