Treemble: A Graphical Tool to Generate Newick Strings from Phylogenetic Tree Images
Listen
Radio episode about this paper
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.
Institute for Genomics and Evolutionary Medicine, Temple University · Department of Biology, Temple University
q-bio.PE
Submitted: 2025-08-09
Updated: 2025-08-09
Journal ref: Bioinformatics 42(5) (2026), btag197
DOI: 10.1093/bioinformatics/btag197
License: http://creativecommons.org/licenses/by-nc-nd/4.0/
Importance score: 80/100
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>.
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
Summary
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. p. 1 Abstract
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. 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.Where the paper says it
Where the paper says it
Problem Statement
The need for Treemble arises because manually constructing a newick string is prohibitively laborious, requiring hours for small trees and days for larger ones.<ref:2508.07081#pg4>. Previous attempts to semiautomate reading tree images relied on image processing techniques that quickly encountered difficulties with typical published tree diagrams due to overlapping graphical elements like error bars. p. 1 Previous attempts to semiautomate 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. This can be effective for optimally clean and annotation-free phylogenies, but
the success rate for TreeRipper was low due to the complexity of many images, and this web
application is no longer available at the published URL (Hughes, 2011). TreeSnatcher required
the user to use image processing tools to condition the tree pixels to be detected, and in cases
where extraneous intersecting lines, organismal silhouettes, and boxes are present, the user
needed use tools to manually delineate the foreground to remove such distractions and makeWhere the paper says it
Where the paper says it
Core Functionality
Treemble operates by allowing users to mark node locations on a tree display, which the algorithm then determines connectivity for based on X and Y coordinates.<ref:2508.07081#pg5>. Key capabilities include:
-
Tip nodes can be automatically detected and marked in one step by drawing a rectangle encompassing them, particularly convenient for timetrees. p. 3
<ref:2508.07081#pg5>.Where the paper says it
In addition, the tip nodes can be autodetected and marked in one step by drawing a rectangle encompassing them, which is particularly convenient for timetrees. After the user finishes marking the nodes, Treemble automatically determines the connectivity of the nodes (see section 3 below) and displays overlays depicting the extracted tree (Fig.
-
The tool facilitates the automatic reading of tip name labels, with an optional AI Chatbot feature available to read species names from tree figures. p. 3
<ref:2508.07081#pg5>.Where the paper says it
We provide Tip Name Extractor GPT (https://chatgpt. com/g/g-rwiIPwboh-tip-name-extractor), which is a customized AI Chatbot designed to read species names from tree figures.
-
It handles both rectangular and circular trees, including a specialized mode for extracting circular trees with circular scale calibration and radial branch lengths. p. 4
<ref:2508.07081#pg6>.Where the paper says it
In addition to rectangular trees, Treemble has a specialized mode for extracting circular trees, including circular scale calibration and radial branch lengths, which no previous peer software provided (Fig. Polytomies and freeform connectivities can be specified by the user by manually connecting nodes to the correct parent with a simple two-click interaction.
Algorithmic Approach
Treemble uses a novel algorithm to assemble an adjacency graph based on the X, Y coordinates of nodes.<ref:2508.07081#pg8>. The assembly process involves:
-
Iterating over internal nodes from youngest to oldest (largest to smallest X coordinate). p. 6
<ref:2508.07081#pg8>.Where the paper says it
The algorithm iterates over the internal nodes from youngest to oldest (i. , largest to smallest 𝑋 coordinate), connecting each one to the two younger parentless nodes that are nearest to it in the positive and negative 𝑌 directions, respectively.
-
Partitioning the current free set into sets based on X and Y coordinates relative to the internal node. p. 6
<ref:2508.07081#pg8>.Where the paper says it
For each internal node 𝑢 ∈ 𝑈 in that order: 1. Partition the current free set 𝐹 into 𝐹 +(𝑢) = { 𝑣 ∈ 𝐹 ∣ 𝑥𝑣 > 𝑥𝑢, 𝑦𝑣 > 𝑦𝑢}, 𝐹 −(𝑢) = { 𝑣 ∈ 𝐹 ∣ 𝑥𝑣 > 𝑥𝑢, 𝑦𝑣 < 𝑦𝑢}.
-
Choosing nearest descendants by minimizing angular difference for circular trees. p. 7
<ref:2508.07081#pg9>.Where the paper says it
2 applies, with 𝐹 cw(𝑢) = { 𝑣 ∈ 𝐹 ∣ 𝑟𝑣 > 𝑟𝑢, 0 < (𝜃𝑣 − 𝜃𝑢 ) 𝑚𝑜𝑑 2𝜋 < 𝜋}, 𝐹 ccw(𝑢) = { 𝑣 ∈ 𝐹 ∣ 𝑟𝑣 > 𝑟𝑢, 0 < (𝜃𝑢 − 𝜃𝑣 ) 𝑚𝑜𝑑 2𝜋 < 𝜋}. and choosing the nearest clockwise and counter‐clockwise descendants by minimizing the angular difference.
-
Branch lengths are obtained directly from the time axis using the formula L u->v = x v - x u. p. 6
<ref:2508.07081#pg8>.Where the paper says it
A newick string can be obtained by recursion on the adjacency graph. Branch lengths are obtained directly from the time axis: 𝐿𝑢→𝑣 = 𝑥𝑣 − 𝑥𝑢.
Performance and Accuracy
Treemble demonstrates high accuracy in recovering phylogenetic data from images, achieving an R2 value of 0.99997 when comparing simulated trees to extracted ones for topology. p. 4 The Show Tree option is On and green overlays overlap the tree image’s branches. D) A comparison of
node heights from original simulated trees and trees extracted using Treemble from figures of the originals. 99997 which indicates that the match is highly accurate. The total time taken to
extract a newick string from each simulated tree image was 2 minutes on average. 4 Discussion
Treemble provides a solution to the problem of recovering machine-readable representations of
phylogenetic trees from images, and it may also be useful for other fields where data are
represented in hierarchical trees. A typical user can generate a newick string with Treemble in
about 1 minute for every 10 taxa in a standard tree. Unlike Electron, where the runtime bundles an entire
Chromium instance (resulting in binaries that are hundreds of megabytes), Tauri re-uses the
host’s browser engine and links statically to Rust libraries. As a result, Treemble installers for
each system are smaller than 8 megabytes, so the software is fast to download and has a small
footprint on a user’s hard drive.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Future Utility
Beyond generating newick strings, Treemble offers several quality-of-life features such as keyboard shortcuts, autosave, session recovery, and a diff analysis tool for comparing tip names. The node location data saved in a CSV file can be used to train computer vision models to recognize internal nodes automatically. p. 7 The ability to save a csv file of node locations which can include tip
names allows a Treemble session to be reopened at a later date and modified. In the future, the
node location data paired with tree images may allow the training of a computer vision model to
recognize internal nodes automatically, and Treemble makes gathering this data feasible. In the future, the
node location data paired with tree images may allow the training of a computer vision model to
recognize internal nodes automatically, and Treemble makes gathering this data feasible. Treemble’s simplicity and versatility will enable analyses of published phylogenies that were
previously prohibitively difficult, paving the way for new advances in phylogenetics.Where the paper says it
Where the paper says it
Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.
Improvements for AI systems
-
Newick string generation from tree images can be automated for researchers by allowing users to
click to mark node locations
and letting Treemblealgorithmically assemble the tree from the node coordinates alone.
-
The system can automatically detect and mark tip nodes
by drawing a rectangle encompassing them, which is particularly convenient for timetrees,
and it facilitates the automatic reading of tip name labels using an integrated AI Chatbot. -
Treemble can handle various tree types, including
rectangular and circular trees
with specialized modes for extracting circular trees that includecircular scale calibration and radial branch lengths.
-
The system provides a mechanism to verify the reconstructed phylogeny by displaying overlays depicting the extracted tree, which
automatically highlights nodes that could not be fully connected, making it easy to find the site of any missing nodes.
-
The system can generate branch lengths with high accuracy; for simulated trees, an R2 value of 0.99997 was achieved for topology matching and an error rate of 0.57% for branch length recovery on a scale of 19.6067 units.
Abstract
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.
Related papers
- From life-history model to theories of ecological diversity: the impact of Madhav Gadgil's work
- A multiscale discrete-to-continuum framework for structured population models
- Sex chromosome stability and turnover across vertebrates: a developmental gene regulatory network perspective
- Fixation location in structured populations
- Diversification under Global Competition: A Cutoff-Induced Localization Mechanism
- Extending indoor airborne infection risk modelling to 3D, with local surface deposition