Skip to content

Commit

Permalink
Merge pull request #33 from aunderwo/master
Browse files Browse the repository at this point in the history
correct max vcf size finding
  • Loading branch information
antunderwood authored Jun 13, 2017
2 parents bcbba63 + 016d4dd commit 0ea5bc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/vcf2fasta.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ def get_mixture(record, threshold):
return mixture

def guess_total_records(vcfs):
largest_vcf = [vcf for vcf in vcfs if os.path.getsize(vcf) == max([os.path.getsize(vcf) for vcf in vcfs])][0]
max_size = max([os.path.getsize(vcf) for vcf in vcfs])
largest_vcf = [vcf for vcf in vcfs if os.path.getsize(vcf) == max_size][0]
total_records = 0
with open(largest_vcf) as fp:
for _ in fp:
Expand Down

0 comments on commit 0ea5bc1

Please sign in to comment.