85 enum type {
primary, secondary, primary_indistinguishable, secondary_indistinguishable} protein_type;
89 std::list<ProteinEntry *>
indis;
142 enum type {PeptideIdent, Consensus} input_type;
163 void resolveID(std::vector<PeptideIdentification> & peptide_identifications);
225 void countTargetDecoy(std::vector<MSDGroup> & msd_groups, std::vector<PeptideIdentification> & peptide_nodes);
254 Size includeMSMSPeptides_(std::vector<PeptideIdentification> & peptide_identifications, std::vector<PeptideEntry> & peptide_nodes);
259 void reindexingNodes_(std::vector<MSDGroup> & msd_groups, std::vector<Size> & reindexed_proteins, std::vector<Size> & reindexed_peptides);
261 void primaryProteins_(std::vector<PeptideEntry> & peptide_nodes, std::vector<Size> & reindexed_peptides);
263 void buildingISDGroups_(std::vector<ProteinEntry> & protein_nodes, std::vector<PeptideEntry> & peptide_nodes,
264 std::vector<ISDGroup> & isd_groups);
A container for consensus elements.
Definition: ConsensusMap.h:92
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
Representation of a peptide hit.
Definition: PeptideHit.h:57
Represents the peptide hits for a spectrum.
Definition: PeptideIdentification.h:65
Helper class for peptide and protein quantification based on feature data annotated with IDs.
Definition: ProteinResolver.h:56
static const PeptideHit & getPeptideHit(const std::vector< PeptideIdentification > &peptide_nodes, const PeptideEntry *peptide)
Size peptide_hit
Definition: ProteinResolver.h:103
float intensity
Definition: ProteinResolver.h:108
void resolveID(std::vector< PeptideIdentification > &peptide_identifications)
Computing protein groups from peptide identifications OR consensus map.
String sequence
Definition: ProteinResolver.h:101
std::list< Size > msd_groups
Definition: ProteinResolver.h:130
std::vector< ResolverResult > resolver_result_
Definition: ProteinResolver.h:241
void buildingISDGroups_(std::vector< ProteinEntry > &protein_nodes, std::vector< PeptideEntry > &peptide_nodes, std::vector< ISDGroup > &isd_groups)
void countTargetDecoy(std::vector< MSDGroup > &msd_groups, std::vector< PeptideIdentification > &peptide_nodes)
brief
bool traversed
Definition: ProteinResolver.h:100
std::list< PeptideEntry * > peptides
Definition: ProteinResolver.h:116
void resolveConsensus(ConsensusMap &consensus)
Computing protein groups from peptide identifications OR consensus map.
Size number_of_decoy
Definition: ProteinResolver.h:119
Size includeMSMSPeptides_(std::vector< PeptideIdentification > &peptide_identifications, std::vector< PeptideEntry > &peptide_nodes)
includes all MS/MS derived peptides into the graph –idXML
String origin
Definition: ProteinResolver.h:109
void traversePeptide_(PeptideEntry *pep_node, MSDGroup &group)
bool experimental
Definition: ProteinResolver.h:107
void primaryProteins_(std::vector< PeptideEntry > &peptide_nodes, std::vector< Size > &reindexed_peptides)
marks Proteins which have a unique peptide as primary. Uses reindexed vector, thus reindexingNodes ha...
Size number_of_target_plus_decoy
Definition: ProteinResolver.h:121
static const PeptideIdentification & getPeptideIdentification(const std::vector< PeptideIdentification > &peptide_nodes, const PeptideEntry *peptide)
const std::vector< ResolverResult > & getResults()
ISDGroup * isd_group
Definition: ProteinResolver.h:118
Size number_of_target
Definition: ProteinResolver.h:120
Size includeMSMSPeptides_(ConsensusMap &consensus, std::vector< PeptideEntry > &peptide_nodes)
void traverseProtein_(ProteinEntry *prot_node, MSDGroup &group)
traverse protein and peptide nodes for building MSD groups
void buildingMSDGroups_(std::vector< MSDGroup > &msd_groups, std::vector< ISDGroup > &isd_groups)
~ProteinResolver() override
ProteinResolver(const ProteinResolver &rhs)
static const PeptideIdentification & getPeptideIdentification(const ConsensusMap &consensus, const PeptideEntry *peptide)
overloaded functions – return a const reference to a PeptideIdentification object or a peptideHit eit...
Size msd_group
Definition: ProteinResolver.h:105
Size findPeptideEntry_(String seq, std::vector< PeptideEntry > &nodes)
searches given sequence in all nodes and returns its index or nodes.size() if not found.
void countTargetDecoy(std::vector< MSDGroup > &msd_groups, ConsensusMap &consensus)
brief
std::list< ProteinEntry * > proteins
Definition: ProteinResolver.h:99
Size binarySearchNodes_(String &seq, std::vector< PeptideEntry > &nodes, Size start, Size end)
helper function for findPeptideEntry.
void setProteinData(std::vector< FASTAFile::FASTAEntry > &protein_data)
std::vector< FASTAFile::FASTAEntry > protein_data_
Definition: ProteinResolver.h:242
static const PeptideHit & getPeptideHit(const ConsensusMap &consensus, const PeptideEntry *peptide)
void reindexingNodes_(std::vector< MSDGroup > &msd_groups, std::vector< Size > &reindexed_proteins, std::vector< Size > &reindexed_peptides)
Proteins and Peptides get reindexed, based on whether they belong to msd groups or not....
Size peptide_identification
Definition: ProteinResolver.h:102
Size index
Definition: ProteinResolver.h:104
ProteinResolver & operator=(const ProteinResolver &rhs)
void computeIntensityOfMSD_(std::vector< MSDGroup > &msd_groups)
Size isd_group
Definition: ProteinResolver.h:106
Definition: ProteinResolver.h:126
representation of an msd group. Contains peptides, proteins and a pointer to its ISD group
Definition: ProteinResolver.h:114
represents a peptide. First in silico. If experimental is set to true it is MS/MS derived.
Definition: ProteinResolver.h:98
A more convenient string class.
Definition: String.h:60
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
FASTA entry type (identifier, description and sequence) The first String corresponds to the identifie...
Definition: FASTAFile.h:72
represents a protein from FASTA file
Definition: ProteinResolver.h:81
float coverage
Definition: ProteinResolver.h:87
std::list< ProteinEntry * > indis
Definition: ProteinResolver.h:89
bool traversed
Definition: ProteinResolver.h:83
std::list< PeptideEntry * > peptides
Definition: ProteinResolver.h:82
type
Definition: ProteinResolver.h:85
@ primary
Definition: ProteinResolver.h:85
double weight
Definition: ProteinResolver.h:86
Size number_of_experimental_peptides
Definition: ProteinResolver.h:93
Size msd_group
Definition: ProteinResolver.h:91
FASTAFile::FASTAEntry * fasta_entry
Definition: ProteinResolver.h:84
Size index
Definition: ProteinResolver.h:90
Size isd_group
Definition: ProteinResolver.h:92
Definition: ProteinResolver.h:134
std::vector< MSDGroup > * msds
Definition: ProteinResolver.h:137
std::vector< ISDGroup > * isds
Definition: ProteinResolver.h:136
std::vector< PeptideIdentification > * peptide_identification
Definition: ProteinResolver.h:143
type
Definition: ProteinResolver.h:142
std::vector< Size > * reindexed_proteins
Definition: ProteinResolver.h:141
std::vector< PeptideEntry > * peptide_entries
Definition: ProteinResolver.h:139
std::vector< Size > * reindexed_peptides
Definition: ProteinResolver.h:140
std::vector< ProteinEntry > * protein_entries
Definition: ProteinResolver.h:138
ConsensusMap * consensus_map
Definition: ProteinResolver.h:144
String identifier
Definition: ProteinResolver.h:135