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

url link to protein in ptm export

parent cfb06eab
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ void PtmIslandProxyModel::onTableClicked(const QModelIndex &index)
//ProteinMatch* p_protein_match = _p_ptm_island_table_model->getIdentificationGroup()->getProteinMatchList().at(row);
if ((col == 2)||(col == 3)) {
if ((col == (std::int8_t) PtmIslandListColumn::accession)||(col == (std::int8_t) PtmIslandListColumn::description)) {
//_p_ptm_island_table_model->askPtmProteinDetailView(p_protein_match);
}
else {
......
......@@ -147,7 +147,13 @@ void PtmIslandSheet::writeOnePtmIsland(PtmIslandSp & sp_ptm_island) {
_p_writer->writeCell(QString("%1.%2").arg(pappso::Utils::getLexicalOrderedString(group_number)).arg(pappso::Utils::getLexicalOrderedString(subgroup_number)));
_p_writer->clearTableCellStyleRef();
_p_writer->writeCell(sp_ptm_island.get()->getGroupingId());
_p_writer->writeCell(p_protein->getAccession());
const std::list<DbXref> & dbxref_list = p_protein->getDbxrefList();
if (dbxref_list.size() == 0) {
_p_writer->writeCell(p_protein->getAccession());
}
else {
_p_writer->writeCell(dbxref_list.front().getUrl(), p_protein->getAccession());
}
_p_writer->writeCell(p_protein->getDescription());
_p_writer->writeCell(p_protein->getMass());
......
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