Skip to content

Reached maximum recursion depth when building phylogenetic trees #282

@mengfeip

Description

@mengfeip

I currently include more than 8000 sequences for a Nextstrain build.

When constructing the phylogenetic tree with augur tree, it always alerts maximum recursion depth reached as a fatal error, even when setting augur_recursion_limit to 100,000,000.

What could be the maximum value we can set for recursion depth, and can it be set as infinite?

rule tree:
input: results/masked.fasta
output: results/tree_raw.nwk
reason: Missing output files: results/tree_raw.nwk; Input files updated by another job: results/masked.fasta

    export AUGUR_RECURSION_LIMIT=100000000
    augur tree             --alignment results/masked.fasta             --exclude-sites config/tree_mask.tsv             --tree-builder-args="-redo"             --output results/tree_raw.nwk             --nthreads 44

FATAL: Maximum recursion depth reached. You can set the env variable AUGUR_RECURSION_LIMIT to adjust this (current limit: 100000000)
5 masking sites read from config/tree_mask.tsv
Building a tree via:
iqtree2 -ntmax 44 -s results/Lineage-B-public/masked_masked-delim.fasta -m GTR -ninit 2 -n 2 -me 0.05 -nt AUTO -redo -redo > results/Lineage-B-public/masked_masked-delim.iqtree.log
Nguyen et al: IQ-TREE: A fast and effective stochastic algorithm for estimating maximum likelihood phylogenies.
Mol. Biol. Evol., 32:268-274. https://doi.org/10.1093/molbev/msu300
(one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!)

Removing output files of failed job tree since they might be corrupted:
results/Lineage-B-public/tree_raw.nwk
Shutting down, this might take some time.
Exiting because a job execution failed. Look above for error message

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions