File tree Expand file tree Collapse file tree
app/views/registers/curation_genomics Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ »
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 ="<%=
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 >
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 >
You can’t perform that action at this time.
0 commit comments