Skip to content

Commit cbd048e

Browse files
committed
Update _inconsistent_16s_assignment.erb
1 parent aba1285 commit cbd048e

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

app/views/registers/curation_genomics/_inconsistent_16s_assignment.erb

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,26 @@
2424
</td>
2525
<td>
2626
<% if genome %>
27-
<% rdp_cl = genome
28-
.miga_object&.result(:ssu)&.file_path(:classification) %>
29-
<%= rdp_cl %>
27+
<% rdp_file = genome
28+
.miga_object&.result(:ssu)
29+
&.file_path(:classification) %>
30+
<% if rdp_file %>
31+
<% Zlib::GzipReader.open(rdp_file) |fh| %>
32+
<% fh.each do |ln| %>
33+
<% next if ln =~ /^#/ %>
34+
<% row = ln.split("\t") %>
35+
<b><%= row.shift %></b>
36+
<ul>
37+
<% while tax = row.shift(3) %>
38+
<li>
39+
<%= tax[0] %>
40+
<span class="text-muted">(<%= tax[2] %>)</span>
41+
</li>
42+
<% end %>
43+
</ul>
44+
<% end %>
45+
<% end %>
46+
<% end %>
3047
<% end %>
3148
</td>
3249
</tr>

0 commit comments

Comments
 (0)