From 85e3d1cf2b66952582627d3f4774a457d9b71fa2 Mon Sep 17 00:00:00 2001
From: Olivier Langella <Olivier.Langella@moulon.inra.fr>
Date: Wed, 19 Apr 2017 17:26:19 +0200
Subject: [PATCH] dont filter on protein when counting peptides

---
 src/core/identificationgroup.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/core/identificationgroup.cpp b/src/core/identificationgroup.cpp
index c66ab899c..069a0d921 100644
--- a/src/core/identificationgroup.cpp
+++ b/src/core/identificationgroup.cpp
@@ -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;
 }
-- 
GitLab