From edc2e74bbff46de8691cd200611e8101d5219826 Mon Sep 17 00:00:00 2001
From: Olivier Langella <Olivier.Langella@moulon.inra.fr>
Date: Sat, 22 Apr 2017 11:12:24 +0200
Subject: [PATCH] do not take into account decoy proteins in grouping

---
 src/core/proteinmatch.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/proteinmatch.cpp b/src/core/proteinmatch.cpp
index 5bb90d79b..9265c6292 100644
--- a/src/core/proteinmatch.cpp
+++ b/src/core/proteinmatch.cpp
@@ -153,7 +153,7 @@ const std::vector<PeptideMatch *> & ProteinMatch::getPeptideMatchList() const {
 
 void ProteinMatch::setGroupingExperiment(GroupingExperiment * p_grp_experiment) {
     _sp_grp_protein = nullptr;
-    if (isValidAndChecked()) {
+    if ((isValidAndChecked() && (!_protein_sp.get()->isDecoy()))) {
         _sp_grp_protein = p_grp_experiment->getGrpProteinSp(this);
 
         for (auto & p_peptide_match : _peptide_match_list) {
-- 
GitLab