place

The place command places aligned sequences on a reference package and writes a jplace file. It takes pplacer’s command line and computes exactly what pplacer computes: the same placements and the same numbers. Replace pplacer with gplace place:

pplacer      -j 40 -c my.refpkg -o queries.jplace queries.fasta
gplace place -j 40 -c my.refpkg -o queries.jplace queries.fasta    # the same jplace file

or use gPlace’s option names:

gplace place --msa_file queries.fasta --refpkg my.refpkg \
             --out_file queries.jplace --cpus 40

The options you will usually need

Option

What it does

query file(s), or --msa_file

The alignment of your sequences (FASTA or Stockholm, gzipped or not), aligned to the reference alignment, at the end of the command line as in pplacer.

-c, --refpkg

The reference package (a .refpkg folder).

-o, --out_file

The jplace file to write. Without it, as in pplacer, queries.fasta is written to queries.jplace (the file name without .gz and its last extension) in --out-dir.

--out-dir, --out_dir

The directory for those jplace files (default: the current directory).

-j, --cpus

Number of worker processes, or auto to pick a good number for this computer.

--max_memory

Memory gPlace may use, e.g. 64G. Needed for large trees such as the full GTDB bacterial tree; the result is the same. See Large trees and memory limits.

More options

Everything else is for special cases, and each option keeps pplacer’s default:

  • Large trees and memory limits: tile size, memory estimates, many queries in one run.

  • pplacer’s options: pplacer’s search settings, pre-masking, Stockholm query files, taxonomic classification, and reference files instead of a reference package (pplacer’s -t/-r/-s).

  • Using your own tree: trees fitted with IQ-TREE or RAxML-NG, including --full_model.

  • Models: the evolutionary models, and --fix_gamma_underflow.

pplacer’s command line works as it is, with pplacer’s results:

  • every option is accepted under pplacer’s name and under gPlace’s (--keep-at-most or --keep_at_most, -p, -t/-r/-s/-d, -m, …);

  • several query files are placed one after the other, each into its own jplace file (-o then stops the run, as in pplacer), and query files may come before or after the options;

  • without a query file gPlace warns and stops with exit status 0, as pplacer does;

  • --mmap-file, --verbosity and --timing are accepted and change nothing (gPlace needs no scratch file and logs its timings in gplace.log);

  • the pplacer options gPlace does not implement stop the run with a message: see pplacer’s options.

Two differences: gPlace creates a missing --out-dir (pplacer stops), and it reads a query file without a .fasta/.fa/.sto/.sth suffix as FASTA (pplacer stops with “unfamiliar suffix”).

Files output

Example

gplace place --msa_file queries.fasta --refpkg mini.refpkg --out_file gplace.jplace --cpus 4
[2026-10-01 19:23:40] INFO: gPlace v0.1.0
[2026-10-01 19:23:40] INFO: gplace place --msa_file queries.fasta --refpkg mini.refpkg --out_file gplace.jplace --cpus 4
[2026-10-01 19:23:42] INFO: Read 20 sequences from queries.fasta
[2026-10-01 19:23:44] INFO: Model: WAG + CAT (20 rates), model frequencies (protein)
[2026-10-01 19:23:44] INFO: Placing 20 queries on mini.refpkg (493 nodes, 4,891 sites, 4 CPUs; estimated peak memory 0.9 GiB).
[2026-10-01 19:23:47] INFO: Cached likelihood vectors for 246 internal nodes (0.4 GB).
[2026-10-01 19:23:48] INFO: Scored 20 queries against 492 edges.
[2026-10-01 19:23:51] INFO: Wrote 20 placements to gplace.jplace (8.0 s).

On the full GTDB bacterial tree within a 64 GB job:

gplace place --msa_file queries.fasta --refpkg gtdb_r226_bac120.refpkg \
    --out_file queries.jplace --cpus 40 --max_memory 64G

All options

usage: gplace place [--msa_file MSA_FILE] [--out_file OUT_FILE]
                    [--out_dir OUT_DIR] [--refpkg REFPKG] [--cpus CPUS]
                    [--fix_gamma_underflow] [--mrca_class]
                    [--discard_nonoverlapped] [--ranked_edges N]
                    [--tmpdir TMPDIR] [-h]
                    [--tile_edges TILE_EDGES | --max_memory MAX_MEMORY]
                    [--ml_tolerance FLOAT] [--start_pend FLOAT]
                    [--max_pend FLOAT] [--max_strikes INT]
                    [--strike_box FLOAT] [--max_pitches INT]
                    [--keep_at_most INT] [--keep_factor FLOAT] [--no_pre_mask]
                    [-p] [--pp_rel_err FLOAT] [--unif_prior] [--inform_prior]
                    [--prior_lower FLOAT] [--always_refine] [--tree TREE]
                    [--ref_aln REF_ALN] [--stats STATS] [--ref_dir REF_DIR]
                    [--full_model [MODEL_FILE]] [--model MODEL]
                    [--model_freqs] [--gamma_cats INT] [--gamma_alpha FLOAT]
                    [--mmap-file FILE] [--verbosity INT] [--timing]
                    [alignment ...]

queries and output (gPlace’s or pplacer’s names)

alignment

query alignment file(s) at the end of the command line, as in pplacer, instead of –msa_file. Each is placed on its own and, without –out_file, written to <name>.jplace in –out_dir, named as pplacer names it (the file name without .gz and its last extension)

Default: []

--msa_file

aligned query sequences, protein or DNA as the reference: FASTA, or Stockholm if the name ends in .sto or .sth (.gz: gzipped) as in pplacer (pplacer’s query file)

--out_file, -o

output jplace file (same content as pplacer’s -o file)

--out_dir, --out-dir

