summaryrefslogtreecommitdiff
path: root/views/prediction.haml
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2013-03-12 14:42:44 +0100
committergebele <gebele@in-silico.ch>2013-03-12 14:42:44 +0100
commitb13b6fb05143947c46159699b0f12f55317889bd (patch)
tree0e1ac3d7ed43714e248669f6e95ecc3a6a2515cc /views/prediction.haml
parent8b6a4d59fb0543c555f55cf4e7234c12e8bf5bff (diff)
removed smiles in first view
Diffstat (limited to 'views/prediction.haml')
-rw-r--r--views/prediction.haml24
1 files changed, 7 insertions, 17 deletions
diff --git a/views/prediction.haml b/views/prediction.haml
index c75b132..81dd25a 100644
--- a/views/prediction.haml
+++ b/views/prediction.haml
@@ -12,8 +12,8 @@
%script{:src=>"/javascripts/jquery.tablesorter.min.js"}
- .results
- %h2= "Selected Entpoints: "
+ .results
+
#tabs
%ul
- count_m = 0
@@ -36,8 +36,6 @@
%th
= "Compound"
%th
- = "SMILES"
- %th
= "Result"
%th
= "Confidence"
@@ -46,14 +44,9 @@
%td
%img{:src=>"#{compound.uri}/image", :alt=>compound.uri, :width=>"100px"}
%td
- %p= compound.smiles
- -#%td
- -#%h2= "Prediction Uri: "
- -#%p= p.uri
- %td
%p= p.data_entries[0][1]
%td
- %p= p.data_entries[0][2]
+ %p= p.data_entries[0][2].round(3)
/ prepare dataset for neighbours table
- p.data_entries.shift
@@ -67,9 +60,9 @@
debug: true,
widgets: ['zebra'],
// disable first column
- headers: {
- 0: {sorter: false}
- },
+ headers: {0: {sorter: false}},
+ // presort similarity asc
+ sortList: [[2,0]]
});
});
/ TODO catch table error if tbody is empty
@@ -82,8 +75,6 @@
%th
= "Compound"
%th
- = "Smiles"
- %th
= "Measured Activity"
%th
= "Similarity"
@@ -93,7 +84,6 @@
%tr
%td
%img{:src=>"#{neighbour_compound.uri}/image", :alt=>neighbour_compound.uri, :width=>"100px"}
- %td= neighbour_compound.smiles
%td= p.data_entries[count][0]
- %td= p.data_entries[count][3]
+ %td= p.data_entries[count][3].round(3)
- count += 1