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

sort AA modifications to write the same label every time

parent ef2478b4
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
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