Minor tweaks to deal with the older version of librdf on ubuntu 10.04
[htsworkflow.git] / htsworkflow / submission / condorfastq.py
index 5ae4b7a01f481f1b75e181c50d919010fb4b3d26..9f4f1368176fa1aa1bccec47b4c302831e56e30b 100644 (file)
@@ -250,7 +250,7 @@ WHERE {
         """Add link between target pathname and the 'lane' that produced it
         (note lane objects are now post demultiplexing.)
         """
-        target_uri = 'file://' + target
+        target_uri = 'file://' + target.encode('utf-8')
         target_node = RDF.Node(RDF.Uri(target_uri))
         source_stmt = RDF.Statement(target_node, dcNS['source'], seq.filenode)
         self.model.add_statement(source_stmt)