summaryrefslogtreecommitdiff
path: root/lib/model.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/model.rb')
-rw-r--r--lib/model.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/model.rb b/lib/model.rb
index b6cef46..0077cfe 100644
--- a/lib/model.rb
+++ b/lib/model.rb
@@ -104,6 +104,11 @@ module OpenTox
def self.find_all
RestClientWrapper.get(@@config[:services]["opentox-model"]).chomp.split("\n")
end
+
+ def self.predict(compound_uri,model_uri)
+ #RestClientWrapper.post(model_uri,{:compound_uri => compound_uri, :accept => 'application/x-yaml'})
+ `curl -X POST -d 'compound_uri=#{compound_uri}' -H 'Accept:application/x-yaml' #{model_uri}`
+ end
end
end
end