Skip to content

Commit

Permalink
rearrange snakefiles
Browse files Browse the repository at this point in the history
Make variables and functions defined in the snakefile available to
custom rule files such as cattle-flu.smk. See
<#100 (comment)>
for more context.
  • Loading branch information
jameshadfield committed Oct 31, 2024
1 parent a84e1cd commit 6675e56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ wildcard_constraints:
# defined before extra rules `include`d as they reference this constant
SEGMENTS = ["pb2", "pb1", "pa", "ha","np", "na", "mp", "ns"]


for rule_file in config.get('custom_rules', []):
include: rule_file

# The config option `same_strains_per_segment=True'` (e.g. supplied to snakemake via --config command line argument)
# will change the behaviour of the workflow to use the same strains for each segment. This is achieved via these steps:
# (1) Filter the HA segment as normal plus filter to those strains with 8 segments
Expand Down Expand Up @@ -629,3 +625,7 @@ rule clean:
"auspice"
shell:
"rm -rfv {params}"


for rule_file in config.get('custom_rules', []):
include: rule_file

0 comments on commit 6675e56

Please sign in to comment.