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

make sure that reversed protein is tagged

parent 9ce97cc2
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
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