Sha256: 931543349e635539631eca28cf688b563c1b483d6bbe2c7cc28794db7a3d60b7
Contents?: true
Size: 1.64 KB
Versions: 1
Compression:
Stored size: 1.64 KB
Contents
<div style="width: 90%; background-color:#ecf0f1; margin: 0 auto;"> <h1 style="text-align: center; background-color:#d6eaf8">Profile <%= @hash_vars[:profile_id] %></h1> <h1 style="text-align: center; background-color:#d6eaf8">Evidence similar to profile</h1> <% @hash_vars[:similarity_matrixs].each do |pair, similarity_matrix| %> <% matrix_name = pair + '_sim_matrix' if pair.include?('gene_HP') dict = @hash_vars[:evidences][pair][:id2lab] header = similarity_matrix.first header.map! do |item| label = dict[item.to_s] label.nil? ? item : label end @hash_vars[:candidates].map! do |id, score| label = dict[id] [label.nil? ? id : label, score] end @hash_vars[:genomic_coordinates].transform_keys! do |k, v| label = dict[k] label.nil? ? k : label end end @hash_vars[matrix_name] = similarity_matrix %> <%=heatmap(id: matrix_name, header: true, row_names: true, title: pair )%> <% end %> <%=circular_genome(id: :candidates, header: false, row_names: true, transpose: false, genomic_coordinates: @hash_vars[:genomic_coordinates] )%> <% if !@hash_vars[:var_ids].nil? if @hash_vars[:var_ids].length > 200 %> <p> Too much variant records</p> <% else %> <%=circular_genome(id: :var_ids, header: false, row_names: true, transpose: false, genomic_coordinates: @hash_vars[:var_coordinates] )%> <% end %> <% end %> <h1 style="text-align: center; background-color:#d6eaf8">Candidate regions</h1> <%= table(id: :hotspot_table) do |data| data.each do |row| row[1] = row[1].join(" ") row[2] = row[2].join(",") row[3] = row[3].join(",") end end %> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pets-0.2.5 | templates/evidence_profile.erb |