diff options
author | Andreas Maunz <andreas@maunz.de> | 2012-05-21 15:10:08 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2012-05-21 15:10:08 +0200 |
commit | 768580ea96d1e6bc355d4874adf341783a2953d7 (patch) | |
tree | 33071fd8a66f95002faecb8a1698e25273198421 | |
parent | 8bc699c0914b5a779ccfd2a00f30c7c107c6b78c (diff) |
BBRC service: simplified effect calculation
-rw-r--r-- | fminer.rb | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |