OpenMS
ConsensusIDAlgorithmRanks.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Hendrik Weisser $
6 // $Authors: Andreas Bertsch, Marc Sturm, Sven Nahnsen, Hendrik Weisser $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
12 
13 namespace OpenMS
14 {
22  class OPENMS_DLLAPI ConsensusIDAlgorithmRanks :
24  {
25  public:
28 
29  private:
32 
35 
38 
41 
43  void preprocess_(std::vector<PeptideIdentification>& ids) override;
44 
46  double getAggregateScore_(std::vector<double>& scores,
47  bool higher_better) override;
48  };
49 
50 } // namespace OpenMS
51 
Abstract base class for ConsensusID algorithms that compare only identical sequences.
Definition: ConsensusIDAlgorithmIdentity.h:28
Calculates a consensus from multiple ID runs based on the ranks of the search hits.
Definition: ConsensusIDAlgorithmRanks.h:24
ConsensusIDAlgorithmRanks & operator=(const ConsensusIDAlgorithmRanks &)
Not implemented.
ConsensusIDAlgorithmRanks()
Default constructor.
double getAggregateScore_(std::vector< double > &scores, bool higher_better) override
Aggregate peptide scores into one final score (by averaging ranks)
void preprocess_(std::vector< PeptideIdentification > &ids) override
Assign peptide scores based on search ranks.
ConsensusIDAlgorithmRanks(const ConsensusIDAlgorithmRanks &)
Not implemented.
Size current_number_of_runs_
Number of ID runs for current analysis.
Definition: ConsensusIDAlgorithmRanks.h:31
Size current_considered_hits_
Number of considered hits for current analysis.
Definition: ConsensusIDAlgorithmRanks.h:34
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:101
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22