aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2014-04-07 12:45:28 -0400
committerCalvin Morrison <mutantturkey@gmail.com>2014-04-07 12:45:28 -0400
commitad2831e63e47c2575d86319e5a90f746ba567f11 (patch)
treee2459b5f3b8bbbc0f0e9a44f3b8d8bcb7fde1e20
parentff00b06e740cd7b3dbccf48a06cf4a721e83660b (diff)
add genome length
-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 b3edb61..e245f39 100755
--- a/src/score_mers.py
+++ b/src/score_mers.py
@@ -220,7 +220,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("# 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) + " ")
+ fh.write("fg_genome_length=" + str(fg_genome_length) + " bg_genome_length=" + str(bg_genome_length) + "\n")
fh.write("# scoring function: " + str(score_str) + "\n")
fh.write("#nb_primers\tCombination\tScore\tFG_mean_dist\tFG_stdev_dist\tBG_ratio\n")