A cross-platform phylogenetic tree visualization and analysis tool. The goal of this program is a way to quickly generate and modify phylogenetic trees without having to edit lots of FASTA files manually.
Version 1.0
By Alan Rockefeller - 4/21/2025
TreeCraft helps you create, visualize, and analyze phylogenetic trees from DNA sequence data. It combines powerful tree-building algorithms with an easy-to-use interface.
- Import sequences from FASTA/FASTQ files with automatic validation
- Fix common sequence formatting issues automatically
- Edit sequence names directly within the application
- Align sequences using integrated alignment tools
- Build trees using multiple methods:
- Quick methods: UPGMA, Neighbor Joining
- Advanced methods: Maximum Likelihood (RAxML)
- Assess tree reliability with bootstrap support
- Find the best evolutionary model for your data using ModelTest-NG or IQ-TREE
- Interactive tree display with drag-and-drop rearrangement
- Customize tree appearance (branch widths, colors, fonts)
- Highlight important branches or taxonomic groups
- View aligned sequences alongside the tree
- Easily remove branches from the tree
- Toggle between dark and light mode
- Save trees in standard formats (Newick, Nexus, PhyloXML)
- Export tree visualizations as high-quality images (PNG, JPG, SVG)
- Export alignments for use in other applications
- Load your sequences - Import your DNA/RNA sequences from FASTA or FASTQ files
- Align your sequences - Use integrated alignment tools (MUSCLE, MAFFT) or import pre-aligned data
- Build your tree - Choose from multiple tree-building algorithms with customizable parameters
- Visualize and edit - Interact with your tree, customize its appearance, and make adjustments
- Export and share - Save your tree in various formats for publication or further analysis
TreeCraft integrates with popular bioinformatics tools:
- Alignment: MUSCLE, MAFFT
- Alignment trimming: trimAl, Gblocks
- Model testing: ModelTest-NG, IQ-TREE
- Tree inference: RAxML/RAxML-NG, MrBayes
Note: These tools are optional - TreeCraft will use them if available but provides built-in alternatives.
- Clone this repository
- Install the required dependencies:
pip install PyQt6 biopython matplotlib numpy - Optionally install RaxML, IQ-Tree and ModelTest-NG
- Run TreeCraft:
or
./run_treecraft.shpython3 treecraft.py
treecraft/gui/: GUI components (windows, dialogs, visualization)treecraft/core/: Core functionality (tree building, file handling)treecraft/utils/: Utility functions (external tool integration)
If you find any bugs or have suggestions contact Alan Rockefeller, or make the changes yourself and do a pull request.
https://github.com/AlanRockefeller/Treecraft
GNU General Public License 3.0
