X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=blobdiff_plain;f=htsworkflow%2Fpipelines%2Ffastq.py;fp=htsworkflow%2Fpipelines%2Ffastq.py;h=47b2f8300d553d6ba944c1309ec5c233ad1f4951;hp=cf77005f3c391fdd47a8f967520425ed4c88ab63;hb=9ae32670d31d87b7e695b218b3fdbe4d94ac9a23;hpb=c4a11293939ee85eb38f77108195a337de38f494 diff --git a/htsworkflow/pipelines/fastq.py b/htsworkflow/pipelines/fastq.py index cf77005..47b2f83 100644 --- a/htsworkflow/pipelines/fastq.py +++ b/htsworkflow/pipelines/fastq.py @@ -40,5 +40,6 @@ def summarize_hiseq_fastq(stream): if __name__ == '__main__': import sys - with open(sys.argv[1], 'r') as instream: + from autoopen import autoopen + with autoopen(sys.argv[1], 'r') as instream: print summarize_hiseq_fastq(instream)