Skip to content

Review: TreeScaper, Visualizing and Extracting Phylogenetic Signal from Sets of Trees

Citation

  • Huang, W., Zhou, G., Marchand, M., Ash, J. R., Morris, D., Van Dooren, P., Brown, J. M., Gallivan, K. A., & Wilgenbusch, J. C. (2016). TreeScaper: Visualizing and Extracting Phylogenetic Signal from Sets of Trees. Molecular Biology and Evolution, 33(12), 3314–3316.
  • DOI

Abstract

Modern phylogenomic analyses often result in large collections of phylogenetic trees representing uncertainty in individual gene trees, variation across genes, or both. Extracting phylogenetic signal from these tree sets can be challenging, as they are difficult to visualize, explore, and quantify. To overcome some of these challenges, we have developed TreeScaper, an application for tree set visualization as well as the identification of distinct phylogenetic signals. GUI and command-line versions of TreeScaper and a manual with tutorials can be downloaded from https://github.com/whuang08/TreeScaper/releases. TreeScaper is distributed under the GNU General Public License.


TreeScaper is a brief software note. It collects in one application several tasks that earlier tools did separately: tree-to-tree distances, projection of a tree set into two or three dimensions, an estimate of the set's intrinsic dimension, and the detection of groups of trees or of bipartitions.

Projection and community detection on sets of trees

The paper names two sources of variation that a phylogenomic analysis must handle: the uncertainty of each gene tree, and the differences among genes, from biological causes such as coalescent variation or from systematic error. It notes that most methods condense a tree set into a point estimate, or draw it without a quantitative summary, and that both lose information.

TreeScaper computes pairwise distances under one of several metrics, among them the Robinson-Foulds distance (Robinson & Foulds (1981)), the matching split distance and the subtree prune-and-regraft distance. Nonlinear dimensionality reduction then places the trees in a low-dimensional Euclidean space so as to minimize a stress between the plotted and the tree distances. Kruskal's, Sammon's and a normalized stress are offered, and curvilinear component analysis. Separately, community detection on a network of trees, or of bipartitions weighted by the covariance of their presence across trees, finds groups of similar trees. Because community detection works on the original distances, it can find structure that the projection hides.

The one worked example, its Figure 1, projects the posterior samples of several squamate mitochondrial genes under the prune-and-regraft distance. The communities it finds correspond exactly to the genes. The caption warns that two outlying groups of points "are NLDR visualization artifacts".

Source of the trees

TreeScaper generates no trees. Its input is a set of trees that another analysis produced. The paper notes that "many phylogenetic analyses return a set of trees" to represent uncertainty and variation. The example uses posterior distributions of mitochondrial gene trees from an earlier study (Castoe et al. 2009). What the projection and the communities can show is limited to the trees that analysis sampled.

Relevance to Hifuku

TreeScaper and Hifuku address the same phylogenomic question, how the trees of different genes agree and differ, and its example shows the pattern that a map of many genes should show: trees cluster by gene. Hifuku measures two of the same things on its final map, the intrinsic dimension of the cloud of trees and how faithfully a projection keeps neighborhoods, so that a reader can judge when a group on the map is a projection artifact of the kind TreeScaper's caption warns of. The difference is in the trees on the map. TreeScaper projects a sample that another program produced. Hifuku computes its own trees by a quality-diversity search on a fixed chart, and its elevation is each tree's log-likelihood. See the theory overview.