Skip to content
Snippets Groups Projects
Commit 257600ce authored by van den Berg's avatar van den Berg
Browse files

Write to stats file instead of using print

parent 3c789431
No related branches found
No related tags found
2 merge requests!6Merge testing into master,!5Merge new testing code into devel
......@@ -52,7 +52,7 @@ def evaluate_cli(call_vcf, positive_vcf, call_samples, positive_samples,
print(json.dumps(st))
else:
with click.open_file(stats, 'w') as fout:
print(json.dumps(st), file=fout)
fout.write(json.dumps(st))
# If there were discordand records, and a discordant-vcf should be written
if len(disc) > 0 and discordant_vcf:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment