Skip to content

Commit bd643ac

Browse files
committed
Update _inconsistent_16s_assignment.erb
1 parent a3665ce commit bd643ac

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

app/views/registers/curation_genomics/_inconsistent_16s_assignment.erb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<tr>
66
<th>Name, Type</th>
77
<th>Checks</th>
8+
<th>Reported Classification</th>
89
<th>RDP Classification</th>
910
</tr>
1011
</thead>
@@ -22,11 +23,11 @@
2223
) %>
2324
<% end %>
2425
</td>
26+
<td><% name.lineage.map(&:name).join(' > ') %></td>
2527
<td>
2628
<% if genome %>
27-
<% rdp_file = genome
28-
.miga_object&.result(:ssu)
29-
&.file_path(:classification) %>
29+
<% rdp_file =
30+
genome.miga_object&.result(:ssu)&.file_path(:classification) %>
3031
<% if rdp_file %>
3132
<% Zlib::GzipReader.open(rdp_file) do |fh| %>
3233
<% fh.each do |ln| %>
@@ -36,8 +37,8 @@
3637
<ul>
3738
<% while (tax = row.shift(3)).any? %>
3839
<li>
39-
<%= tax[0] %>
40-
<span class="text-muted">(<%= tax[2] %>)</span>
40+
<%= tax[1] %>
41+
<span class="text-muted">(<%= tax[0] %>)</span>
4142
</li>
4243
<% end %>
4344
</ul>

0 commit comments

Comments
 (0)