From b244a3993a4383b5d2c29b935258b5ee198b9194 Mon Sep 17 00:00:00 2001 From: Johnathan Kwan Long Wong Date: Tue, 29 Jan 2019 05:59:09 -0800 Subject: [PATCH] reverted template change --- prince/query_sample.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/prince/query_sample.py b/prince/query_sample.py index 68e3c7e..77d7209 100644 --- a/prince/query_sample.py +++ b/prince/query_sample.py @@ -24,10 +24,10 @@ def test_target(opts, template_obj, primers): # Write target predictions to text file with open(opts.target_output, "a+") as f: - #if os.path.getsize(opts.target_output) == 0: - f.write("Templates,") - f.write(",".join(template_obj["Names"])) - f.write("\n") + if os.path.getsize(opts.target_output) == 0: + f.write("Templates,") + f.write(",".join(template_obj["Names"])) + f.write("\n") f.write(targetFileName) for t, ms in enumerate(targetMatchScore): slope, intercept = equations[t]