Skip to content
Snippets Groups Projects
Commit 85e3d1cf authored by Olivier Langella's avatar Olivier Langella
Browse files

dont filter on protein when counting peptides

parent 0a6dce3e
No related branches found
No related tags found
No related merge requests found
......@@ -49,11 +49,11 @@ IdentificationGroup::~IdentificationGroup()
unsigned int IdentificationGroup::countDecoyPeptideMatch(ValidationState state) const {
unsigned int i=0;
for (auto & p_protein_match : _protein_match_list) {
if (p_protein_match->getValidationState() == state) {
//if (p_protein_match->getValidationState() == state) {
if (p_protein_match->getProteinXtpSp().get()->isDecoy()) {
i+=p_protein_match->countPeptideMatch(state);
}
}
//}
}
return i;
}
......@@ -71,9 +71,9 @@ unsigned int IdentificationGroup::countDecoyProteinMatch(ValidationState state)
unsigned int IdentificationGroup::countPeptideMatch(ValidationState state) const {
unsigned int i=0;
for (auto & p_protein_match : _protein_match_list) {
if (p_protein_match->getValidationState() >= state) {
//if (p_protein_match->getValidationState() >= state) {
i+=p_protein_match->countPeptideMatch(state);
}
//}
}
return i;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment