diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/algorithm.rb | 5 |
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 |