diff options
author | Christoph Helma <helma@in-silico.ch> | 2010-08-18 19:48:37 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2010-08-18 19:48:37 +0200 |
commit | 942c7fba011c5f7c3224fe16a4d7ac32b29e4146 (patch) | |
tree | d3e9132814747fa63a8c8dfc2eb6af632df0d1d5 /application.rb | |
parent | 2180bd0303d98ae003341264a44e785d45208873 (diff) |
display of empty predictions fixed
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/application.rb b/application.rb index f1c4232..3c7645d 100644 --- a/application.rb +++ b/application.rb @@ -207,7 +207,7 @@ post '/predict/?' do # post chemical name to model @predictions << {:title => model.name, :measured_activities => prediction} end else - @predictions << {:title => model.name, :prediction => "not available (no similar compounds in the training dataset)"} + @predictions << {:title => model.name, :prediction => "not available (not enough similar compounds in the training dataset)"} end end LOGGER.debug @predictions.inspect @@ -215,10 +215,9 @@ post '/predict/?' do # post chemical name to model haml :prediction end -post "/lazar/?" do +post "/lazar/?" do # get detailed prediction @page = 0 @page = params[:page].to_i if params[:page] - #@highlight = params[:highlight] @model_uri = params[:model_uri] @prediction = YAML.load(OpenTox::Model::Lazar.predict(params[:compound_uri],params[:model_uri])) @compound = OpenTox::Compound.new(:uri => params[:compound_uri]) |