From 38bb1f3a1303e2f73ff1c939bf63b5108182b440 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Mon, 31 Mar 2014 16:31:15 -0400 Subject: add UI for scorign func, update doc and varaibles --- src/score_mers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/score_mers.py') diff --git a/src/score_mers.py b/src/score_mers.py index 1cb4bbb..267d7ff 100755 --- a/src/score_mers.py +++ b/src/score_mers.py @@ -198,8 +198,9 @@ def percentage(part, whole, precision=2): 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("# scoring function:" + str(score_str) + "\n") + fh.write("# scoring function: " + str(score_str) + "\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.3