Skip to content
Snippets Groups Projects
Commit 4baf9311 authored by Manavalan Gajapathy's avatar Manavalan Gajapathy
Browse files

raises error if keyword left undefined

parent 7847d814
No related branches found
No related tags found
1 merge request!2QC under one umbrella (well mostly) under QuaC
......@@ -265,7 +265,6 @@ custom_data:
hidden: True
heterozygosity_ratio_val:
min: 1.6
max:
hidden: True
qc_checkup_verifybamid:
......
......@@ -265,7 +265,6 @@ custom_data:
hidden: True
heterozygosity_ratio_val:
min: {{ bcftools_stats_heterozygosity_ratio_min }}
max: {{ bcftools_stats_heterozygosity_ratio_max }}
hidden: True
qc_checkup_verifybamid:
......
......@@ -2,7 +2,7 @@
Creates multiqc config file based on jinja templating and values from qc-checkup config file.
"""
from jinja2 import Template
from jinja2 import Template, StrictUndefined
import yaml
......@@ -12,7 +12,7 @@ def main(template_f, qc_config, outfile):
config = yaml.safe_load(file_handle)
with open(template_f) as file_:
template = Template(file_.read())
template = Template(file_.read(), undefined=StrictUndefined)
data = template.render(
# fastq screen
......@@ -59,6 +59,7 @@ def main(template_f, qc_config, outfile):
bcftools_stats_heterozygosity_ratio_min=config["bcftools_stats"]["heterozygosity_ratio"][
"min"
],
undefined=StrictUndefined,
)
with open(outfile, "w") as fh:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment