summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-07-21 14:10:59 +0200
committerAndreas Maunz <andreas@maunz.de>2011-07-21 14:10:59 +0200
commitd6d02b31f3785d39f0c01053d632eee217c9dcee (patch)
treefc6d708f5b9c0020bd82650db6541c8f58812cff
parent0885bc30c65fa594e63d2b465fa9d96a4a3b7114 (diff)
Conversion to SDF
-rw-r--r--lib/dataset.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/dataset.rb b/lib/dataset.rb
index f13c0d3..3573633 100644
--- a/lib/dataset.rb
+++ b/lib/dataset.rb
@@ -230,6 +230,14 @@ module OpenTox
s.to_rdfxml
end
+ # Get SDF representation of compounds
+ # @return [String] SDF representation
+ def to_sdf
+ @compounds.inject { |sum, c|
+ sum + c.to_sdf
+ }
+ end
+
# Get name (DC.title) of a feature
# @param [String] feature Feature URI
# @return [String] Feture title