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