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

remove translation stop reading xtandem results

parent c6d6ebfc
No related branches found
No related tags found
No related merge requests found
......@@ -180,7 +180,7 @@ bool XpipSaxHandler::startElement_modifs_mass(QXmlAttributes attributes) {
bool XpipSaxHandler::startElement_sample(QXmlAttributes attributes) {
qDebug() << "startElement_sample ";
MsRunSp ms_run = _p_project->getMsRunStore().getInstance(attributes.value("value").simplified());
ms_run.get()->setFilename(attributes.value("value").simplified());
_current_identification_group_p->addMsRunSp(ms_run);
......@@ -277,6 +277,8 @@ bool XpipSaxHandler::endElement_peptide() {
bool XpipSaxHandler::endElement_sequence() {
//if ((_tag_stack.size() > 1) && (_tag_stack[_tag_stack.size() - 1] == "protein")) {
//._sequence.replace(QRegExp("\\*"), "")).removeTranslationStop()
_current_protein.setSequence(_current_text);
//}
//else {
......@@ -285,6 +287,7 @@ bool XpipSaxHandler::endElement_sequence() {
return true;
}
bool XpipSaxHandler::endElement_protein() {
ProteinXtpSp sp_xtp_protein = _current_protein.makeProteinXtpSp();
_p_protein_match->setProteinXtpSp(_p_project->getProteinStore().getInstance(sp_xtp_protein));
......@@ -392,3 +395,4 @@ pappso::AaModificationP XpipSaxHandler::getAaModificationP(pappso::mz mass) cons
throw pappso::ExceptionNotFound(QObject::tr("XpipSaxHandler::getAaModificationP => modification not found for mass %1").arg(mass));
}
......@@ -189,7 +189,8 @@ bool XtandemSaxHandler::startElement_domain(QXmlAttributes attributes) {
bool is_ok = true;
_current_text = _current_text.simplified().replace(" ", "");
if (!_current_text.isEmpty()) {
_p_protein_match->getProteinXtpSp().get()->setSequence(_current_text);
//._sequence.replace(QRegExp("\\*"), "")).removeTranslationStop()
_p_protein_match->getProteinXtpSp().get()->setSequence(_current_text.replace(QRegExp("\\*"), ""));
}
// <domain id="4017.1.1" start="21" end="31" expect="2.0e-06"
......
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