directory for the jplace files named after their alignment (pplacer’s –out-dir). Default: the current directory; –out_file is used as given

reference (–refpkg, or –tree with the files below)

--refpkg, -c

pplacer reference package directory (pplacer’s -c)

optional arguments

--cpus, -j

number of CPUs to use, or “auto”: the value saved by gplace benchmark on this machine, otherwise measured during the run (placement is memory-bandwidth bound, so the fastest value is often below the CPU count) (pplacer’s -j)

Default: '1'

--fix_gamma_underflow

gamma-model reference packages only: avoid pplacer’s rescaling underflow, which gives likelihood -inf on large trees. Results then differ from pplacer (slightly where pplacer is finite). Default: reproduce pplacer exactly

--mrca_class, --mrca-class

reference packages with a taxonomy: classify each placement by the taxonomic MRCA of the reference sequences below its edge, instead of by edge painting (pplacer’s –mrca-class)

--discard_nonoverlapped, --discard-nonoverlapped

drop queries that have no residue in any column where a reference sequence has one, instead of stopping (pplacer’s –discard-nonoverlapped)

--ranked_edges

untiled placement: keep only each query’s first N edges of pplacer’s ranking (164 covers pplacer’s default search) instead of its prefilter score for every edge, scoring queries in batches of 20,000. Memory then barely grows with the number of queries; results are identical (a query that needs more edges is ranked again in full). Tiled placement always works this way. Default: keep every score

--tmpdir

specify alternative directory for temporary files

Default: '/tmp'

mutually exclusive optional arguments

--tile_edges

place tile by tile, holding one tile of at most this many edges in memory at a time (exact; for reference trees too large for memory, such as the full GTDB bacterial tree). Default: no tiling

--max_memory

memory gPlace may use, e.g. 64G or 500M (a plain number is GiB). If the estimated peak fits, gPlace places without tiles; otherwise it picks the largest tile size that fits, from the reference tree and the number of queries (chosen separately for each reference package)

pplacer settings (default: pplacer’s; results stay identical to pplacer run with the same settings)

--ml_tolerance, --ml-tolerance

tolerance of the first-stage branch length optimisation (the kept placements are refined to 1e-5)

Default: 0.01

--start_pend, --start-pend

starting pendant branch length

Default: 0.1

--max_pend, --max-pend

maximum pendant branch length

Default: 2.0

--max_strikes, --max-strikes

stop trying edges after this many strikes (edges more than strike_box below the best so far); 0 tries every edge of the tree

Default: 6

--strike_box, --strike-box

size of the strike box in log-likelihood units

Default: 3.0

--max_pitches, --max-pitches

try at most this many edges (plus one) per query

Default: 40

--keep_at_most, --keep-at-most

maximum number of placements kept per query

Default: 7

--keep_factor, --keep-factor

keep placements whose likelihood is at least this fraction of the best one’s

Default: 0.01

--no_pre_mask, --no-pre-mask

do not pre-mask: keep every alignment column (query residues where no reference has one then count), do not check that queries overlap the reference sequences, and merge only queries with identical whole sequences into one record

-p, --pp

calculate posterior probabilities (pplacer’s -p): adds each placement’s marginal likelihood and posterior probability, and, as in pplacer, sets –keep_at_most 20, –keep_factor 0.001 and –max_strikes 20 (options given after -p override these). Much slower than likelihood placement

Default: False

--pp_rel_err, --pp-rel-err

relative error of the posterior probability integration

Default: 0.01

--unif_prior, --unif-prior

-p: uniform prior on the pendant branch length instead of exponential

--inform_prior, --inform-prior

-p: exponential prior whose mean, for each edge, is its length plus the average distance to the leaves below it (plus –prior_lower), instead of the average branch length of the tree

--prior_lower, --prior-lower

-p –inform_prior: added to every edge’s prior mean

Default: 0.0

--always_refine, --always-refine

refine the model before placing: CAT models get new site rate categories on the reference tree (pplacer always does this when the query alignment holds the reference sequences); no effect on gamma models

reference files (instead of, or replacing those of, –refpkg; pplacer’s -t/-r/-s/-d)

--tree, -t

reference tree (Newick)

--ref_aln, -r

reference alignment (FASTA). Without it (and without –refpkg) the query alignment must contain every reference sequence

--stats, -s

model: a RAxML 7 info file, a PhyML 3.0 stats file or a JSON model file (as pplacer reads them; gamma rates). A –refpkg phylo_model takes precedence

--ref_dir, -d

directory containing the –tree, –ref_aln and –stats files

--full_model

place with the complete model of an IQ-TREE or RAxML-NG fit instead of the part pplacer reads (results then differ from pplacer). MODEL_FILE: IQ-TREE’s <prefix>.ckp.gz (its <prefix>.iqtree is read too) or RAxML-NG’s <prefix>.raxml.bestModel (its <prefix>.raxml.log is read too); without it, the file next to the –stats .iqtree file or RAxML-NG log

model settings (pplacer’s; used only for what a –stats file does not set)

--model, -m

substitution model name. pplacer v1.1.alpha19 always takes it from the statistics file or the reference package, so this has no effect (accepted for pplacer command lines)

Default: 'LG'

--model_freqs, --model-freqs

protein models from a –stats file: the model’s amino acid frequencies instead of the reference alignment’s

--gamma_cats, --gamma-cats

gamma categories, when the –stats file gives none (PhyML without gamma, JSON with a null ras_model)

Default: 1

--gamma_alpha, --gamma-alpha

gamma shape parameter, when the –stats file gives none

Default: 1.0

pplacer options accepted with no effect

--mmap-file

pplacer’s scratch file for large allocations; gPlace needs none

--verbosity

pplacer’s verbosity level

--timing

pplacer’s timing report (gPlace logs its timings)