We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aba1285 commit cbd048eCopy full SHA for cbd048e
1 file changed
app/views/registers/curation_genomics/_inconsistent_16s_assignment.erb
@@ -24,9 +24,26 @@
24
</td>
25
<td>
26
<% if genome %>
27
- <% rdp_cl = genome
28
- .miga_object&.result(:ssu)&.file_path(:classification) %>
29
- <%= rdp_cl %>
+ <% rdp_file = genome
+ .miga_object&.result(:ssu)
+ &.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
45
46
47
<% end %>
48
49
</tr>
0 commit comments