How ericbretz/treeforge works
Treeforge takes genomic or transcriptomic FASTA files and automates a phylogenomic workflow to produce and refine trees. The README documents sequence alignment, clustering, tree building, and refinement; the source index identifies the pipeline coordinator and additional stages for BUSCO, BLAST, gene clustering, pruning, and final processing. Sampled code confirms some orchestration and tree-refinement calls, but not the full stage order, so undocumented links are omitted or shown as unverified. The graph focuses on runtime components, not build or test machinery.
Main entry points: datahub.py Pipeline coordinator · mafft.py MAFFT alignment · tree.py Tree construction · fasta_io.py FASTA I/O
Components 25
Pipeline Control
- CLI entry
treeforge.py - Pipeline coordinator
core/datahub.py
Sequence Analysis
- BLAST search
core/stages/blast.py - BUSCO assessment
core/stages/busco.py - Gene clustering
core/stages/genecluster.py - Hierarchical clustering
core/stages/hcluster.py - MCL clustering
core/stages/mcl.py - MAFFT alignment
core/stages/mafft.py - PRANK refinement
core/stages/prank.py - Ortholog pruning
core/stages/prune.py - Final processing
core/stages/final.py
Tree Processing
- Tree construction
core/stages/tree.py - Tip trimming
core/treeutils/trimtips.py - Tip masking
core/treeutils/masktips.py - Branch cutting
core/treeutils/cutbranches.py - Newick parsing
core/treeutils/newick.py - Phylogeny model
core/treeutils/phylo.py
Shared Services
- Stage base
core/stages/base_stage.py - Sequence concatenation
core/utils/concat.py - Run summaries
core/utils/summary.py - Tree result parsers
core/utils/iqtree_parser.py - ASTRAL parser
core/utils/astral_parser.py - FASTA I/O
core/utils/fasta_io.py - Subprocess logging
core/utils/sublogger.py
Other components
- FASTA provider
Connections 33
- FASTA provider → CLI entry: provides FASTA
README.md - CLI entry → Pipeline coordinator: starts pipeline
treeforge.py - Pipeline coordinator → MAFFT alignment: runs alignment
core/datahub.py - Pipeline coordinator → BUSCO assessment: runs assessment
core/datahub.py - Pipeline coordinator → BLAST search: dispatches stage
core/datahub.py - Pipeline coordinator → Gene clustering: dispatches stage
core/datahub.py - Pipeline coordinator → Hierarchical clustering: runs clustering
core/datahub.py - Pipeline coordinator → MCL clustering: dispatches stage
core/datahub.py - Pipeline coordinator → PRANK refinement: dispatches stage
core/datahub.py - Pipeline coordinator → Ortholog pruning: dispatches stage
core/datahub.py - Pipeline coordinator → Tree construction: dispatches stage
core/datahub.py - Pipeline coordinator → Final processing: dispatches stage
core/datahub.py - BUSCO assessment → Hierarchical clustering: uses clustering
core/stages/busco.py - Tree construction → Tip trimming: runs trimming
core/stages/tree.py - Tree construction → Tip masking: runs masking
core/stages/tree.py - Tree construction → Branch cutting: cuts branches
core/stages/tree.py - Tip masking → Newick parsing: parses trees
core/treeutils/masktips.py - Tip masking → Phylogeny model: uses nodes
core/treeutils/masktips.py - Tip trimming → Newick parsing: parses trees
core/treeutils/trimtips.py - Ortholog pruning → Tip trimming: uses trimming
core/stages/prune.py - Newick parsing → Phylogeny model: creates nodes
core/treeutils/newick.py - Final processing → Sequence concatenation: concatenates sequences
core/stages/final.py - Final processing → FASTA I/O: uses FASTA I/O
- MAFFT alignment → FASTA I/O: uses FASTA I/O
- MCL clustering → FASTA I/O: uses FASTA I/O
core/stages/mcl.py - BLAST search → FASTA I/O: uses FASTA I/O
core/stages/blast.py - MAFFT alignment → Stage base: inherits stage
core/stages/base_stage.py - Pipeline coordinator → Run summaries: builds summaries
core/datahub.py - Run summaries → Tree result parsers: uses parser
core/utils/summary.py - Run summaries → ASTRAL parser: uses parser
core/utils/summary.py - MAFFT alignment → Subprocess logging: runs logged commands
core/stages/mafft.py - BUSCO assessment → Subprocess logging: runs logged commands
core/stages/busco.py - PRANK refinement → Subprocess logging: runs logged commands
core/stages/prank.py