From 139729be0e0aea4e3a53adf2ff4a2c4e1eecc96b Mon Sep 17 00:00:00 2001 From: Dan Bolser <55913678+CholoTook@users.noreply.github.com> Date: Mon, 7 Mar 2022 12:54:46 +0000 Subject: [PATCH] Update README.rst Fixing teh example (this form doesn't work with vcf.gz0 --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 67b5d1b0..dce35fa1 100644 --- a/README.rst +++ b/README.rst @@ -14,7 +14,7 @@ There main interface is the class: ``Reader``. It takes a file-like object and acts as a reader:: >>> import vcf - >>> vcf_reader = vcf.Reader(open('vcf/test/example-4.0.vcf', 'r')) + >>> vcf_reader = vcf.Reader(filename='vcf/test/example-4.0.vcf')) >>> for record in vcf_reader: ... print record Record(CHROM=20, POS=14370, REF=G, ALT=[A])