Skip to content

Commit d0c07d9

Browse files
committed
Update _ambiguous_type_genome.html.erb
1 parent fe9bb00 commit d0c07d9

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

app/views/registers/curation_genomics/_ambiguous_type_genome.html.erb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
<%= pager(@names) %>
2+
3+
<% def show_tax_string(string) %>
4+
<% string.split(' > ').each do |i| %>
5+
<% r, n = i.split(':', 2) %>
6+
<% r_deg = (%w[x d k p c o f g s].index(r.to_s[0]) || 0) * 360 / 9 %>
7+
&raquo;
8+
<span style="color: hsl(<%= r_deg %>deg 80% 30%);"><%= n %></span>
9+
<% end %>
10+
<% end %>
11+
212
<% def show_aai(cr) %>
313
<% cr.each do |r| %>
414
<div class="<%=
@@ -20,6 +30,7 @@
2030
<th>Name, Type</th>
2131
<th>Checks</th>
2232
<th>Discrepancies</th>
33+
<th>Reported Classification</th>
2334
<th>MiGA Distances (top 3 AAI)</th>
2435
<th>MiGA Taxonomy (top 3 AAI)</th>
2536
</tr>
@@ -48,6 +59,12 @@
4859
<% end %>
4960
<% end %>
5061
</td>
62+
<td>
63+
<% show_tax_string(
64+
name.lineage.map { |i| "#{i.inferred_rank}:#{i.name}" }
65+
.join(' > ')
66+
) %>
67+
</td>
5168
<% if genome %>
5269
<% miga_obj = genome.miga_object %>
5370
<td>

0 commit comments

Comments
 (0)