Skip to content

Commit 399bc5c

Browse files
committed
Add parameter to limit the maximum equally parsimonious placements
1 parent 7f35b1f commit 399bc5c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

workflow/Snakefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ rule phylogenetic_placement:
106106
tree_protobuf = "data/public.all.masked.pb.gz"
107107
params:
108108
reference_fasta = config["REFERENCE_FASTA"],
109-
reference_id = read_fasta_IDs(config["REFERENCE_FASTA"])[0]
109+
reference_id = read_fasta_IDs(config["REFERENCE_FASTA"])[0],
110+
max_equally_parsimonious_placements = 1000000
110111
output:
111112
tree = OUTPUT_DIR/"{dataset}/tree.nwk",
112113
clades = OUTPUT_DIR/"{dataset}/clades.txt",
@@ -118,7 +119,7 @@ rule phylogenetic_placement:
118119
"""
119120
cat {params.reference_fasta} {input.new_samples} > input.fasta
120121
faToVcf -maskSites='{input.masking_vcf}' -ref='{params.reference_id}' input.fasta input.vcf
121-
usher -T {threads} -i {input.tree_protobuf} -v input.vcf -D -u -d usher_results
122+
usher -T {threads} -i {input.tree_protobuf} -v input.vcf -D -u -e {params.max_equally_parsimonious_placements} -d usher_results
122123
mv usher_results/uncondensed-final-tree.nh {output.tree}
123124
mv usher_results/clades.txt {output.clades}
124125
mv usher_results {output.usher_dir}

0 commit comments

Comments
 (0)