From 9094fe09345263331e67dc35cdde819700e315e9 Mon Sep 17 00:00:00 2001 From: mguetlein Date: Thu, 30 Oct 2014 14:04:21 +0100 Subject: add method to fetch descriptor values --- lib/algorithm.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/algorithm.rb b/lib/algorithm.rb index 582a1d1..bd4e54a 100644 --- a/lib/algorithm.rb +++ b/lib/algorithm.rb @@ -47,6 +47,11 @@ module OpenTox Hash[ RestClientWrapper.get(File.join(service_uri, "descriptor", "physchem", "list")).to_s.split("\n").collect{|l| l.split("\t")} ] end + # returns array of "descriptor-values", as CDK descriptors calculate serveral values, e.g., ALOGP produces ALOGP.ALogP, ALOGP.ALogp2, ALOGP.AMR + def self.physchem_descriptor_values + RestClientWrapper.get(File.join(service_uri, "descriptor", "physchem", "list_values")).to_s.split("\n") + end + end class Fminer -- cgit v1.2.3