treestructure: Detect Population Structure Within Phylogenetic Trees

Algorithms for detecting population structure from the history of coalescent events recorded in phylogenetic trees. This method classifies each tip and internal node of a tree into disjoint sets characterized by similar coalescent patterns.

Version: 1.0.1
Depends: R (≥ 4.1.0)
Imports: ape (≥ 5.0), rlang
LinkingTo: Rcpp
Suggests: ggtree, ggplot2, knitr, rmarkdown, getopt, phangorn, treeio, testthat (≥ 3.0.0)
Published: 2026-07-05
DOI: 10.32614/CRAN.package.treestructure
Author: Erik Volz ORCID iD [aut, cre], Fabricia F. Nascimento ORCID iD [ctb], Vinicius B. Franceschi ORCID iD [ctb]
Maintainer: Erik Volz <erik.volz at gmail.com>
BugReports: https://github.com/emvolz-phylodynamics/treestructure/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://emvolz-phylodynamics.github.io/treestructure/, https://github.com/emvolz-phylodynamics/treestructure
NeedsCompilation: yes
Materials: NEWS
CRAN checks: treestructure results

Documentation:

Reference manual: treestructure.html , treestructure.pdf
Vignettes: Calibrating cluster detection to a false discovery rate (source, R code)
Node support values using treestructure (source, R code)
treestructure applied to structured coalescent simulation (source, R code)
Update of a treestructure object with new sequences (source, R code)

Downloads:

Package source: treestructure_1.0.1.tar.gz
Windows binaries: r-devel: treestructure_0.7.0.zip, r-release: treestructure_0.7.0.zip, r-oldrel: treestructure_0.7.0.zip
macOS binaries: r-release (arm64): treestructure_1.0.1.tgz, r-oldrel (arm64): treestructure_1.0.1.tgz, r-release (x86_64): treestructure_1.0.1.tgz, r-oldrel (x86_64): treestructure_1.0.1.tgz
Old sources: treestructure archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=treestructure to link to this page.