A web and desktop application for viewing MCMC trees from BPP (Bayesian Phylogenetics and Phylogeography) analysis.
- View species trees from BPP MCMC output (
.mcmc.txtfiles) - Embedded gene trees within species tree "tubes" showing coalescent events
- Multiple view modes: Phylogram and Cladogram
- Navigate posterior samples with slider, keyboard, or direct input
- Adjustable dimensions with height and width sliders
- Display theta values (population size parameters) on branches
Try it online: https://bpp.github.io/bppt/
Download installers from Releases:
- macOS:
.dmg(Intel and Apple Silicon) - Windows:
.exeinstaller - Linux:
.AppImage
- Click "Choose File..." to open a BPP MCMC output file (e.g.,
mcmc_out.mcmc.txt) - The first posterior sample will display automatically
- Use the slider or arrow keys to navigate through samples
To visualize gene tree coalescences within species tree populations:
- Load a species tree file first
- Click "Imap..." to load the individual-to-species mapping file (e.g.,
imap.txt) - Click "Gene Trees..." to load gene tree files (e.g.,
mcmc_out.gtree.L1,mcmc_out.gtree.L2, etc.) - Select locus from the dropdown to switch between loci
- View selector: Switch between Phylogram (branch lengths proportional) and Cladogram views
- Show θ checkbox: Toggle display of theta values on branches
- Height slider: Adjust tree height (tips fixed at top, root extends downward)
- Width slider: Adjust tree width (species tubes scale proportionally)
- Slider: Drag to jump to any posterior sample
- ◀ / ▶ buttons: Previous/next sample
- Arrow keys: Left/Right for previous/next
- Page Up/Down: Jump 100 samples
- Home/End: Jump to first/last sample
- Direct input: Type a sample number and press Enter
BPP MCMC output containing Newick trees with theta annotations:
((A:0.001,B:0.001):0.002,(C:0.001,D:0.001):0.002):0.003 #0.05 [theta values...]
BPP gene tree output with individual labels in Species^individual format:
((A^a1:0.0001,A^a2:0.0001):0.001,(B^b1:0.0002,B^b2:0.0002):0.001):0.002; [TH=0.003]
Tab-separated file mapping individuals to species:
a1 A
a2 A
b1 B
b2 B
# Install dependencies
npm install
# Run development server
npm run dev
# Build web version
npm run build
# Build Electron app for current platform
npm run packageMIT
