diff options
author | Christoph Helma <helma@in-silico.ch> | 2012-07-28 15:22:53 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2012-07-28 15:22:53 +0200 |
commit | dbf513ce686f1c0db1ed2d6af1fa96c86352e709 (patch) | |
tree | 80cf2510ef279f0a6211ae129604a203e31470e1 /views |
initial commit
Diffstat (limited to 'views')
-rw-r--r-- | views/index.haml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/views/index.haml b/views/index.haml new file mode 100644 index 0000000..c8481c3 --- /dev/null +++ b/views/index.haml @@ -0,0 +1,47 @@ +!!! 5 += @compound.neighbors.size +%table + %tr + %th Structure + %th Properties + %th Targets + %th Assays + - @compound.neighbors.each do |neighbor| + %tr + %td + = neighbor.name + %img{:src => neighbor.image} + %dl + %dt Similarity + %dd + = neighbor.tanimoto + %td + %dl + - neighbor.properties.each do |p,v| + %dt + = p + %dd + = v + %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 + %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"]} |