Sha256: ce7f9616562455ac64db4c3b201152c6c3d223ba17761819a32feb20a9ba2a1a

Contents?: true

Size: 1.28 KB

Versions: 2

Compression:

Stored size: 1.28 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 == '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? %>
		<%=circular_genome(id: :var_ids, header: false, row_names: true, transpose: false, 
		 genomic_coordinates: @hash_vars[:var_coordinates] )%>
	<% end %>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pets-0.2.4 templates/evidence_profile.erb
pets-0.2.3 templates/evidence_profile.erb