diff options
author | Christoph Helma <helma@in-silico.ch> | 2012-08-20 14:32:27 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2012-08-20 14:32:27 +0200 |
commit | f5fc5bb258f51cfce6a4d771afdca14883475215 (patch) | |
tree | 2110d9a29a33693c9b0d959b32436f401a9aaef3 | |
parent | 68ad87ea2ace7cebc834a053d57a5b68c64d5ee2 (diff) |
new compound serialisation methods
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | application.rb | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1 +1 @@ -1.0.0 +5.0.0pre1 diff --git a/application.rb b/application.rb index 494f050..edd7320 100644 --- a/application.rb +++ b/application.rb @@ -287,7 +287,7 @@ module OpenTox } ORDER BY ?i" values = FourStore.query(sparql,accept).split("\n") # Fill up trailing empty cells - table << [compound.to_smiles] + values.fill("",values.size,features.size-values.size) + table << [compound.smiles] + values.fill("",values.size,features.size-values.size) end else sparql = "SELECT DISTINCT ?s FROM <#{@uri}> WHERE {?s <#{RDF.type}> <#{RDF::OT.Feature}>}" @@ -309,7 +309,7 @@ module OpenTox data_entries[i] << value end end - data_entries.each{|data_entry| table << [compound.to_smiles] + data_entry} + data_entries.each{|data_entry| table << [compound.smiles] + data_entry} end end table |