blob: b75a9abb99b72fcc255d14f3f39ff7648c785092 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
!!! 5
%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
- @neighbors.neighbors.each do |neighbor|
- sim = neighbor.structure_similarity @neighbors.query
%tr{:sorttable_customkey => sim}
%td
= neighbor.to_name
%br
%img{:src => neighbor.to_image_uri}
%td
= sim
%td
= neighbor.property_similarity @neighbors.query
%td
= neighbor.target_similarity @neighbors.query
%td
= neighbor.assay_similarity @neighbors.query
|