From 79b54719773c9e7a9d773c01d2fc3a1e613127e5 Mon Sep 17 00:00:00 2001 From: Olivier Langella <olivier.langella@u-psud.fr> Date: Tue, 2 Oct 2018 14:57:57 +0200 Subject: [PATCH] display Mascot Evalue --- src/gui/peptide_list_view/peptidetablemodel.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/gui/peptide_list_view/peptidetablemodel.cpp b/src/gui/peptide_list_view/peptidetablemodel.cpp index 991729a01..6ca588d3b 100644 --- a/src/gui/peptide_list_view/peptidetablemodel.cpp +++ b/src/gui/peptide_list_view/peptidetablemodel.cpp @@ -152,7 +152,8 @@ PeptideTableModel::columnCount(const QModelIndex &parent) const return 40; } QVariant -PeptideTableModel::headerData(int section, Qt::Orientation orientation, +PeptideTableModel::headerData(int section, + Qt::Orientation orientation, int role) const { if(orientation == Qt::Horizontal) @@ -399,6 +400,12 @@ PeptideTableModel::data(const QModelIndex &index, int role) const .getPeptideEvidence() ->getParam(PeptideEvidenceParam::mascot_score); break; + case(std::int8_t)PeptideListColumn::mascot_expectation_value: + return _p_protein_match->getPeptideMatchList() + .at(row) + .getPeptideEvidence() + ->getParam(PeptideEvidenceParam::mascot_expectation_value); + break; case(std::int8_t)PeptideListColumn::peptide_prophet_probability: return _p_protein_match->getPeptideMatchList() -- GitLab