A class for extracting and reinserting IDScores from Peptide/ProteinIdentifications and from ConsensusMaps.
More...
|
static void | getPickedProteinScores_ (std::unordered_map< String, ScoreToTgtDecLabelPair > &picked_scores, const ProteinIdentification &id, const String &decoy_string, bool decoy_prefix) |
| Fills the scores_labels vector from an ProteinIdentification id for picked protein FDR. I.e. it only takes the better of the two scores for each target-decoy pair (based on the accession after removal of the decoy_prefix . More...
|
|
static void | getPickedProteinGroupScores_ (const std::unordered_map< String, ScoreToTgtDecLabelPair > &picked_scores, ScoreToTgtDecLabelPairs &scores_labels, const std::vector< ProteinIdentification::ProteinGroup > &grps, const String &decoy_string, bool decoy_prefix) |
| Fills the scores_labels vector from a vector of ProteinGroups grps for picked protein group FDR. More...
|
|
static std::pair< bool, String > | removeDecoyStringIfPresent_ (const String &acc, const String &decoy_string, bool decoy_prefix) |
| removes the decoy_string from acc if present. Returns if string was removed and the new string. More...
|
|
static void | fillPeptideScoreMap_ (std::unordered_map< String, ScoreToTgtDecLabelPair > &seq_to_score_labels, std::vector< PeptideIdentification > const &ids) |
|
static void | fillPeptideScoreMap_ (std::unordered_map< String, ScoreToTgtDecLabelPair > &seq_to_score_labels, ConsensusMap const &map, bool include_unassigned) |
|
static void | getScores_ (ScoreToTgtDecLabelPairs &scores_labels, const std::vector< ProteinIdentification::ProteinGroup > &grps, const std::unordered_set< std::string > &decoy_accs) |
|
template<class ... Args> |
static void | getScores_ (ScoreToTgtDecLabelPairs &scores_labels, const std::vector< PeptideIdentification > &ids, Args &&... args) |
|
static void | getScores_ (ScoreToTgtDecLabelPairs &scores_labels, const ProteinIdentification &id) |
|
template<class ... Args> |
static void | getScores_ (ScoreToTgtDecLabelPairs &scores_labels, const PeptideIdentification &id, bool all_hits, Args &&... args) |
|
template<typename IDPredicate , class ... Args> |
static void | getScores_ (ScoreToTgtDecLabelPairs &scores_labels, const PeptideIdentification &id, IDPredicate &&fun, bool all_hits, Args &&... args) |
|
template<typename HitPredicate > |
static void | getScores_ (ScoreToTgtDecLabelPairs &scores_labels, const PeptideHit &hit, HitPredicate &&fun) |
|
template<typename HitType , typename std::enable_if< IsHitType< HitType >::value >::type * = nullptr> |
static void | getScores_ (ScoreToTgtDecLabelPairs &scores_labels, const HitType &hit) |
|
template<class ... Args> |
static void | getPeptideScoresFromMap_ (ScoreToTgtDecLabelPairs &scores_labels, const ConsensusMap &cmap, bool include_unassigned_peptides, Args &&... args) |
| Helper for getting scores in ConsensusMaps. More...
|
|
static bool | getTDLabel_ (const MetaInfoInterface &idOrHit) |
| For peptide hits, a hit is considered target also if it maps to both a target and a decoy protein (i.e. "target+decoy") as value in the "target_decoy" metavalue e.g. annotated by PeptideIndexer. More...
|
|
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) |
|
template<typename HitType > |
static void | setScoreAndMoveIfTarget_ (const std::map< double, double > &scores_to_FDR, HitType &hit, const std::string &old_score_type, std::vector< HitType > &new_hits) |
| Used when keep_decoy_peptides or proteins is false. More...
|
|
template<typename HitType > |
static void | setScoreHigherWorseAndMoveIfTarget_ (const std::map< double, double > &scores_to_FDR, HitType &hit, const std::string &old_score_type, std::vector< HitType > &new_hits) |
|
static void | setScoreAndMoveIfTarget_ (const std::map< double, double > &scores_to_FDR, PeptideHit &hit, const std::string &old_score_type, std::vector< PeptideHit > &new_hits, int charge) |
| Used when keep_decoy_peptides is false and charge states are considered. More...
|
|
template<class ... Args> |
static void | setPeptideScoresForMap_ (const std::map< double, double > &scores_to_FDR, ConsensusMap &cmap, bool include_unassigned_peptides, const std::string &score_type, bool higher_better, bool keep_decoy, Args &&... args) |
| Helper for applying set Scores on ConsensusMaps. More...
|
|
static void | checkTDAnnotation_ (const MetaInfoInterface &id_or_hit) |
| To check the metavalues before we do anything. More...
|
|
static void | setPeptideScoresFromMap_ (std::unordered_map< String, ScoreToTgtDecLabelPair > const &seq_to_fdr, std::vector< PeptideIdentification > &ids, std::string const &score_type, bool keep_decoys) |
|
static void | setPeptideScoresFromMap_ (std::unordered_map< String, ScoreToTgtDecLabelPair > const &seq_to_fdr, ConsensusMap &map, std::string const &score_type, bool keep_decoys, bool include_unassigned) |
|
A class for extracting and reinserting IDScores from Peptide/ProteinIdentifications and from ConsensusMaps.