summaryrefslogtreecommitdiff
path: root/views/lazar_algorithm.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/lazar_algorithm.haml')
-rw-r--r--views/lazar_algorithm.haml32
1 files changed, 23 insertions, 9 deletions
diff --git a/views/lazar_algorithm.haml b/views/lazar_algorithm.haml
index 85823b5..76a993b 100644
--- a/views/lazar_algorithm.haml
+++ b/views/lazar_algorithm.haml
@@ -32,15 +32,29 @@
%p
= toggle_link "#significant_fragments", "Significant fragments"
are highlighted in the structure display as follows:
- %ul
- %li
- .active activating fragments
- %li
- .inactive deactivating fragments
- %li
- .inconclusive regions, where activating and deactivating fragments overlap
- %li
- .other inert parts
+ - if @value_map.empty?
+ %ul
+ %li
+ .active activating fragments
+ %li
+ .inactive deactivating fragments
+ %li
+ .inconclusive regions, where activating and deactivating fragments overlap
+ %li
+ .other inert parts
+ - else
+ %ul
+ %li
+ .active= "features that occur predominately in compounds with activity: \"#{@value_map[@value_map.keys.sort.last]}\""
+ %li
+ .inactive= "features that occur predominately in compounds with activity: \"#{@value_map[@value_map.keys.sort.first]}\""
+ %li
+ .inconclusive regions, where fragments from different classes overlap
+ %li
+ .other inert parts
+ - if @value_map.size > 2
+ .notice Incomplete implementation of feature highlighting and display of significant fragments. Only features for 2 classes are shown!
+
%p
Please keep in mind that predictions are based on the measured activities of neighbors.