Skip to content

Commit

Permalink
Add gene descriptions for gene lists and browsing: #97
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Jul 17, 2017
1 parent 614befa commit c38d1ca
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions website/templates/gene/browse.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ <h3>Genes</h3>
sortable: true,
formatter: geneFormatter
},
{
title: 'Summary',
field: 'full_name',
align: 'left',
valign: 'middle',
sortable: true
},
{
title: '# mutations',
sortable: true,
Expand Down
7 changes: 7 additions & 0 deletions website/templates/gene/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ <h3>Gene list: {{ list_name }}</h3>
valign: 'middle',
sortable: true
},
{
title: 'Summary',
field: 'full_name',
align: 'left',
valign: 'middle',
sortable: true
},
{
title: 'Protein View',
field: 'refseq',
Expand Down
2 changes: 2 additions & 0 deletions website/views/gene.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def ajax_query(sql_filters):
query = (
db.session.query(
Gene.name,
Gene.full_name,
muts,
ptm_muts,
sites
Expand Down Expand Up @@ -243,6 +244,7 @@ def query_constructor(sql_filters):
return (
db.session.query(
Gene.name,
Gene.full_name,
Protein.refseq,
muts,
ptm_muts,
Expand Down

0 comments on commit c38d1ca

Please sign in to comment.