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

hyperscore column added

parent e4be9a05
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ int PeptideTableModel::rowCount(const QModelIndex &parent ) const {
return 0;
}
int PeptideTableModel::columnCount(const QModelIndex &parent ) const {
return 15;
return 16;
}
QVariant PeptideTableModel::headerData(int section, Qt::Orientation orientation, int role) const
{
......@@ -100,6 +100,8 @@ QVariant PeptideTableModel::headerData(int section, Qt::Orientation orientation,
return QString("theoretical MH+");
case 14:
return QString("delta MH+");
case 15:
return QString("hyperscore");
}
}
}
......@@ -190,6 +192,10 @@ QVariant PeptideTableModel::data(const QModelIndex &index, int role ) const {
return QVariant((qreal) _p_protein_match->getPeptideMatchList().at(row)->getDeltaMass());
}
if (col ==15) {
return _p_protein_match->getPeptideMatchList().at(row)->getParam(PeptideMatchParam::tandem_hyperscore);
}
}
return QString("Row%1, Column%2")
.arg(index.row() + 1)
......
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