aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2014-03-31 13:55:25 -0400
committerCalvin Morrison <mutantturkey@gmail.com>2014-03-31 13:55:25 -0400
commit425573f74f71a362b2a2cc810a14b82315e713f2 (patch)
treee8824dd424851804f575afc023375afc6d90a873 /src
parent5757c6cef5ea5187903c6af54b0b063ff7c4ec37 (diff)
This closes bug #19. adds variables into the scoring header for later reference
Diffstat (limited to 'src')
-rwxr-xr-xsrc/score_mers.py2
1 files changed, 1 insertions, 1 deletions
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")