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

change notation of point mutation from one aa to antother, related to issue #32

parent 9a41f6d7
No related branches found
No related tags found
No related merge requests found
......@@ -51,9 +51,17 @@ PeptideXtp::getModifString(bool without_label [[maybe_unused]]) const
QStringList aamodif;
for(auto &&aa_modif : aa_modif_list)
{
if(!aa_modif->isInternal())
if(aa_modif->getAccession().startsWith("MUTATION:"))
{ // pm@5:N=>T
aamodif << QString(aa_modif->getAccession())
.replace("MUTATION:", QString("pm").arg(i));
}
else
{
aamodif << QString::number(aa_modif->getMass(), 'f', 2);
if(!aa_modif->isInternal())
{
aamodif << QString::number(aa_modif->getMass(), 'f', 2);
}
}
}
aamodif.sort();
......
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