From 425573f74f71a362b2a2cc810a14b82315e713f2 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Mon, 31 Mar 2014 13:55:25 -0400 Subject: This closes bug #19. adds variables into the scoring header for later reference --- src/score_mers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/score_mers.py b/src/score_mers.py index 13050e7..fc1e81c 100755 --- a/src/score_mers.py +++ b/src/score_mers.py @@ -190,8 +190,8 @@ def percentage(part, whole, precision=2): return str(percent) + "%" def write_header(fh): + fh.write("# variables used: max_select=" + str(max_select) + " max_check=" + str(max_check) + " max_mer_distance=" + str(max_mer_distance) + " max_consecutive_binding=" + str(max_consecutive_binding) + " primer_weight=" + str(primer_weight) + "\n") fh.write("nb_primers\tCombination\tScore\tFG_mean_dist\tFG_stdev_dist\tBG_ratio\n") - def write_result(fh, score_res): combination, score_val, fg_mean_dist, fg_stddev_dist, bg_ratio = score_res fh.write(str(len(combination)) + "\t") -- cgit v1.2.1