Skip to content

Commit dbea4b3

Browse files
committed
[MODIF] add support for vcf.gz
1 parent 6cfe504 commit dbea4b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/markAllelicStatus.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ def load_vcf(in_file, filter_qual=False, verbose=False, debug=False):
9393
if verbose:
9494
print("## Loading VCF file {} ...".format(in_file))
9595

96-
if ".gz" in in_file:
97-
vcf_handle = gzip.open(in_file, 'r')
96+
if in_file.endswith(".gz"):
97+
vcf_handle = gzip.open(in_file, 'rt')
9898
else:
9999
vcf_handle = open(in_file)
100100
header = []

0 commit comments

Comments
 (0)