diff options
author | gebele <gebele@in-silico.ch> | 2013-09-27 16:55:28 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-09-27 16:55:28 +0200 |
commit | e015957c317d311d0a579e68f8ff2f327a011fa3 (patch) | |
tree | c4b4576c92829c06c838e4540a22d5af2c2d0d4f /views/significant_fragments.haml | |
parent | da701f22287f855b499145c181106f3736392d47 (diff) |
use value map for sf
Diffstat (limited to 'views/significant_fragments.haml')
-rw-r--r-- | views/significant_fragments.haml | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/views/significant_fragments.haml b/views/significant_fragments.haml index 5bb4c31..7301f53 100644 --- a/views/significant_fragments.haml +++ b/views/significant_fragments.haml @@ -12,17 +12,22 @@ - if !@significant_fragments.empty? %table{:id => "sf1"} %tr + / @value_map => hash; interpret the effect %th{:style=>"border:2px solid #E6E6E6;"} - Predominantly in compounds with activity "non-active" + Predominantly in compounds with activity "inactive" %th{:style=>"border:2px solid #E6E6E6;"} p value - @significant_fragments.each do |fragments| - / fragments == [1||2, smarts, pValue] - - if fragments[0] == 1 + / fragments == [effect, smarts, pValue] + / fragments[0] = effect + /- $logger.debug "effect:\t#{fragments[0]}\n" + - if fragments[0] == @value_map.index("inactive") %tr %td + / fragments[1] = smarts = fragments[1] %td + /fragments[2] = pValue = fragments[2] %tr %td @@ -33,8 +38,8 @@ %th{:style=>"border:2px solid #E6E6E6;"} p value - @significant_fragments.each do |fragments| - / fragments == [1||2, smarts, pValue] - - if fragments[0] == 2 + / fragments == [effect, smarts, pValue] + - if fragments[0] == @value_map.index("active") %tr %td = fragments[1] |