summaryrefslogtreecommitdiff
path: root/lib/algorithm.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/algorithm.rb')
-rw-r--r--lib/algorithm.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/algorithm.rb b/lib/algorithm.rb
index 036d345..582a1d1 100644
--- a/lib/algorithm.rb
+++ b/lib/algorithm.rb
@@ -42,6 +42,11 @@ module OpenTox
end
end
+ # returns a hash, keys: physchem descriptors, values: their description
+ def self.physchem_descriptors
+ Hash[ RestClientWrapper.get(File.join(service_uri, "descriptor", "physchem", "list")).to_s.split("\n").collect{|l| l.split("\t")} ]
+ end
+
end
class Fminer