From fd3f1694617527834bb6207a05cdff274c62d4d4 Mon Sep 17 00:00:00 2001 From: Olivier Langella <Olivier.Langella@moulon.inra.fr> Date: Sat, 22 Apr 2017 11:11:23 +0200 Subject: [PATCH] do not compute mass deviation using decoy proteins --- src/core/identificationgroup.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/identificationgroup.cpp b/src/core/identificationgroup.cpp index 069a0d921..d0334bb28 100644 --- a/src/core/identificationgroup.cpp +++ b/src/core/identificationgroup.cpp @@ -149,7 +149,9 @@ std::size_t IdentificationGroup::countSubGroup()const { void IdentificationGroup::collectMhDelta(std::vector< pappso::pappso_double> & delta_list, pappso::PrecisionUnit unit, ValidationState state) const { for (auto & p_protein_match : _protein_match_list) { if (p_protein_match->getValidationState() >= state) { - p_protein_match->collectMhDelta(delta_list, unit, state); + if (!p_protein_match->getProteinXtpSp().get()->isDecoy()) { + p_protein_match->collectMhDelta(delta_list, unit, state); + } } } } -- GitLab