121 std::vector<PeptideIdentification>& peptides,
129 static void run(std::vector<ProteinIdentification>& inferred_protein_id,
130 std::vector<PeptideIdentification>& inferred_peptide_ids);
139 const std::vector<PeptideIdentification>& peptides,
140 bool skip_sort =
false);
149 std::vector<PeptideIdentification>& peptides);
173 std::vector<PeptideIdentification>& peptides);
Resolves shared peptides based on protein scores.
Definition: PeptideProteinResolution.h:81
std::map< String, Size > prot_acc_to_indist_prot_grp_
Definition: PeptideProteinResolution.h:102
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:97
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:95
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:89
bool statistics_
log debug information?
Definition: PeptideProteinResolution.h:105
PeptideProteinResolution(bool statistics=false)
void resolveConnectedComponent(ConnectedComponent &conn_comp, ProteinIdentification &protein, std::vector< PeptideIdentification > &peptides)
Representation of a protein identification run.
Definition: ProteinIdentification.h:72
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:47
Definition: PeptideProteinResolution.h:50
friend std::ostream & operator<<(std::ostream &os, const ConnectedComponent &conn_comp)
Overloaded operator '<<' for ConnectedComponents.
std::set< Size > pep_indices
Definition: PeptideProteinResolution.h:52
std::set< Size > prot_grp_indices
Definition: PeptideProteinResolution.h:51