From 257600ce388e0fcb1b695222d4b310a41114dc72 Mon Sep 17 00:00:00 2001 From: Redmar van den Berg <RedmarvandenBerg@lumc.nl> Date: Mon, 25 Nov 2019 15:37:39 +0100 Subject: [PATCH] Write to stats file instead of using print --- vtools/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vtools/cli.py b/vtools/cli.py index f0079b2..37ea32f 100644 --- a/vtools/cli.py +++ b/vtools/cli.py @@ -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: -- GitLab