Skip to content

Commit

Permalink
Update to v.2.3
Browse files Browse the repository at this point in the history
Fixed bug when opening gzipped files in python 3
  • Loading branch information
edgardomortiz committed Jun 5, 2020
1 parent f4dff85 commit 0e1f6ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vcf2phylip.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

__author__ = "Edgardo M. Ortiz"
__credits__ = "Juan D. Palacio-Mejía"
__version__ = "2.2"
__version__ = "2.3"
__email__ = "e.ortiz.v@gmail.com"
__date__ = "2019-01-15"

Expand Down Expand Up @@ -115,7 +115,7 @@ def main():
gt_idx = []
missing = ""

with opener(filename) as vcf:
with opener(filename, "rt") as vcf:

# Create a list to store sample names
sample_names = []
Expand Down Expand Up @@ -192,7 +192,7 @@ def main():
index_last_sample = len(sample_names)+9

# Start processing SNPs of VCF file
with opener(filename) as vcf:
with opener(filename, "rt") as vcf:

# Initialize line counter
snp_num = 0
Expand Down

0 comments on commit 0e1f6ef

Please sign in to comment.