120 std::vector<PeptideIdentification>& peptides,
128 static void run(std::vector<ProteinIdentification>& inferred_protein_id,
129 std::vector<PeptideIdentification>& inferred_peptide_ids);
138 const std::vector<PeptideIdentification>& peptides,
139 bool skip_sort =
false);
148 std::vector<PeptideIdentification>& peptides);
172 std::vector<PeptideIdentification>& peptides);
Resolves shared peptides based on protein scores.
Definition: PeptideProteinResolution.h:80
std::map< String, Size > prot_acc_to_indist_prot_grp_
Definition: PeptideProteinResolution.h:101
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:96
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:94
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:88
bool statistics_
log debug information?
Definition: PeptideProteinResolution.h:104
PeptideProteinResolution(bool statistics=false)
void resolveConnectedComponent(ConnectedComponent &conn_comp, ProteinIdentification &protein, std::vector< PeptideIdentification > &peptides)
Representation of a protein identification run.
Definition: ProteinIdentification.h:76
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:48
Definition: PeptideProteinResolution.h:49
friend std::ostream & operator<<(std::ostream &os, const ConnectedComponent &conn_comp)
Overloaded operator '<<' for ConnectedComponents.
std::set< Size > pep_indices
Definition: PeptideProteinResolution.h:51
std::set< Size > prot_grp_indices
Definition: PeptideProteinResolution.h:50