Skip to content

Commit e3127fa

Browse files
committed
Update _inconsistent_16s_assignment.erb
1 parent 1cf4386 commit e3127fa

1 file changed

Lines changed: 22 additions & 19 deletions

File tree

app/views/registers/curation_genomics/_inconsistent_16s_assignment.erb

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<th>Checks</th>
88
<th>Reported Classification</th>
99
<th>RDP Classification</th>
10+
<th>MiGA Classification</th>
1011
</tr>
1112
</thead>
1213
<tbody>
@@ -25,29 +26,31 @@
2526
</td>
2627
<td><%= name.lineage.map(&:name).join(' > ') %></td>
2728
<td>
28-
<% if genome %>
29-
<% rdp_file =
30-
genome.miga_object&.result(:ssu)&.file_path(:classification) %>
31-
<% if rdp_file %>
32-
<% Zlib::GzipReader.open(rdp_file) do |fh| %>
33-
<% fh.each do |ln| %>
34-
<% next if ln =~ /^#/ %>
35-
<% row = ln.split("\t") %>
36-
<b><%= row.shift %></b>
37-
<ul>
38-
<% row.shift %>
39-
<% while (tax = row.shift(3)).any? %>
40-
<li>
41-
<%= tax[0] %>
42-
<span class="text-muted">(<%= tax[2] %>)</span>
43-
</li>
44-
<% end %>
45-
</ul>
46-
<% end %>
29+
<% rdp_file =
30+
genome&.miga_object&.result(:ssu)&.file_path(:classification) %>
31+
<% if rdp_file %>
32+
<% Zlib::GzipReader.open(rdp_file) do |fh| %>
33+
<% fh.each do |ln| %>
34+
<% next if ln =~ /^#/ %>
35+
<% row = ln.chomp.split("\t") %>
36+
<b><%= row.shift %></b>
37+
<ul>
38+
<% row.shift %>
39+
<% while (tax = row.shift(3)).any? %>
40+
<li>
41+
<%= tax[0] %>
42+
<span class="text-muted">(<%= tax[2] %>)</span>
43+
</li>
44+
<% end %>
45+
</ul>
4746
<% end %>
4847
<% end %>
4948
<% end %>
5049
</td>
50+
<td>
51+
<% miga_classif = genome&.miga_object&.metadata&.[](:tax) %>
52+
<%= miga_classif %>
53+
</td>
5154
</tr>
5255
<% end %>
5356
</tbody>

0 commit comments

Comments
 (0)