File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ custom_rules:
2
2
- build-configs/ci/copy_example_data.smk
3
3
4
4
reference : " defaults/reference.fasta"
5
+ ancestral_root_seq : " defaults/reference.fasta"
5
6
genome_annotation : " defaults/genome_annotation.gff3"
6
7
genbank_reference : " defaults/reference.gb"
7
8
include : " defaults/hmpxv1/include.txt"
Original file line number Diff line number Diff line change @@ -31,13 +31,19 @@ rule ancestral:
31
31
node_data = build_dir + "/{build_name}/nt_muts.json" ,
32
32
params :
33
33
inference = "joint" ,
34
+ root_sequence = lambda w : (
35
+ f"--root-sequence { config ['ancestral_root_seq' ]!r} "
36
+ if config .get ("ancestral_root_seq" )
37
+ else ""
38
+ ),
34
39
shell :
35
40
"""
36
41
augur ancestral \
37
42
--tree {input.tree} \
38
43
--alignment {input.alignment} \
39
44
--output-node-data {output.node_data} \
40
- --inference {params.inference}
45
+ --inference {params.inference} \
46
+ {params.root_sequence}
41
47
"""
42
48
43
49
You can’t perform that action at this time.
0 commit comments