diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-04-04 18:44:44 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-04-04 18:44:44 +0200 |
commit | 3430ce8d28846a405d403b2c4a03bcab5a11f9e6 (patch) | |
tree | 1ec12749584cdafee768264acaadb2de1e4c5ff7 /helper.rb | |
parent | 29516a370a458915050eca3dca586b3ec3b6f877 (diff) |
Selection of AMBIT datasets added
Diffstat (limited to 'helper.rb')
-rw-r--r-- | helper.rb | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -3,7 +3,7 @@ helpers do def login(username, password) logout session[:subjectid] = OpenTox::Authorization.authenticate(username, password) - LOGGER.debug "ToxCreate login user #{username} with subjectid: " + session[:subjectid].to_s + #LOGGER.debug "ToxCreate login user #{username} with subjectid: " + session[:subjectid].to_s if session[:subjectid] != nil session[:username] = username return true @@ -53,8 +53,7 @@ helpers do def sort(descriptors) features = {:activating => [], :deactivating => []} - - descriptors.each { |d| LOGGER.debug d.inspect; features[d[OT.effect].to_sym] << {:smarts => d[OT.smarts],:p_value => d[OT.pValue]} } + descriptors.each { |d| features[d[OT.effect].to_sym] << {:smarts => d[OT.smarts],:p_value => d[OT.pValue]} } features end |