Skip to content

Commit

Permalink
added function to retrieve the primer_prefix from the config file, if…
Browse files Browse the repository at this point in the history
… no parameter found use a default
  • Loading branch information
Richard de Borja committed Jul 7, 2021
1 parent 02cfaee commit 492bdf2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions workflow/rules/defaults.smk
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ def get_primer_offset(wildcards):
def get_primer_bed_type_opt(wildcards):
return config.get("bed_type", "unique_amplicons")

# get the primer name prefix from the config.yaml file
def get_primer_prefix(wildcards):
return config.get("primer_prefix", "nCoV-2019")

def get_snp_tree_flag(wildcards=None):
return config.get("build_snp_tree", True)

Expand Down

0 comments on commit 492bdf2

Please sign in to comment.