diff options
author | Christoph Helma <helma@in-silico.ch> | 2015-08-10 13:26:06 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2015-08-10 13:26:06 +0200 |
commit | b7cd3ebbb858a8891c35c45896f1bdd525f3534e (patch) | |
tree | a9df6b1f4fc15f2f953e9a23c6dd00b74a967754 /lib/feature.rb | |
parent | 23ecfc6fa5ae4913e5cd17b7d58432d1f88d780c (diff) |
algorithm libraries added, fminer tests pass
Diffstat (limited to 'lib/feature.rb')
-rw-r--r-- | lib/feature.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/feature.rb b/lib/feature.rb index 9deb199..b2bc1f5 100644 --- a/lib/feature.rb +++ b/lib/feature.rb @@ -29,6 +29,9 @@ module OpenTox # Feature for SMARTS fragments class Smarts < NominalFeature field :smarts, type: String + def self.from_smarts smarts + self.find_or_create_by :smarts => smarts + end end # Feature for supervised fragments from Fminer algorithm |