summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2012-05-21 15:10:08 +0200
committerAndreas Maunz <andreas@maunz.de>2012-05-21 15:10:08 +0200
commit768580ea96d1e6bc355d4874adf341783a2953d7 (patch)
tree33071fd8a66f95002faecb8a1698e25273198421
parent8bc699c0914b5a779ccfd2a00f30c7c107c6b78c (diff)
BBRC service: simplified effect calculation
-rw-r--r--fminer.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/fminer.rb b/fminer.rb
index 9942cfa..2248ae4 100644
--- a/fminer.rb
+++ b/fminer.rb
@@ -304,9 +304,9 @@ post '/fminer/bbrc/?' do
p_value = f[1]
if (!@@bbrc.GetRegression)
- id_arrs = f[2..-1].flatten # f[2..-1] is filled in *de*scending order,
- max = OpenTox::Algorithm.effect(f[2..-1], fminer.db_class_sizes) # db_class_size is filled in *a*scending order,
- effect = f[2..-1].size-max # thus need to turn around effect
+ id_arrs = f[2..-1].flatten
+ max = OpenTox::Algorithm.effect(f[2..-1].reverse, fminer.db_class_sizes) # f needs reversal for bbrc
+ effect = max+1
else #regression part
id_arrs = f[2]
# DV: effect calculation