% hpo = @hash_vars[:hpo] def get_hpo_link(hpo_code) link = '-' if hpo_code != '-' link = "#{hpo_code}" end return link end %>
Distribution of patients in clusters based on the average of phenotypes by profile.
<%= plot = File.join(@hash_vars[:temp_folder], "clusters_distribution_#{@hash_vars[:cluster_name]}.pdf") if File.exists?(plot) embed_pdf(plot, 'width="800" height="800"') else "File not specified.
" end %>#{patID}
" }.join("\n") element[3] = element[3].map{|profile| "#{profile.map{|hpo_code| get_hpo_link(hpo_code)}.join(', ')}
" }.join("\n") element[4] = element[4].map{|transl_profile| "#{transl_profile.join(', ')}
"}.join("\n") end data.unshift(["Cluster ID","Patients in Cluster","Patient IDs", "HPO codes", "Phenotypes"]) end %>