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 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 >
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 >
You can’t perform that action at this time.
0 commit comments