From 7d766e000c9b73599b899159c15aab2c2d42f8e4 Mon Sep 17 00:00:00 2001 From: Olivier Langella <olivier.langella@u-psud.fr> Date: Tue, 19 Jun 2018 10:17:50 +0200 Subject: [PATCH] sort AA modifications to write the same label every time --- src/core/peptidextp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/peptidextp.cpp b/src/core/peptidextp.cpp index 9da57dddb..1c2abad5b 100644 --- a/src/core/peptidextp.cpp +++ b/src/core/peptidextp.cpp @@ -52,6 +52,7 @@ const QString PeptideXtp::getModifString() const { aamodif << QString::number(aa_modif->getMass(), 'f', 2); } } + aamodif.sort(); QString mod_str(aamodif.join("|")); if (!mod_str.isEmpty()) { modif_list << QString("%1%2:%3").arg(i).arg(amino_acid.getLetter()).arg(mod_str); @@ -108,4 +109,4 @@ void PeptideXtp::applyLabelingMethod(LabelingMethodSp labeling_method_sp) { } const Label * PeptideXtp::getLabel() const { return _p_label; -} \ No newline at end of file +} -- GitLab