Skip to content

Commit

Permalink
Print rounded results
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Feb 25, 2024
1 parent 9889011 commit 3434bee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tests/beagle_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ def write_vcf(ref_ts, impdata, out_file, chr_name="1"):
format_str = ""
for j in range(impdata.num_individuals):
format_str += impdata.alleles[j] + "|" + impdata.alleles[j + 1] + ":"
format_str += gt_probs[j] + ":"
format_str += dosages[j]
format_str += round(gt_probs[j], 2) + ":"
format_str += round(dosages[j], 2)
format_str += "\t"
line_str += format_str + "\n"

0 comments on commit 3434bee

Please sign in to comment.