diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-05-23 15:05:27 +0000 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-05-23 15:05:27 +0000 |
commit | be2c619e78dc87b3f13c2a456f156e1a01133b3c (patch) | |
tree | 1d305938ba55455d74356bdd44025ddabd0c2d56 /application.rb | |
parent | 243a1a6975543f12a6ea84eab5c4dda6c3d22d4a (diff) |
opentox-ruby version fixed
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/application.rb b/application.rb index 98d7fea..67a46d1 100644 --- a/application.rb +++ b/application.rb @@ -1,7 +1,7 @@ ['rubygems', "haml", "sass", "rack-flash"].each do |lib| require lib end -gem "opentox-ruby", "~> 1" +gem "opentox-ruby", "~> 2" require 'opentox-ruby' gem 'sinatra-static-assets' require 'sinatra/static_assets' @@ -370,8 +370,8 @@ post '/predict/?' do # post chemical name to model @predictions << { :title => model.name, :model_uri => model.uri, - :prediction => prediction.metadata[OT.prediction], - :confidence => prediction.metadata[OT.confidence] + :prediction => prediction_dataset.value(@compound), + :confidence => prediction_dataset.confidence(@compound) } end end |