Bugfix: using normal '"' to quote SMARTS
authorAndreas Maunz <andreas@maunz.de>
Wed, 15 Aug 2012 11:58:21 +0000 (13:58 +0200)
committerAndreas Maunz <andreas@maunz.de>
Wed, 15 Aug 2012 11:58:21 +0000 (13:58 +0200)
lib/serializer.rb

index 03ca285..5ab2c68 100644 (file)
@@ -465,7 +465,7 @@ module OpenTox
         # prepare for subgraphs
         have_substructures = features.collect{ |id| dataset.features[id][RDF.type].include? OT.Substructure}.compact.uniq
         if have_substructures.size == 1 && have_substructures[0] 
-          features_smarts = features.collect{ |id| "'" + dataset.features[id][OT.smarts] + "'" }
+          features_smarts = features.collect{ |id| "\"" + dataset.features[id][OT.smarts] + "\"" }
         end
       
         # gather missing features