CycloBranch
cSpectrumComparatorThreadMS2.h File Reference

The thread for comparison of a theoretical spectrum with a peak list (MS2 level). More...

#include <QRunnable>
#include <QObject>
#include "core/cTheoreticalSpectrum.h"

Go to the source code of this file.

Classes

class  cSpectrumComparatorThreadMS2
 The class representing a thread for comparison of a theoretical spectrum with a peak list (MS2 level). More...
 

Functions

bool comparePaths (vector< nodeEdge > &a, vector< nodeEdge > &b)
 Compare two paths of a peptide sequence candidate as a string. More...
 
bool compareBandAllIonsDesc (const cTheoreticalSpectrum &a, const cTheoreticalSpectrum &b)
 Compare scores of two theoretical spectra (number of b-ions and all ions secondly). More...
 
bool compareYBandAllIonsDesc (const cTheoreticalSpectrum &a, const cTheoreticalSpectrum &b)
 Compare scores of two theoretical spectra (number of b-ions + y-ions and all ions as a secondary score). More...
 
bool compareYandAllIonsDesc (const cTheoreticalSpectrum &a, const cTheoreticalSpectrum &b)
 Compare scores of two theoretical spectra (number of y-ions and all ions as a secondary score). More...
 
bool compareSumOfRelIntDesc (const cTheoreticalSpectrum &a, const cTheoreticalSpectrum &b)
 Compare scores of two theoretical spectra (sum of relative intensities of matched peaks). More...
 
bool compareNumberOfMatchedPeaksDesc (const cTheoreticalSpectrum &a, const cTheoreticalSpectrum &b)
 Compare scores of two theoretical spectra (number of matched peaks). More...
 
bool compareWeightedRatioDesc (const cTheoreticalSpectrum &a, const cTheoreticalSpectrum &b)
 Compare scores of two theoretical spectra (weighted ratio of matched peaks). More...
 
bool compareCosineSimilarityDesc (const cTheoreticalSpectrum &a, const cTheoreticalSpectrum &b)
 Compare scores of two theoretical spectra (cosine similarity). More...
 

Detailed Description

The thread for comparison of a theoretical spectrum with a peak list (MS2 level).

Function Documentation

◆ compareBandAllIonsDesc()

bool compareBandAllIonsDesc ( const cTheoreticalSpectrum a,
const cTheoreticalSpectrum b 
)

Compare scores of two theoretical spectra (number of b-ions and all ions secondly).

Parameters
afirst theoretical spectrum
bsecond theoretical spectrum
Return values
booltrue if the score of a is greater than the score of b

◆ compareCosineSimilarityDesc()

bool compareCosineSimilarityDesc ( const cTheoreticalSpectrum a,
const cTheoreticalSpectrum b 
)

Compare scores of two theoretical spectra (cosine similarity).

Parameters
afirst theoretical spectrum
bsecond theoretical spectrum
Return values
booltrue if the score of a is greater than the score of b

◆ compareNumberOfMatchedPeaksDesc()

bool compareNumberOfMatchedPeaksDesc ( const cTheoreticalSpectrum a,
const cTheoreticalSpectrum b 
)

Compare scores of two theoretical spectra (number of matched peaks).

Parameters
afirst theoretical spectrum
bsecond theoretical spectrum
Return values
booltrue if the score of a is greater than the score of b

◆ comparePaths()

bool comparePaths ( vector< nodeEdge > &  a,
vector< nodeEdge > &  b 
)

Compare two paths of a peptide sequence candidate as a string.

Parameters
afirst theoretical spectrum
bsecond theoretical spectrum
Return values
booltrue if the path of a is smaller than the path of b

◆ compareSumOfRelIntDesc()

bool compareSumOfRelIntDesc ( const cTheoreticalSpectrum a,
const cTheoreticalSpectrum b 
)

Compare scores of two theoretical spectra (sum of relative intensities of matched peaks).

Parameters
afirst theoretical spectrum
bsecond theoretical spectrum
Return values
booltrue if the score of a is greater than the score of b

◆ compareWeightedRatioDesc()

bool compareWeightedRatioDesc ( const cTheoreticalSpectrum a,
const cTheoreticalSpectrum b 
)

Compare scores of two theoretical spectra (weighted ratio of matched peaks).

Parameters
afirst theoretical spectrum
bsecond theoretical spectrum
Return values
booltrue if the score of a is greater than the score of b

◆ compareYandAllIonsDesc()

bool compareYandAllIonsDesc ( const cTheoreticalSpectrum a,
const cTheoreticalSpectrum b 
)

Compare scores of two theoretical spectra (number of y-ions and all ions as a secondary score).

Parameters
afirst theoretical spectrum
bsecond theoretical spectrum
Return values
booltrue if the score of a is greater than the score of b

◆ compareYBandAllIonsDesc()

bool compareYBandAllIonsDesc ( const cTheoreticalSpectrum a,
const cTheoreticalSpectrum b 
)

Compare scores of two theoretical spectra (number of b-ions + y-ions and all ions as a secondary score).

Parameters
afirst theoretical spectrum
bsecond theoretical spectrum
Return values
booltrue if the score of a is greater than the score of b