Modern biology increasingly depends on comparing new genomes with enormous maps of life. The surprising result here is that the same evolutionary answers can be obtained while using dramatically less computing power.
gPlace: fast, memory-bounded phylogenetic placement with results identical to pplacer
Chaumeil, P.-A.; Parks, D. H.
Phylogenetic placement methods such as pplacer attach query sequences to a fixed reference tree, thereby establishing their evolutionary relationships to the reference sequences. These relationships can then be used to infer taxonomic classifications or likely metabolic functions. gPlace is a drop-in replacement for pplacer that produces identical results while reducing memory requirements by >3-fold and computation time by >30-fold under typical usage. These improvements are achieved by storing less data per node and streamlining the calculations used to position each query sequence. gPlace can also run within a user-specified memory limit by processing only a portion of the reference tree at a time. Consequently, it can efficiently place sequences on large reference trees that would be impractical for pplacer to process. We demonstrate the importance of these improvements by evaluating gPlace as a replacement for pplacer in GTDB-Tk and CheckM, two tools widely used in genome-resolved metagenomic studies. gPlace is released under the GNU General Public License v3.0 and is available at https://github.com/cmc-aau/gPlace.
Transcript
Modern biology increasingly depends on comparing new genomes with enormous maps of life. The surprising result here is that the same evolutionary answers can be obtained while using dramatically less computing power. A placement method attaches a new sequence to a fixed reference tree, establishing its evolutionary relationships to the reference sequences.
Those relationships can then help infer taxonomic classifications or likely metabolic functions. But the usual approach demands substantial memory and computation, even though gPlace produces identical results while reducing both. Methods such as pplacer and EPA were first designed to place short sequences in single-gene reference trees, then used for genome assemblies in trees built from concatenated marker genes.
As alignments grew longer and reference trees rapidly expanded, placing each new genome became increasingly demanding in memory and runtime. It is like trying to locate one unfamiliar book in a library whose shelves keep multiplying: as the library grows, finding the right place becomes increasingly demanding in memory and runtime.
This challenge is especially clear when bacterial genomes are classified against a very large reference tree. Placing genomes into a tree of this size with the older approach requires an amount of memory beyond what many researchers can readily access.
Splitting the tree into smaller sections reduces the burden, but the largest section can still demand a great deal of memory. gPlace instead runs within a user-specified memory bound while producing identical placements. gPlace keeps only the two kinds of information needed at internal nodes, rather than storing all of it everywhere.
The information no longer stored is cheap to rebuild. The rebuilt information is produced using the same operations in the same order as in pplacer, so it is identical to what pplacer stores. When even that reduced information could exceed available memory, gPlace divides the reference tree into connected pieces and holds only one piece in memory at a time, with the piece size chosen to stay within a user-specified limit.
The crucial point is that every calculation inside a piece is still a calculation for the full tree, unlike approaches that place sequences only on smaller subtrees. Earlier shortcuts could reduce memory or runtime, but their placements could differ from the result obtained from the full tree.
Other methods used faster rules, but they also produced different placements or required more specialized input. gPlace takes the contrasting approach: it reduces computational requirements while providing results identical to pplacer, making it a drop-in replacement rather than a compromise.
In the genome-classification workflow, full-tree placement was the main runtime and memory bottleneck. Using gPlace produced placements identical to full-tree pplacer, and limiting gPlace to a specified memory amount reduced the workflow's peak memory while remaining nearly five times faster and using nearly five times less memory than divide-and-conquer placement.
After that change, placement was no longer the bottleneck: other steps dominated the total time, and, under the memory limit, the peak memory use as well. The bars make the contrast visible: once placement is shortened, the remaining workflow occupies most of the run, while its memory footprint stays comparatively small.
The same pattern appeared in genome-quality checking. CheckM estimates the completeness and contamination of genome assemblies, and it relies on placement to choose marker genes for that estimate. Replacing pplacer with gPlace reduced elapsed time by between one point one and two point seven times, and reduced peak memory by about three times in nearly all tested configurations.
Tools that rely on pplacer therefore benefit from the replacement. gPlace makes full-tree evolutionary placement practical on machines many researchers can actually access, while producing results identical to the established approach. That can make genome classification and quality checking faster and more widely available.
CC BY 4.0 · A derivative work by Paperi · AI-generated script, voice and captions · pages and figures unaltered
Drop in a research PDF — get a narrated video walkthrough like this one, with highlights that follow the narration. Free to start.