diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-07-27 17:02:18 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-07-27 17:02:18 +0200 |
commit | b9c4a076550433827f6c0719240332c9902318b2 (patch) | |
tree | d9a78db88c56438c6d5300aa80c64a07f8decd77 | |
parent | 792c43ea83d617db8b816db05c25f1d8e0d93339 (diff) |
Fixed statistics to use statsample
-rw-r--r-- | fminer.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -137,7 +137,7 @@ post '/fminer/bbrc/?' do fminer.add_fminer_data(@@bbrc, params, @value_map) g_array=fminer.all_activities.values # DV: calculation of global median for effect calculation - g_median=OpenTox::Algorithm.median(g_array) + g_median=g_array.to_scale.median raise "No compounds in dataset #{fminer.training_dataset.uri}" if fminer.compounds.size==0 task.progress 10 @@ -165,7 +165,7 @@ post '/fminer/bbrc/?' do id=id.keys[0] # extract id from hit count hash f_arr.push(fminer.all_activities[id]) end - f_median=OpenTox::Algorithm.median(f_arr) + f_median=f_arr.to_scale.median if g_median >= f_median effect = 'activating' else |