Treemble: A Graphical Tool to Generate Newick Strings from Phylogenetic Tree Images

summary

The gist

Phylogenetic trees are ubiquitous and central to biology, but most published trees are available only as visual diagrams and not in the machine-readable newick format.<ref:2508.07081#pg3>.

In short

Treemble is a desktop application that converts phylogenetic tree images into machine-readable newick strings. It solves the problem of labor-intensive manual construction by allowing users to click on nodes, and the tool automatically assembles them using an algorithm based on X and Y coordinates. This enables rapid data extraction from published tree diagrams.

Key concepts

Newick Format
A standardized, machine-readable text format used in biology to represent phylogenetic trees. It allows complex tree structures, including branching patterns and branch lengths, to be stored and analyzed by computer programs rather than just being viewed as a picture.
Node Location Marking
The core user interaction where a person clicks on specific points (nodes) within a tree image. Treemble uses these marked locations—defined by their X and Y coordinates—to determine the connections between nodes, effectively teaching the software how the tree is structured.
Algorithmic Assembly
The mathematical process Treemble uses to build a newick string. It works by iterating through internal nodes from youngest to oldest (based on X-coordinates) and partitioning surrounding points based on their spatial relationship, ensuring correct topological connections are established automatically.
Branch Length Calculation
The method used by the algorithm to determine the length of a branch connecting two nodes. It calculates this length directly from the time axis coordinates using a simple formula: L_u->v = x_v - x_u, which is crucial for accurately representing evolutionary time on the tree.

Terminology used across episodes

This episode discusses

The paper

Treemble: A Graphical Tool to Generate Newick Strings from Phylogenetic Tree Images · Read on arXiv

Institute for Genomics and Evolutionary Medicine, Temple University · Department of Biology, Temple University

Phylogenetic trees are ubiquitous and central to biology, but most published trees are available only as visual diagrams and not in the machine-readable newick format. There are thus thousands of published trees in the scientific literature that are unavailable for follow-up analyses, comparisons, supertree construction, etc. Experts can easily read such diagrams, but the manual construction of a newick string is prohibitively laborious. Previous attempts to semi-automate the reading of tree images relied on image processing techniques. These quickly encounter difficulties with typical published tree diagrams that contain various graphical elements that overlap the branches, such as error bars on internal nodes. Here we introduce Treemble, a user-friendly desktop application for generating newick strings from tree images. The user simply clicks to mark node locations, and Treemble algorithmically assembles the tree from the node coordinates alone. Tip nodes can be automatically detected and marked. Treemble also facilitates the automatic reading of tip name labels and can handle both rectangular and circular trees. Treemble is a native desktop application for both MacOS and Windows, and is freely available and fully documented at treemble.org.

DOI: 10.1093/bioinformatics/btag197

Transcript

Introduction to the show: ident: Genomics Radio. Generated commentary on the latest computational biology and genomics papers.

Ines: We're looking at the paper: "Treemble: A Graphical Tool to Generate Newick Strings from Phylogenetic Tree Images".

Paper summary: Ines: So, we've been looking at Treemble today and now we're wrapping up what it actually means for us in biology.

Marcus: The authors of this paper are building a desktop application called Treemble to turn those visual tree images into newick strings. It lets you click on the nodes, and the algorithm assembles the tree based on those clicks >

Yuki: For population genetics, this is important because it means we can finally use published figures that we couldn't use before because they weren't in a machine-readable format.

Ines: Exactly. It’s about making those historical phylogenetic trees accessible again so we can run the statistical tests they were meant for > It tackles the problem of having thousands of visual trees locked away because you can’t just copy and paste them into analysis software.

Marcus: The paper shows they got very high accuracy, an R squared value of nine point nine nine nine seven when comparing simulated trees to what they extracted from images > That's a strong number for recovering the topology.

Yuki: But we have to remember that accuracy depends on how well you mark those nodes yourself. If you miss a node or get the coordinates wrong, the resulting tree is just wrong, so user input is critical here >

Ines: Right. The method relies entirely on you accurately marking those locations, so the computer isn't magic; it’s following your clicks to build the structure > It stops being about perfect image processing and starts being about user definition of the structure >

Marcus: And they handle both standard rectangular trees and circular ones, which includes a special mode for circular trees that deals with radial branch lengths. That shows they didn't just build it for one type of diagram.

Yuki: It’s good to see flexibility there because not all tree diagrams are the same shape or structure. But what about the species names on those tips?

Ines: They have features to automatically read tip labels, and even an AI chatbot option is available to help read species names directly from the tree figures > That cuts down a huge amount of manual transcription work.

Marcus: The implication for my work on large cohorts is that if we can quickly process these figures, we can get data into our statistical pipelines faster, which helps with batch effect checks and other things before we even start the main analysis >

Yuki: So, it’s about speeding up the whole pipeline from a published figure to actual usable data for species history studies. But what kind of diagrams are they actually testing this on?

Ines: They tested it on simulated trees, which gave them those high accuracy numbers. The next step is seeing how robust this holds up when we use it on real, messy images with overlapping elements like error bars that used to trip up older software >

Marcus: That’s the caveat. It’s a tool for structure recovery from visual input, and we need to see if it can handle the complexity of real-world publications without needing manual cleanup first.

Conclusion: Ines: So we're wrapping up our look at Treemble, which is this new desktop app that takes a picture of a phylogenetic tree and lets you click on the nodes to rebuild it as a newick string.

Marcus: The authors are building this tool to bridge the gap between those visual diagrams we see in publications and the machine-readable format we need for actual statistics.

Yuki: For population genetics, this means we can finally use those historical figures that were stuck in pictures because they weren't in a usable format before.

Ines: It lets us run the statistical tests those original researchers intended to run on them without having to transcribe every single branch by hand.

Marcus: They got high accuracy numbers, an R squared value of nine point nine nine nine seven when testing it against simulated trees for topology recovery. That's a very strong score for how well it’s pulling the structure out of the image data.

Yuki: But we have to keep in mind that the success really depends on you marking those nodes correctly; if you get a coordinate wrong, the tree will be wrong. User input is what drives this whole process.

Ines: Right, so it stops being about perfect automated image reading and starts being about defining the structure through user clicks. It’s a shift in how we handle these visual data sources.

Marcus: They built it to handle both standard rectangular trees and circular ones, including a mode for those circular ones with radial branch lengths. That shows they thought about different diagram types in their design.

Yuki: And they included features like an AI chatbot option to help read the species names on the tips, which saves a ton of manual data entry work later on.

Ines: The implication is that we can start using these published figures for follow-up analyses without spending days transcribing them manually. It makes those thousands of visual trees available for comparison again.

Marcus: So, Treemble is this tool designed to bring machine-readable data out of visual formats, helping researchers manage the huge volumes of published tree figures efficiently.

Yuki: It’s about supporting the idea that understanding ancestry is key to all biological research by making those ancestral relationships easier to access for everyone.

Ines: The main idea here is providing a practical way to handle that problem of inaccessible phylogenetic data from old publications.

Marcus: It’s a tool designed to make the tedious work of converting pictures into usable data manageable for researchers who rely on these figures every day.

Yuki: Now, we need to see how robust this works when it encounters the real messiness of published diagrams, like those overlapping error bars that used to trip up older software. That’s where we need to find out next.

More episodes

← Home