Change log
0.1.2
Minor Changes:
Peak memory is the same from run to run. The prefilter kernel allocated its scratch buffers with
aligned_alloc, and on glibc a freed buffer could then not be reused until up to seven of them were held by each worker process; how many depended on the state of the parent’s allocator when the workers were forked. Identical runs therefore peaked on levels one buffer per worker apart: with CheckM’s reference tree (10,483 nodes, 6,979 sites) and 64 CPUs, 14.3 to 18.4 GiB in 0.1.0, 13.6 or 14.2 GiB in 0.1.1, and 6.4 to 7.8 GiB with--max_memory 8G. The buffers now come frommallocand are aligned by hand: the same runs peak at 13.6 GiB, and at 5.7 GiB with--max_memory 8G, with identical results.place --full_modelcomputes the gamma rates of IQ-TREE and RAxML-NG fits with the engine’s correctly roundedexp,logandpowinstead of the system’s maths library, so the rates, and the placements made with them, are the same on every machine. Before, a rate could differ between C libraries in its last digits (seen for one shape: 16 categories, alpha 1.7, 4e-15 relative between glibc 2.28 and the glibc of Ubuntu 24.04). The rates equal the fitting program’s own to within that program’s maths library.
0.1.1
Major Changes:
Tiled placement starts its worker processes once per pass over the tiles (the prefilter, each baseball round, the refinement) instead of once per tile, and rebuilds the tiles of a pass with one thread pool: 10,000 genomes on the GTDB R232 bacterial tree in 370 tiles (
--max_memory 8.5G, 64 CPUs) take 25 minutes instead of 2 h 49 min, with identical results. Before each fork, freed memory goes back to the system (malloc_trimon Linux,malloc_zone_pressure_reliefon macOS), which keeps the longer-lived workers within the planned memory.The likelihood vectors are rebuilt in the C engine, on threads over blocks of sites, instead of in Python, for every model (CAT, gamma, mixtures) and for both the untiled cache and each tile: 10,000 genomes on the full GTDB R226 bacterial tree (
--max_memory 16G, 27 tiles, 40 CPUs) take 10 minutes instead of 20, and tiled gamma runs are 1.3-1.4x faster, with identical results. The idea of rebuilding the tiles in C comes from KGerhardt’s pull request (GitHub PR 4).Reference alignments are read straight into one byte matrix, without holding their sequences as Python strings and copies of them: on the GTDB R232 bacterial tree (189,801 sequences) loading takes 1.3 GiB instead of 4.8 GiB and 14 s instead of 38 s, and placing 38 genomes on tiles of 1,000 edges peaks at 3.0 GiB instead of 4.8 GiB, with identical results.
--max_memoryis also checked before the reference alignment is read: a limit too small even for reading it now stops with the usual “needs –max_memory” message, where a hard memory limit (a cgroup, container or job limit) used to kill the process first (GitHub issue 5).
Minor Changes:
gplace --version(or-v) printsgplace: version 0.1.1 Copyright 2026(without the author’s name), and the help screen lists it.The log reaches a pipe or a redirected file line by line, as on a terminal: the console log is flushed after each line. Before, Python held it in its output buffer, so a program reading gPlace’s output through a pipe saw the log in blocks or only at the end of the run (unless it set
PYTHONUNBUFFERED=1).Placement without tiles logs its progress,
Placed x/n queries., about every 5% of the queries (tiled placement already logsx/n queries completeafter each baseball round).
Documentation:
The installation pages start with conda and pip: gPlace is on Bioconda and PyPI as
gtdb-gplace(conda create -n gplace -c conda-forge -c bioconda gtdb-gplace,python -m pip install gtdb-gplace). Bioconda has prebuilt packages for Linux (x86-64 and ARM64) and macOS (Intel and Apple silicon); PyPI has prebuilt wheels for Linux (x86-64 and ARM64), and on macOS pip compiles the engine from the source package. Installing from GitHub is described in “Installing from source”.“How gPlace works” has new figures: an exponent pull at the bit level, when pplacer and gPlace apply the final pull (new section “Exponents and the final pull”), and tiled placement step by step (the prefilter tile by tile, baseball in rounds, the ranked edges kept per query).
Corrected numbers: tiled placement keeps 164 ranked edges per query by default (4 x 41), not 160; pplacer’s search stops after 41 successfully optimised edges (
--max_pitches40, plus the last one), not after 40 edges tried.
0.1.0
Major Changes:
Initial release:
place,place_batch,compare,testandcheck_installcommands; the engine is compiled duringpip install(build_enginerebuilds it).Placement engine reproducing pplacer v1.1.alpha19 (its static release binary) bit for bit for WAG + FastTree CAT reference packages, with internal-node-only likelihood storage, a SIMD prefilter and placement in forked worker processes.
benchmarkcommand (fastest--cpus, memory and time estimates, SLURM request) and--cpus auto.Tiled placement for trees too large for memory, such as the full GTDB bacterial tree, with results identical to untiled placement:
--tile_edges N(tiles of at most N edges) or--max_memory SIZE(untiled if it fits, otherwise the largest tiles that fit, chosen per reference package from its tree and number of queries), forplace,place_batch,testandbenchmark. Without these options gPlace warns when the estimated peak memory exceeds the memory available.benchmarktimes tiled jobs tile by tile, within the job’s own memory: fastest--cpusfrom one rebuilt tile, and a time estimate per phase (within about 10% of measured runs on the full GTDB bacterial tree).Prefilter kernel: exponent totals in 64-bit integers, so very large trees stay on the SIMD path (7-37x faster prefilter on the full GTDB bacterial tree; identical scores).
Runs where pplacer runs: Linux on x86-64 (AVX2 kernels with AVX2 + FMA, otherwise a portable engine with identical results) and ARM64 (NEON kernels), and macOS on Apple Silicon (NEON) and Intel (AVX2), compiled from source with Apple’s clang, with the same results.
pplacer’s taxonomic
classificationfield for reference packages with a taxonomy (edge painting, or--mrca_class); identical query sequences placed once and written as one record; queries that do not overlap the reference alignment stop the run, or are dropped with--discard_nonoverlapped.Prebuilt
manylinux2014wheels for x86-64 and ARM64 (one wheel per architecture for every Linux distribution and Python >= 3.12).jplace output with pplacer’s number formatting (
%.12g) and a byte-identical tree string.The engine is written in C (
gplace/engine/csrc/xp.c), like the libraries it links (GSL 1.16, CORE-MATH, glibc 2.19’shypotandlog1p): installing from source needs only a C compiler andmake.tog(the same output asguppy tog, byte for byte, Newick or phyloXML) andtaxit create,taxit check,taxit info(as taxtastic’staxit): a placement workflow needs neither pplacer nor taxtastic.pplacer’s settings as options of
placeandplace_batch, under gPlace’s and pplacer’s names, with pplacer’s results:--ml_tolerance,--start_pend,--max_pend,--max_strikes,--strike_box,--max_pitches,--keep_at_most,--keep_factor,--no_pre_maskand--always_refine.Model refinement as in pplacer: when the query alignment holds the reference sequences, or with
--always_refine, CAT models get new site categories on the reference tree.Posterior probabilities as pplacer’s
-pcomputes them (-p/--pp,--pp_rel_err,--unif_prior,--inform_prior,--prior_lower): each placement gets pplacer’smarginal_likeandpost_probfields, with identical values, untiled and tiled.placewithout a reference package:--tree,--ref_aln,--stats,--ref_dir(pplacer’s-t,-r,-s,-d), with RAxML 7 info, PhyML 3.0 stats and JSON model files read as pplacer reads them, and pplacer’s model settings--model_freqs,--gamma_cats,--gamma_alpha(--modelis accepted).Stockholm query files (
.sto,.sth) and reference packages withaln_sto; gzipped alignments (.gz).Source installs with older C compilers (gcc 4.8 to 9, e.g. CentOS 7): the vendored CORE-MATH
sinandpowno longer need__builtin_roundeven(gcc 10) or__builtin_mul_overflow(gcc 5), and gcc < 5 compiles them as C11. Before, gcc < 10 built an engine that failed to load (undefined symbol: __builtin_roundeven); the build now stops on any unknown builtin and checks that every engine loads. Rebuilds relink the engine whenever the compiled C changes (before, a link cached in the build directory could be reused). A failed engine build now endspip installwith one clear message (editable installs used to hide it behind a setuptoolsKeyError).Engines load on glibc older than 2.25 (the ARM64 wheel, CentOS 7): CORE-MATH’s
exp,powandsinno longer call the C library’sroundeven, which gcc 10 and 11 on ARM64, and gcc on x86-64 for the portable engine, used instead of an instruction (identical results).--ranked_edges N(place,place_batch): untiled placement without a queries x edges score table; queries are scored in batches of 20,000 and keep their first N ranked edges, as in tiled placement, so memory barely grows with the number of queries (all 127,343 GlobDB genomes on class-level tree 8: 17.5 GiB instead of 29.5 GiB with--ranked_edges 164). Results are identical; the default is unchanged.gplace testplaces a test set tile by tile when its untiled placement would not fit in the memory available (identical results);gplace test --modelsand the unit tests now run on 8 GB machines such as GitHub’s standard runners.Gamma models with 21 or more categories (GSL calls
log1p: glibc 2.19’s, as in pplacer) are supported; a GSL error while the gamma rates are computed (e.g. alpha 10^6) stops gPlace with pplacer’s message, as pplacer stops.Trees fitted with IQ-TREE or RAxML-NG: packages built from them with
taxit createplace as in pplacer (identical results), and the.iqtreefile or RAxML-NG log can be given directly with--stats. gPlace warns about the parts of the fitted model pplacer does not use (+I,+R, ML-estimated frequencies, …) and explains the fits pplacer cannot use.place --full_model: places with an IQ-TREE fit’s complete model at its full precision (every reversible DNA model and protein matrix of IQ-TREE 3, fitted frequencies,+G,+I,+R, protein mixtures C10-C60, EX2/EX3/EHO, UL2/UL3, LG4M, LG4X,MIX{...}). Not pplacer’s model, so results differ from pplacer’s; placement likelihoods equal IQ-TREE’s own (83 fits). The default is unchanged.place --full_modelwith RAxML-NG fits: reads<prefix>.raxml.bestModelas RAxML-NG reads it (every DNA model and protein matrix of RAxML-NG 2,PROTGTR,+FC/+FE/+FU,+Gwith mean or median rates computed with RAxML-NG’s gamma algorithm,+I/+IC,+R, LG4M, LG4X). Placement likelihoods equal RAxML-NG’s own to the jplace file’s precision (89 fits).--full_modelalso takes the.raxml.bestModelfile, or finds it next to a--statsRAxML-NG log.place --full_modelwith IQ-TREE fits: gamma rates computed with IQ-TREE’s own algorithm (Yang’s, as in IQ-TREE’sRateGamma; bit-identical) instead of pplacer’s, so placement likelihoods equal IQ-TREE’s to its printed precision; median gamma rates (--gamma-median) are now supported. Reference packages and pplacer’s models keep pplacer’s gamma rates.place --full_model: an invariable-sites category (+I) now evolves with the exact identity matrix (it was the eigen-decomposition’s, exact only to rounding, which at variable sites added noise to tiny likelihoods): IQ-TREE LG+I fits now agree with IQ-TREE to 1e-7 instead of 3.4e-5. pplacer models are unchanged.Every file gPlace opens is closed explicitly (
gplace.fileiohelpers orwithblocks): noResourceWarning: unclosed filein the unit-test log.placetakes pplacer’s command line:-c,-o,-jand--out-dirnext to--refpkg,--out_file,--cpusand--out_dir, and query files at the end of the command line (or anywhere among the options). Without-o, each query file is written to<name>.jplaceas pplacer names it, and several query files give one jplace file each. pplacer’s--mmap-file,--verbosityand--timingare accepted with no effect; the pplacer options gPlace does not implement stop the run with a message.-j 0/--cpus 0place with one process, as pplacer.