From 9ae32670d31d87b7e695b218b3fdbe4d94ac9a23 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Tue, 1 Apr 2014 18:48:40 -0700 Subject: [PATCH] use autoopen to access fastq files --- htsworkflow/pipelines/fastq.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.30.2