diff --git a/src/input/xtandemsaxhandler.cpp b/src/input/xtandemsaxhandler.cpp index acef364d2e5ccdd6c966a89576e12a0fe75b9d7a..ee79ad8482612160fb2308008cdad66d08bd2a9b 100644 --- a/src/input/xtandemsaxhandler.cpp +++ b/src/input/xtandemsaxhandler.cpp @@ -333,7 +333,12 @@ bool XtandemSaxHandler::endElement_note() { ////parent_gene=GRMZM2G083841</note> bool is_ok = true; if (_is_protein_description) { - _p_protein_match->getProteinXtpSp().get()->setDescription(_current_text.section(" ",1)); + //_p_protein_match->getProteinXtpSp().get()->setDescription(_current_text.section(" ",1)); + _p_protein_match->getProteinXtpSp().get()->setCompleteDescription(_current_text); + if (!_p_protein_match->getProteinXtpSp().get()->getAccession().endsWith(":reversed") && _p_protein_match->getProteinXtpSp().get()->getDescription().endsWith(":reversed")) { + //to fit most cases, just check that the :reversed chars added by X!Tandem are not in the description. if so, then add it too in the accession + _p_protein_match->getProteinXtpSp().get()->setAccession(QString("%1%2").arg(_p_protein_match->getProteinXtpSp().get()->getAccession()).arg(":reversed")); + } } else {