summaryrefslogtreecommitdiff
path: root/views/feature_table.haml
blob: 7c573318b77090b6f4231bd2a9b9d7b71589062f (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
28
29
30
31
32
33
34
35
36
%table
  - unless features[:activating].empty?
    %tr
      %th
        - if @value_map.empty?
          activating 
        - else
          predominatly in compounds with activity
          = "\"#{@value_map[@value_map.keys.sort.last]}\""
        (
        %a{:href => "http://www.daylight.com/dayhtml/doc/theory/theory.smarts.html", :rel => "external"} SMARTS
        )
      %th p value
    - if features[:activating]
      - features[:activating].sort{|a,b| b[:p_value] <=> a[:p_value] }.each do |f|
        %tr
          %td= f[:smarts]
          %td= f[:p_value]
  - unless features[:deactivating].empty?
    %tr
      %th
        - if @value_map.empty?
          deactivating
        - else
          predominatly in compounds with activity
          = "\"#{@value_map[@value_map.keys.sort.first]}\""
        (
        %a{:href => "http://www.daylight.com/dayhtml/doc/theory/theory.smarts.html", :rel => "external"} SMARTS
        )
      %th p value
    - if features[:deactivating]
      - features[:deactivating].sort{|a,b| b[:p_value] <=> a[:p_value] }.each do |f|
        %tr
          %td= f[:smarts]
          %td= f[:p_value]