Skip to content

Commit

Permalink
small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
proost committed Nov 29, 2017
1 parent 22d7ee9 commit 47c16c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions conekt/models/expression/cross_species_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def get_data(self, *sequence_ids):
parsed_profile["data"][c] = parsed_profile["raw_data"][c]/max_value
else:
parsed_profile["data"][c] = None
else:
for c in self.conditions:
parsed_profile["data"][c] = None

converted_profiles.append(
{
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 @@ -98,7 +98,7 @@ <h1>Heatmap</h1>
<td><div><span>{{ p.name }}</span></div></td>
{% endif %}
{% for o in order %}
<td class="value">{% if p['values'][o] != '-' and p['values'][o] is defined %}{{ p['values'][o]|round(2) }}{% else %}-{% endif %}</td>
<td class="value">{% if p['values'][o] != '-' %}{{ p['values'][o]|round(2) }}{% else %}-{% endif %}</td>
{% endfor %}
</tr>
{% endfor %}
Expand Down

0 comments on commit 47c16c5

Please sign in to comment.