OpenMS
ConsensusIDAlgorithmIdentity.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, OpenMS Inc. -- 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 {
26  class OPENMS_DLLAPI ConsensusIDAlgorithmIdentity :
28  {
29  protected:
32 
42  virtual void preprocess_(std::vector<PeptideIdentification>& ids);
43 
52  virtual double getAggregateScore_(std::vector<double>& scores,
53  bool higher_better) = 0;
54 
55  private:
58 
61 
63  void apply_(std::vector<PeptideIdentification>& ids,
64  const std::map<String, String>& se_info,
65  SequenceGrouping& results) override;
66  };
67 
68 } // namespace OpenMS
69 
Abstract base class for ConsensusID algorithms that compare only identical sequences.
Definition: ConsensusIDAlgorithmIdentity.h:28
virtual void preprocess_(std::vector< PeptideIdentification > &ids)
Preprocessing of peptide IDs (in the beginning of "apply_").
virtual double getAggregateScore_(std::vector< double > &scores, bool higher_better)=0
Aggregate peptide scores into one final score (to be implemented by subclasses).
void apply_(std::vector< PeptideIdentification > &ids, const std::map< String, String > &se_info, SequenceGrouping &results) override
Consensus scoring.
ConsensusIDAlgorithmIdentity(const ConsensusIDAlgorithmIdentity &)
Not implemented.
ConsensusIDAlgorithmIdentity()
Default constructor.
ConsensusIDAlgorithmIdentity & operator=(const ConsensusIDAlgorithmIdentity &)
Not implemented.
Abstract base class for all ConsensusID algorithms (that calculate a consensus from multiple ID runs)...
Definition: ConsensusIDAlgorithm.h:34
std::map< AASequence, HitInfo > SequenceGrouping
Mapping: peptide sequence -> (charge, scores)
Definition: ConsensusIDAlgorithm.h:71
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19