summaryrefslogtreecommitdiff
path: root/lib/compound.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.de>2009-09-10 15:21:09 +0200
committerChristoph Helma <helma@in-silico.de>2009-09-10 15:21:09 +0200
commit59249a0febc2f90cd1643ddb7e3baa68e3f49065 (patch)
treeb9395e815c677e7af59f4a27c596521aee215354 /lib/compound.rb
parent285daeaafa3bdff027bc068be9a13232fca3e35d (diff)
initial wrapper for new webservices
Diffstat (limited to 'lib/compound.rb')
-rw-r--r--lib/compound.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compound.rb b/lib/compound.rb
index 4652770..67c8004 100644
--- a/lib/compound.rb
+++ b/lib/compound.rb
@@ -44,8 +44,8 @@ module OpenTox
end
# Match an array of smarts features, returns matching features
- def match(smarts_features)
- smarts_features.all_features.collect{ |smarts| smarts if self.match?(smarts.name) }.compact
+ def match(smarts_dataset)
+ smarts_dataset.all_features.collect{ |uri| uri if self.match?(Feature.new(:uri => uri).name) }.compact
end
def smiles2inchi(smiles)