Skip to content

Commit

Permalink
added species to similar cluster table
Browse files Browse the repository at this point in the history
  • Loading branch information
proost committed Nov 20, 2017
1 parent 6dcfeb9 commit cf6bed0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion conekt/templates/expression_cluster.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ <h2>Average Expression Profile</h2>
<table class="table table-striped table-separated" id="SimilarClusters">
<thead>
<tr>
<th data-sort="string-ins"><span class="sort-icon"></span>Species</th>
<th data-sort="string-ins"><span class="sort-icon"></span>Clustering Method</th>
<th data-sort="string-ins"><span class="sort-icon"></span>Target</th>
<th data-sort="float"><span class="sort-icon"></span>Jaccard index</th>
Expand All @@ -112,10 +113,12 @@ <h2>Average Expression Profile</h2>
<tbody>
{% for sc in similar_clusters %}
<tr>
{% if sc.target.name == cluster.name %}
{% if sc.target_id == cluster.id %}
<td><em>{{ sc.source.method.network_method.species.name }}</em></td>
<td>{{ sc.source.method.method }}</td>
<td><a href="{{ url_for('expression_cluster.expression_cluster_view', cluster_id=sc.source_id) }}">{{ sc.source.name }}</a></td>
{% else %}
<td><em>{{ sc.target.method.network_method.species.name }}</em></td>
<td>{{ sc.target.method.method }}</td>
<td><a href="{{ url_for('expression_cluster.expression_cluster_view', cluster_id=sc.source_id) }}">{{ sc.target.name }}</a></td>
{% endif %}
Expand Down

0 comments on commit cf6bed0

Please sign in to comment.