Sha256: 73b9ef30a865aebf967c3c75c1f74a7791d971652dbcd8e4fda69862159c0f39
Contents?: true
Size: 1.28 KB
Versions: 1
Compression:
Stored size: 1.28 KB
Contents
%h1= entity = entity.transcript.gene.link .svg(style="width:100%") = entity.marked_svg %dl %dt MutationAssesor prediction %dd= entity.damage_scores([:mutation_assessor]) %dt SIFT prediction %dd= entity.damage_scores([:sift]) - pdbs = entity.pdbs - if pdbs and pdbs.any? #jmol %hr %select.pdb %option(selected="selected") Select a pdb - pdbs.each do |pdb, info| - pdb_chain = info[:chains].split("/").first - pdb_position = entity.position - info[:region].begin + 1 %option(attr-chain=pdb_chain attr-position=pdb_position attr-pdb=pdb)= "#{ pdb} (#{[pdb_position, pdb_chain] * "/"})" #jmol_image :javascript jmolSetXHTML('jmol_image') jmolApplet(500, "", "PIZARRA"); $('select.pdb').change(function(){ var option = $(this).find('option:selected'); var pdb = option.attr('attr-pdb'); if (pdb == "Select a pdb") return false var pdb_position = option.attr('attr-position'); var pdb_chain = option.attr('attr-chain'); jmolScript("load =" + pdb + "; wireframe off; restrict water; select protein; backbone off; color pink;cartoons on;color structure; select protein and *.CA and " + pdb_position + ":" + pdb_chain + "; spacefill; color blue;", "PIZARRA"); })
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rbbt-views-1.0.0 | share/views/entity/MutatedIsoform.haml |