From e38a9899e11f3ac75e1e5cea714f252417156d8b Mon Sep 17 00:00:00 2001 From: Olivier Langella <olivier.langella@u-psud.fr> Date: Sat, 25 Nov 2017 11:26:40 +0100 Subject: [PATCH] read identification engine statistics and parameters --- src/gui/project_view/projectwindow.cpp | 4 +++- src/input/xtpxpipsaxhandler.cpp | 11 +++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/gui/project_view/projectwindow.cpp b/src/gui/project_view/projectwindow.cpp index ba6779254..2ed43bf75 100644 --- a/src/gui/project_view/projectwindow.cpp +++ b/src/gui/project_view/projectwindow.cpp @@ -633,7 +633,9 @@ void ProjectWindow::setProjectSp(ProjectSp project_sp) { refresh(); this->setEnabled(true); - + + //doAutomaticFilterParametersChanged(params); + //doFdrChanged(); } diff --git a/src/input/xtpxpipsaxhandler.cpp b/src/input/xtpxpipsaxhandler.cpp index 73e7b1266..f2886d8bf 100644 --- a/src/input/xtpxpipsaxhandler.cpp +++ b/src/input/xtpxpipsaxhandler.cpp @@ -250,7 +250,10 @@ bool XtpXpipSaxHandler::startElement_stat(QXmlAttributes attributes) { MsRunStatistics type = static_cast<MsRunStatistics>(attributes.value("key").toUInt()); _sp_msrun.get()->setMsRunStatistics(type, attributes.value("value")); } - + else if (_sp_current_identification_source.get() != nullptr) { + IdentificationEngineStatistics type = static_cast<IdentificationEngineStatistics>(attributes.value("key").toUInt()); + _sp_current_identification_source.get()->setIdentificationEngineStatistics(type, attributes.value("value")); + } qDebug() << "startElement_stat end" ; return true; } @@ -264,7 +267,11 @@ bool XtpXpipSaxHandler::startElement_param(QXmlAttributes attributes) { if (_sp_current_peptide_evidence.get() != nullptr) { PeptideEvidenceParam type = static_cast<PeptideEvidenceParam>(attributes.value("key").toUInt()); - _sp_current_peptide_evidence.get()->setParam(type, QVariant( attributes.value("value").toDouble())); + _sp_current_peptide_evidence.get()->setParam(type, QVariant( attributes.value("value"))); + } + else if (_sp_current_identification_source.get() != nullptr) { + IdentificationEngineParam type = static_cast<IdentificationEngineParam>(attributes.value("key").toUInt()); + _sp_current_identification_source.get()->setIdentificationEngineParam(type, attributes.value("value")); } qDebug() << "startElement_param end" ; -- GitLab