Skip to content

Commit

Permalink
fix return in get_het_hom_counts
Browse files Browse the repository at this point in the history
  • Loading branch information
jethror1 committed Sep 20, 2024
1 parent b9e2775 commit 2359b08
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/vcf_qc.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@ def get_het_hom_counts(vcf) -> dict:
f"\tAAF: {non_ref_aaf}"
)

counts = {k: sorted(v) for k, v in counts.items()}

return counts
return {k: sorted(v) for k, v in counts.items()}


def calculate_ratios(counts) -> dict:
Expand Down Expand Up @@ -217,7 +215,6 @@ def write_output_file(outfile, ratios) -> None:
dict of field and calculated values to write
"""
with open(outfile, 'w') as fh:
print(ratios)
header = '\t'.join(ratios.keys())
values = '\t'.join([str(x) for x in ratios.values()])

Expand Down

0 comments on commit 2359b08

Please sign in to comment.