135 std::unordered_map<std::string, std::pair<ProteinHit*, Size>>& acc_to_protein_hitP_and_count,
151 const std::string& overall_score_type,
153 const std::string& run_id)
const;
164 std::unordered_map<std::string, std::pair<ProteinHit*, Size>>& acc_to_protein_hitP_and_count,
167 bool higher_better)
const;
190 const std::string& score_type,
218 typedef double (*fptr)(double, double);
Simple protein inference by aggregation of per-peptide PSM scores.
Definition BasicProteinInferenceAlgorithm.h:62
BasicProteinInferenceAlgorithm()
Default constructor.
void checkCompat_(const IDScoreSwitcherAlgorithm::ScoreType &score_type, const AggregationMethod &aggregation_method) const
Same as the string overload, but takes a typed IDScoreSwitcherAlgorithm::ScoreType so the check can b...
void run(PeptideIdentificationList &pep_ids, std::vector< ProteinIdentification > &prot_ids) const
Run inference per protein-ID run, iterating each prot_ids entry separately.
void updateProteinScores_(std::unordered_map< std::string, std::pair< ProteinHit *, Size > > &acc_to_protein_hitP_and_count, const SequenceToChargeToPSM &best_pep, bool pep_scores, bool higher_better) const
aggregates and updates protein scores based on aggregation settings and aggregated peptide level resu...
void checkCompat_(const std::string &score_type, const AggregationMethod &aggregation_method) const
Reject score-type / aggregation-method combinations that don't make statistical sense.
std::unordered_map< std::string, std::map< Int, PeptideHit * > > SequenceToChargeToPSM
Definition BasicProteinInferenceAlgorithm.h:65
void run(ConsensusMap &cmap, ProteinIdentification &prot_id, bool include_unassigned) const
Run inference over a ConsensusMap, treating every peptide identification it carries as evidence for t...
void processRun_(std::unordered_map< std::string, std::pair< ProteinHit *, Size > > &acc_to_protein_hitP_and_count, SequenceToChargeToPSM &best_pep, ProteinIdentification &prot_run, PeptideIdentificationList &pep_ids) const
Performs simple aggregation-based inference on one protein run.
double getInitScoreForAggMethod_(const AggregationMethod &aggregation_method, bool higher_better) const
Return the identity-element initial score for the chosen aggregation method.
void run(PeptideIdentificationList &pep_ids, ProteinIdentification &prot_id) const
Run inference for a single protein-ID run.
AggregationMethod
The aggregation method.
Definition BasicProteinInferenceAlgorithm.h:71
AggregationMethod aggFromString_(const std::string &method_string) const
Map a score_aggregation_method parameter string to the AggregationMethod enum.
void aggregatePeptideScores_(SequenceToChargeToPSM &best_pep, PeptideIdentificationList &pep_ids, const std::string &overall_score_type, bool higher_better, const std::string &run_id) const
fills and updates the map of best peptide scores best_pep (by sequence or modified sequence,...
fptr aggFunFromEnum_(const BasicProteinInferenceAlgorithm::AggregationMethod &agg_method, bool higher_better) const
Pick the two-argument accumulator function matching the chosen aggregation method.
A container for consensus elements.
Definition ConsensusMap.h:67
A base class for all classes handling default parameters.
Definition DefaultParamHandler.h:66
Container for peptide identifications from multiple spectra.
Definition PeptideIdentificationList.h:66
Base class for all classes that want to report their progress.
Definition ProgressLogger.h:27
Representation of a protein identification run.
Definition ProteinIdentification.h:55
IDType
Hierarchy of possible score types in MS identification.
Definition Scores.h:51
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19