diff options
author | gebele <gebele@in-silico.ch> | 2013-06-17 12:44:18 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-06-17 12:44:18 +0200 |
commit | 3bb0ba2c96572ff6b77a8a879fa1f3cd45ae000c (patch) | |
tree | f2c00ae58ad2792994af3687cee9aa686b3e10cc /application.rb | |
parent | 5bc627dc499fb592312951f26538199444bd562a (diff) |
added info icons; neighbors, color by class for text not background
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/application.rb b/application.rb index 0a8998d..5cc6763 100644 --- a/application.rb +++ b/application.rb @@ -24,14 +24,13 @@ get '/jme_help/?' do end # best way to get individual compound uri for details -get '/prediction/:neighbour/details/?' do - @compound_uri = OpenTox::Compound.new params[:neighbour] +get '/prediction/:neighbor/details/?' do + @compound_uri = OpenTox::Compound.new params[:neighbor] @smiles = @compound_uri.smiles task = OpenTox::Task.run("look for names.") do names = @compound_uri.names end task.wait - $logger.debug "names task uri: #{task.uri}" case task[RDF::OT.hasStatus] when "Error" @names = "There are no names for this compound available." @@ -71,13 +70,11 @@ post '/predict/?' do # gather models from service and compare if selected #TODO compare selected by uri params[:selection].each do |model| - $logger.debug "Model inspect in POST:\n#{model.inspect}" @mselected = model[0] @mall = OpenTox::Model.all $model[:uri] @mall.each do |m| @@prediction_models << m if m.title =~ /#{@mselected}/ end - $logger.debug "@prediction_models: #{@@prediction_models.inspect}" end # predict with selected models |