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

popup protein list window after loading

parent 52e16127
No related branches found
No related tags found
No related merge requests found
......@@ -268,6 +268,7 @@ void ProjectWindow::doGroupingFinished() {
}
refresh();
qDebug() << "ProjectWindow::doGroupingFinished end";
}
......@@ -412,6 +413,9 @@ void ProjectWindow::setProjectSp(ProjectSp project_sp) {
}
std::vector<IdentificationGroup *> identification_list = _project_sp.get()->getIdentificationGroupList();
doViewProteinList(identification_list[0]);
qDebug() << " ProjectWindow::setProjectSp size=" << identification_list.size();
if (identification_list.size() == 1) {
......@@ -444,6 +448,8 @@ void ProjectWindow::setProjectSp(ProjectSp project_sp) {
refresh();
this->setEnabled(true);
}
......
......@@ -53,7 +53,7 @@ ProteinTableModel::ProteinTableModel(ProteinListWindow * p_protein_list_window)
_p_protein_list_window = p_protein_list_window;
_p_identification_group = nullptr;
_columns << "checked" << "group" << "accession" << "protein description" << "Evalue" << "spectrum" << "specific" << "sequence" << "specific sequence" << "coverage" << "PAI";
_columns << "checked" << "group" << "accession" << "protein description" << "log(Evalue)" << "spectrum" << "specific" << "sequence" << "specific sequence" << "coverage" << "PAI";
}
void ProteinTableModel::setIdentificationGroup(IdentificationGroup * p_identification_group) {
......@@ -167,7 +167,7 @@ QVariant ProteinTableModel::data(const QModelIndex &index, int role ) const {
return _p_identification_group->getProteinMatchList().at(row)->getProteinXtpSp().get()->getDescription();
}
if (_column_assignment[col] == (std::int8_t) ProteinListColumn::evalue ) {
return QVariant ((qreal)_p_identification_group->getProteinMatchList().at(row)->getEvalue());
return QVariant ((qreal)_p_identification_group->getProteinMatchList().at(row)->getLogEvalue());
}
if (_column_assignment[col] == (std::int8_t) ProteinListColumn::spectrum ) {
return QVariant ((qreal) _p_identification_group->getProteinMatchList().at(row)->countPeptideMatch(ValidationState::validAndChecked));
......
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