Skip to content

Commit

Permalink
added alias in custom heatmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
proost committed Nov 8, 2017
1 parent b04c345 commit 6bce197
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion conekt/models/expression/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ def get_heatmap(species_id, probes, zlog=True, raw=False):
if row_max != 0 and not raw:
values[o] = values[o]/row_max

output.append({"name": name, "values": values, "sequence_id": profile.sequence_id})
output.append({"name": name,
"values": values,
"sequence_id": profile.sequence_id,
"shortest_alias":profile.sequence.shortest_alias})

return {'order': order, 'heatmap_data': output}

Expand Down
2 changes: 1 addition & 1 deletion conekt/templates/expression_heatmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ <h1>Heatmap</h1>
{% if p.sequence_id %}
<td><div><span><a href="{{ url_for('sequence.sequence_view', sequence_id=p.sequence_id) }}"
class="qtip_tooltip"
qtip_href="{{ url_for('sequence.sequence_tooltip', sequence_id=p.sequence_id) }}">{{ p.name }}</a></span></div></td>
qtip_href="{{ url_for('sequence.sequence_tooltip', sequence_id=p.sequence_id) }}">{{ p.name }}</a></span>{%- if p.shortest_alias %}&nbsp;<span class="text-muted">({{ p.shortest_alias }})</span>{%- endif -%}</div></td>
{% else %}
<td><div><span>{{ p.name }}</span></div></td>
{% endif %}
Expand Down

0 comments on commit 6bce197

Please sign in to comment.