Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
GO and family associations on GO, InterPro and Family pages
  • Loading branch information
proost committed Dec 15, 2016
1 parent c6724c6 commit 24f692b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions planet/models/gene_families.py
Expand Up @@ -154,14 +154,11 @@ def sequence_stats(sequence_ids):
}
else:
output[d.gene_family_id]['count'] += 1
if d.sequence_id not in output[d.gene_family_id]['sequences']:
output[d.gene_family_id]['sequences'].append(d.sequence_id)
if d.sequence.species_id not in output[d.gene_family_id]['species']:
output[d.gene_family_id]['species'].append(d.sequence.species_id)

for k, v in output.items():
v['species_count'] = len(v['species'])
v['sequence_count'] = len(v['sequences'])

return output

Expand Down
2 changes: 0 additions & 2 deletions planet/templates/async/family_stats.html
Expand Up @@ -3,7 +3,6 @@
<thead>
<tr>
<th data-sort="string-ins">Label</th>
<th data-sort="int">Count</th>
<th data-sort="int">Sequence count</th>
<th data-sort="int">Species count</th>
</tr>
Expand All @@ -13,7 +12,6 @@
<tr>
<td><a href="{{ url_for('family.family_view', family_id=family_id) }}">{{ family_stat.family.name }}</a></td>
<td>{{ family_stat.count }}</td>
<td>{{ family_stat.sequence_count }}</td>
<td>{{ family_stat.species_count }}</td>
</tr>
{% else %}
Expand Down
2 changes: 0 additions & 2 deletions planet/templates/async/go_stats.html
Expand Up @@ -5,7 +5,6 @@
<th data-sort="string-ins">Label</th>
<th data-sort="string-ins">Name</th>
<th data-sort="string-ins">Description</th>
<th data-sort="int">Count</th>
<th data-sort="int">Sequence count</th>
<th data-sort="int">Species count</th>
</tr>
Expand All @@ -16,7 +15,6 @@
<td><a href="{{ url_for('go.go_view', go_id=go_id) }}">{{ go_stat.go.label }}</a></td>
<td>{{ go_stat.go.name }}</td>
<td>{{ go_stat.go.description|truncate(80) }}</td>
<td>{{ go_stat.count }}</td>
<td>{{ go_stat.sequence_count }}</td>
<td>{{ go_stat.species_count }}</td>
</tr>
Expand Down

0 comments on commit 24f692b

Please sign in to comment.