Skip to content

Commit 2f6c414

Browse files
Merge branch 'main' of github.com:soedinglab/phylo_grad
2 parents 58310d4 + 6e40788 commit 2f6c414

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

benchmark_test/Snakefile

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
localrules: random_phylo, unroot, random_fasta, sim_phy, phy_to_fasta, collect_iqtree_benchmark
1+
localrules: random_phylo, random_fasta, sim_phy, phy_to_fasta, collect_iqtree_benchmark
22

33
rule random_phylo:
4-
output: "data/random/root_tree_{num_leafs}.nwk"
5-
shell: "phylotree generate -t {wildcards.num_leafs} -b > {output}"
6-
7-
rule unroot:
8-
input: "data/random/root_tree_{num_leafs}.nwk"
9-
output: "data/random/tree_{num_leafs}.nwk"
10-
shell: "nw_reroot -d {input} > {output}"
4+
output: ensure("data/random/tree_{num_leafs}.nwk", non_empty=True)
5+
retries: 5
6+
shell: "nw_reroot -d <(phylotree generate -t {wildcards.num_leafs} -b) > {output}"
117

128
rule random_fasta:
139
input: "data/random/tree_{num_leafs}.nwk"
@@ -60,4 +56,4 @@ rule collect_iqtree_benchmark:
6056
input: iqtree = expand("data/sim/alignment_{num_leafs}_{L}.fasta.iqtree.time", num_leafs=[2**n for n in [4,6,8,10,12]], L=[100,500]),
6157
phylograd = expand("data/sim/alignment_{num_leafs}_{L}.fasta.phylograd.time", num_leafs=[2**n for n in [4,6,8,10,12]], L=[100,500])
6258
output: "data/iqtree_benchmark.txt"
63-
shell: "tail -n +1 {input.iqtree} {input.phylograd} > {output}"
59+
shell: "tail -n +1 {input.iqtree} {input.phylograd} > {output}"

0 commit comments

Comments
 (0)