OpenMS
PSProteinInference.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: Timo Sachsenberg $
6 // $Authors: Alexandra Zerck $
7 // --------------------------------------------------------------------------
8 //
9 
10 #pragma once
11 
14 
15 namespace OpenMS
16 {
17 
21  class OPENMS_DLLAPI PSProteinInference
22  {
23 public:
24 
26 
28 
29 
30  Size findMinimalProteinList(const std::vector<PeptideIdentification> & peptide_ids);
31 
32  void calculateProteinProbabilities(const std::vector<PeptideIdentification> & ids);
33 
34 // double getProteinProbability(const String& acc,const std::vector<String>& accessions, const std::vector<double>& probabilities);
35 
36  double getProteinProbability(const String & acc);
37 
38  bool isProteinInMinimalList(const String & acc);
39  Int getNumberOfProtIds(double protein_id_threshold);
40  Int getNumberOfProtIdsPeptideRule(Int min_peptides, std::map<String, std::set<String> > & prot_id_counter);
41 
43  {
44  return solver_;
45  }
46 
47 private:
48  std::vector<String> minimal_protein_list_accessions_;
49  std::vector<String> accessions_;
50  std::vector<double> probabilities_;
52  };
53 
54 }
55 
56 
57 
SOLVER
Definition: LPWrapper.h:108
This class implements protein inference for the precursor ion selection strategies.
Definition: PSProteinInference.h:22
std::vector< String > minimal_protein_list_accessions_
Definition: PSProteinInference.h:48
bool isProteinInMinimalList(const String &acc)
Int getNumberOfProtIds(double protein_id_threshold)
void calculateProteinProbabilities(const std::vector< PeptideIdentification > &ids)
std::vector< double > probabilities_
Definition: PSProteinInference.h:50
std::vector< String > accessions_
Definition: PSProteinInference.h:49
double getProteinProbability(const String &acc)
LPWrapper::SOLVER getSolver()
Definition: PSProteinInference.h:42
Size findMinimalProteinList(const std::vector< PeptideIdentification > &peptide_ids)
Int getNumberOfProtIdsPeptideRule(Int min_peptides, std::map< String, std::set< String > > &prot_id_counter)
LPWrapper::SOLVER solver_
Definition: PSProteinInference.h:51
A more convenient string class.
Definition: String.h:34
int Int
Signed integer type.
Definition: Types.h:76
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