aboutsummaryrefslogtreecommitdiff
path: root/src/score_mers.py
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2014-03-31 16:31:15 -0400
committerCalvin Morrison <mutantturkey@gmail.com>2014-03-31 16:31:15 -0400
commit38bb1f3a1303e2f73ff1c939bf63b5108182b440 (patch)
treeb16e222d943fa96d6e8e22964974d6a34a02730a /src/score_mers.py
parent48e071c3c4bdb8d9d9227ef05030b9af4395f437 (diff)
add UI for scorign func, update doc and varaibles
Diffstat (limited to 'src/score_mers.py')
-rwxr-xr-xsrc/score_mers.py3
1 files changed, 2 insertions, 1 deletions
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")