Skip to content

Commit 492bdf2

Browse files
author
Richard de Borja
committed
added function to retrieve the primer_prefix from the config file, if no parameter found use a default
1 parent 02cfaee commit 492bdf2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

workflow/rules/defaults.smk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ def get_primer_offset(wildcards):
4242
def get_primer_bed_type_opt(wildcards):
4343
return config.get("bed_type", "unique_amplicons")
4444

45+
# get the primer name prefix from the config.yaml file
46+
def get_primer_prefix(wildcards):
47+
return config.get("primer_prefix", "nCoV-2019")
48+
4549
def get_snp_tree_flag(wildcards=None):
4650
return config.get("build_snp_tree", True)
4751

0 commit comments

Comments
 (0)