72 void apply(std::vector<PeptideIdentification>& ids,
const std::map<String, String>& se_info,
Size number_of_runs = 0);
74 void apply(std::vector<PeptideIdentification>& ids,
Size number_of_runs = 0);
124 virtual void apply_(std::vector<PeptideIdentification>& ids,
const std::map<String, String>& se_info,
SequenceGrouping& results) = 0;
Representation of a peptide/protein sequence.
Definition: AASequence.h:112
Abstract base class for all ConsensusID algorithms (that calculate a consensus from multiple ID runs)...
Definition: ConsensusIDAlgorithm.h:60
void compareChargeStates_(Int &recorded_charge, Int new_charge, const AASequence &peptide)
Compare (and possibly update) charge state information.
Size considered_hits_
Number of peptide hits considered per ID run (input parameter)
Definition: ConsensusIDAlgorithm.h:100
std::set< PeptideEvidence > evidence
Definition: ConsensusIDAlgorithm.h:87
double support
Definition: ConsensusIDAlgorithm.h:89
String target_decoy
Definition: ConsensusIDAlgorithm.h:86
std::vector< double > scores
Definition: ConsensusIDAlgorithm.h:82
Size number_of_runs_
Number of ID runs.
Definition: ConsensusIDAlgorithm.h:103
double min_support_
Fraction of required support by other ID runs (input parameter)
Definition: ConsensusIDAlgorithm.h:106
bool count_empty_
Count empty runs in "min_support" calculation? (input parameter)
Definition: ConsensusIDAlgorithm.h:109
Int charge
Definition: ConsensusIDAlgorithm.h:81
std::map< AASequence, HitInfo > SequenceGrouping
Mapping: peptide sequence -> (charge, scores)
Definition: ConsensusIDAlgorithm.h:97
bool keep_old_scores_
Keep old scores?
Definition: ConsensusIDAlgorithm.h:112
ConsensusIDAlgorithm()
Default constructor.
double final_score
Definition: ConsensusIDAlgorithm.h:88
virtual void apply_(std::vector< PeptideIdentification > &ids, const std::map< String, String > &se_info, SequenceGrouping &results)=0
Consensus computation (to be implemented by subclasses).
void apply(std::vector< PeptideIdentification > &ids, Size number_of_runs=0)
void updateMembers_() override
Docu in base class.
ConsensusIDAlgorithm(const ConsensusIDAlgorithm &)=delete
Not implemented.
std::vector< String > types
Definition: ConsensusIDAlgorithm.h:83
void apply(std::vector< PeptideIdentification > &ids, const std::map< String, String > &se_info, Size number_of_runs=0)
Calculates the consensus ID for a set of peptide identifications of one spectrum or (consensus) featu...
ConsensusIDAlgorithm & operator=(const ConsensusIDAlgorithm &)=delete
Not implemented.
~ConsensusIDAlgorithm() override
Virtual destructor.
Definition: ConsensusIDAlgorithm.h:80
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
A more convenient string class.
Definition: String.h:60
int Int
Signed integer type.
Definition: Types.h:102
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48