OpenMS
Sets scores to FDRs/qVals in ID data structures to the closest in a given mapping

Sets FDRs/qVals from a scores_to_FDR map in the ID data structures. More...

Functions

template<typename IDType , class ... Args>
static void setScores_ (const std::map< double, double > &scores_to_FDR, std::vector< IDType > &ids, const std::string &score_type, bool higher_better, Args &&... args)
 
template<typename IDType >
static String setScoreType_ (IDType &id, const std::string &score_type, bool higher_better)
 
template<typename IDType >
static void setScores_ (const std::map< double, double > &scores_to_FDR, IDType &id, const std::string &score_type, bool higher_better, bool keep_decoy)
 
template<typename IDType >
static void setScores_ (const std::map< double, double > &scores_to_FDR, IDType &id, const String &old_score_type)
 
template<typename IDType >
static void setScoresHigherWorse_ (const std::map< double, double > &scores_to_FDR, IDType &id, const String &old_score_type)
 
template<typename IDType , class ... Args>
static void setScoresAndRemoveDecoys_ (const std::map< double, double > &scores_to_FDR, IDType &id, const String &old_score_type, Args &&... args)
 
template<typename IDType , class ... Args>
static void setScoresHigherWorseAndRemoveDecoys_ (const std::map< double, double > &scores_to_FDR, IDType &id, const String &old_score_type, Args &&... args)
 
template<typename HitType >
static void setScore_ (const std::map< double, double > &scores_to_FDR, HitType &hit, const std::string &old_score_type)
 
template<typename HitType >
static void setScoreHigherWorse_ (const std::map< double, double > &scores_to_FDR, HitType &hit, const std::string &old_score_type)
 
static void setScores_ (const std::map< double, double > &scores_to_FDR, PeptideIdentification &id, const std::string &score_type, bool higher_better, bool keep_decoy, int charge)
 
static void setScores_ (const std::map< double, double > &scores_to_FDR, PeptideIdentification &id, const std::string &score_type, bool higher_better, bool keep_decoy, int charge, const String &identifier)
 
template<typename IDType >
static void setScores_ (const std::map< double, double > &scores_to_FDR, IDType &id, const std::string &score_type, bool higher_better, bool keep_decoy, const String &identifier)
 
static void setScores_ (const std::map< double, double > &scores_to_FDR, PeptideIdentification &id, const std::string &score_type, bool higher_better, int charge, const String &identifier)
 
template<typename IDType >
static void setScores_ (const std::map< double, double > &scores_to_FDR, IDType &id, const std::string &score_type, bool higher_better, const String &identifier)
 
template<typename IDType >
static void setScores_ (const std::map< double, double > &scores_to_FDR, IDType &id, const std::string &score_type, bool higher_better, int charge)
 
static void setScores_ (const std::map< double, double > &scores_to_FDR, std::vector< ProteinIdentification::ProteinGroup > &grps, const std::string &score_type, bool higher_better)
 

Detailed Description

Sets FDRs/qVals from a scores_to_FDR map in the ID data structures.

Parameters
scores_to_FDRMaps original score to calculated FDR or q-Value
score_typee.g. FDR or q-Value
higher_betterthe new ordering, should usually be false for FDR/qval

Just use the one you need.

Function Documentation

◆ setScore_()

static void setScore_ ( const std::map< double, double > &  scores_to_FDR,
HitType &  hit,
const std::string &  old_score_type 
)
inlinestatic

◆ setScoreHigherWorse_()

static void setScoreHigherWorse_ ( const std::map< double, double > &  scores_to_FDR,
HitType &  hit,
const std::string &  old_score_type 
)
inlinestatic

◆ setScores_() [1/10]

static void setScores_ ( const std::map< double, double > &  scores_to_FDR,
IDType &  id,
const std::string &  score_type,
bool  higher_better,
bool  keep_decoy 
)
inlinestatic

◆ setScores_() [2/10]

static void setScores_ ( const std::map< double, double > &  scores_to_FDR,
IDType &  id,
const std::string &  score_type,
bool  higher_better,
bool  keep_decoy,
const String identifier 
)
inlinestatic

◆ setScores_() [3/10]

static void setScores_ ( const std::map< double, double > &  scores_to_FDR,
IDType &  id,
const std::string &  score_type,
bool  higher_better,
const String identifier 
)
inlinestatic

◆ setScores_() [4/10]

static void setScores_ ( const std::map< double, double > &  scores_to_FDR,
IDType &  id,
const std::string &  score_type,
bool  higher_better,
int  charge 
)
inlinestatic

◆ setScores_() [5/10]

static void setScores_ ( const std::map< double, double > &  scores_to_FDR,
IDType &  id,
const String old_score_type 
)
inlinestatic

◆ setScores_() [6/10]

static void setScores_ ( const std::map< double, double > &  scores_to_FDR,
PeptideIdentification id,
const std::string &  score_type,
bool  higher_better,
bool  keep_decoy,
int  charge 
)
inlinestatic

◆ setScores_() [7/10]

static void setScores_ ( const std::map< double, double > &  scores_to_FDR,
PeptideIdentification id,
const std::string &  score_type,
bool  higher_better,
bool  keep_decoy,
int  charge,
const String identifier 
)
inlinestatic

◆ setScores_() [8/10]

static void setScores_ ( const std::map< double, double > &  scores_to_FDR,
PeptideIdentification id,
const std::string &  score_type,
bool  higher_better,
int  charge,
const String identifier 
)
inlinestatic

◆ setScores_() [9/10]

static void setScores_ ( const std::map< double, double > &  scores_to_FDR,
std::vector< IDType > &  ids,
const std::string &  score_type,
bool  higher_better,
Args &&...  args 
)
inlinestatic

◆ setScores_() [10/10]

static void setScores_ ( const std::map< double, double > &  scores_to_FDR,
std::vector< ProteinIdentification::ProteinGroup > &  grps,
const std::string &  score_type,
bool  higher_better 
)
static

◆ setScoresAndRemoveDecoys_()

static void setScoresAndRemoveDecoys_ ( const std::map< double, double > &  scores_to_FDR,
IDType &  id,
const String old_score_type,
Args &&...  args 
)
inlinestatic

◆ setScoresHigherWorse_()

static void setScoresHigherWorse_ ( const std::map< double, double > &  scores_to_FDR,
IDType &  id,
const String old_score_type 
)
inlinestatic

◆ setScoresHigherWorseAndRemoveDecoys_()

static void setScoresHigherWorseAndRemoveDecoys_ ( const std::map< double, double > &  scores_to_FDR,
IDType &  id,
const String old_score_type,
Args &&...  args 
)
inlinestatic

◆ setScoreType_()

static String setScoreType_ ( IDType &  id,
const std::string &  score_type,
bool  higher_better 
)
inlinestatic