94 std::vector<PeptideIdentification>& peptides,
102 static void run(std::vector<ProteinIdentification>& inferred_protein_id,
103 std::vector<PeptideIdentification>& inferred_peptide_ids);
112 const std::vector<PeptideIdentification>& peptides,
113 bool skip_sort =
false);
122 std::vector<PeptideIdentification>& peptides);
146 std::vector<PeptideIdentification>& peptides);
Resolves shared peptides based on protein scores.
Definition: PeptideProteinResolution.h:54
std::map< String, Size > prot_acc_to_indist_prot_grp_
Definition: PeptideProteinResolution.h:75
void buildGraph(ProteinIdentification &protein, const std::vector< PeptideIdentification > &peptides, bool skip_sort=false)
void resolveGraph(ProteinIdentification &protein, std::vector< PeptideIdentification > &peptides)
IndexMap_ pep_to_indist_prot_grp_
mapping indist. protein group indices <- peptide identification indices
Definition: PeptideProteinResolution.h:70
static void run(std::vector< ProteinIdentification > &inferred_protein_id, std::vector< PeptideIdentification > &inferred_peptide_ids)
ConnectedComponent findConnectedComponent(Size &root_prot_grp)
IndexMap_ indist_prot_grp_to_pep_
if the protein group at index i contains a target (first) and/or decoy (second)
Definition: PeptideProteinResolution.h:68
static void resolve(ProteinIdentification &protein, std::vector< PeptideIdentification > &peptides, bool resolve_ties, bool targets_first)
std::map< Size, std::set< Size > > IndexMap_
Definition: PeptideProteinResolution.h:62
bool statistics_
log debug information?
Definition: PeptideProteinResolution.h:78
PeptideProteinResolution(bool statistics=false)
void resolveConnectedComponent(ConnectedComponent &conn_comp, ProteinIdentification &protein, std::vector< PeptideIdentification > &peptides)
Representation of a protein identification run.
Definition: ProteinIdentification.h:50
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
Definition: PeptideProteinResolution.h:23
friend std::ostream & operator<<(std::ostream &os, const ConnectedComponent &conn_comp)
Overloaded operator '<<' for ConnectedComponents.
std::set< Size > pep_indices
Definition: PeptideProteinResolution.h:25
std::set< Size > prot_grp_indices
Definition: PeptideProteinResolution.h:24