Commit d24fc710 authored by Sander Bollen's avatar Sander Bollen

always end param dir with a slash.

parent 0f4f8bd0
......@@ -78,13 +78,21 @@ def create_primer3_config(settings_dict: dict,
with template_path.open("r") as thandle:
template = Template(thandle.read(), trim_blocks=True)
# primer3 wants paths to end in slashes
if thermodynamic_params is not None:
therm_params = str(thermodynamic_params)
if not therm_params.endswith("/"):
therm_params += "/"
else:
therm_params = None
return template.render(
{
"seq": sequence_template,
"target": sequence_target,
"excluded_region": excluded_region,
"settings": settings_dict,
"thermodynamic_params": thermodynamic_params
"thermodynamic_params": therm_params
}
)
......
......@@ -35,5 +35,5 @@ PRIMER_MAX_TM=62
PRIMER_PAIR_MAX_DIFF_TM=100
PRIMER_MAX_HAIRPIN_TH=47
PRIMER_NUM_RETURN=200
PRIMER_THERMODYNAMIC_PARAMETERS_PATH=/some/path/to/params
PRIMER_THERMODYNAMIC_PARAMETERS_PATH=/some/path/to/params/
=
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment