Actually if I provide an output file, I want to write to the file
authorDiane Trout <diane@caltech.edu>
Thu, 8 Mar 2012 19:00:45 +0000 (11:00 -0800)
committerDiane Trout <diane@caltech.edu>
Thu, 8 Mar 2012 19:00:45 +0000 (11:00 -0800)
(forgot a not in the test for an output filename)

htsworkflow/pipelines/desplit_fastq.py

index 85ad586691473b1e993e126c1a329bd99f4689b3..0624aaa290a170a57593d85f07b0b642a1743e46 100644 (file)
@@ -28,7 +28,7 @@ def main(cmdline=None):
         print (version())
         return 0
 
-    if opts.output is None:
+    if opts.output is not None:
         output = open(opts.output, 'w')
     else:
         output = sys.stdout