diff options
author | Christoph Helma <helma@in-silico.ch> | 2012-10-29 13:19:20 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2012-10-29 13:19:20 +0100 |
commit | 9661a67983ffc93ee02bc12b20b9afb38e199d79 (patch) | |
tree | f9b91ec0d8ad0425ecd74c9ff9b833857959e2bf /views | |
parent | dbf513ce686f1c0db1ed2d6af1fa96c86352e709 (diff) |
pubchem pathway prediction implemented
Diffstat (limited to 'views')
-rw-r--r-- | views/index.haml | 54 |
1 files changed, 17 insertions, 37 deletions
diff --git a/views/index.haml b/views/index.haml index c8481c3..b75a9ab 100644 --- a/views/index.haml +++ b/views/index.haml @@ -1,47 +1,27 @@ !!! 5 -= @compound.neighbors.size -%table +%script{:type => "text/javascript", :src => "sorttable.js"} +%table{:class => "sortable"} %tr + %th + = @neighbors.query.to_name + %br + %img{:src => @neighbors.query.to_image_uri} %th Structure %th Properties %th Targets %th Assays - - @compound.neighbors.each do |neighbor| - %tr + - @neighbors.neighbors.each do |neighbor| + - sim = neighbor.structure_similarity @neighbors.query + %tr{:sorttable_customkey => sim} %td - = neighbor.name - %img{:src => neighbor.image} - %dl - %dt Similarity - %dd - = neighbor.tanimoto + = neighbor.to_name + %br + %img{:src => neighbor.to_image_uri} %td - %dl - - neighbor.properties.each do |p,v| - %dt - = p - %dd - = v + = sim %td - %dl - %dt Similarity - %dd - = neighbor.target_similarity @compound.neighbors.first - %dt Targets - %dd - = neighbor.targets.uniq - %dt Total - %dd - = neighbor.targets.size + neighbor.non_targets.size + = neighbor.property_similarity @neighbors.query %td - %dl - %dt Similarity - %dd - = neighbor.assay_similarity @compound.neighbors.first - %dt Active - %dd - = neighbor.active_assays.collect{|a| a["Assay Name"]} - %dt Total - %dd - = neighbor.active_assays.size + neighbor.inactive_assays.size - =# neighbor.inactive_assays.collect{|a| a["Assay Name"]} + = neighbor.target_similarity @neighbors.query + %td + = neighbor.assay_similarity @neighbors.query |