Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Set up the reference data

Use database management to install a trusted version once, then select it when classifying assemblies. The installer accepts local archives and supports catalogue-pinned HTTPS downloads. This build pins the published 2026-10-15 database; run ptero database install 2026-10-15 to install its sketches, genome FASTAs and MLST scheme.

If you already have unpacked reference directories and their trusted manifest hashes, you can use them directly as shown below.

Keep the directory intact. Before analysis, the program checks the manifest against the supplied digest, then verifies its listed files and metadata. It checks the package again before publishing results. A checksum computed from an untrusted download does not establish the package’s origin.

Use the supplied directory

Set these shell variables to the path and digest in your trusted handoff:

REFERENCE_PACKAGE=/path/to/reference
REFERENCE_SHA256=THE_TRUSTED_PORTABLE_JSON_SHA256
ANIM_REFERENCE_PACKAGE=/path/to/reference-fastas
ANIM_SHA256=THE_TRUSTED_ANIM_JSON_SHA256

Replace these placeholders with the two directories and their supplied digests. These variables are shell conveniences for the explicit-directory workflow; pass them with each invocation:

ptero --no-mlst --reference-package "$REFERENCE_PACKAGE" --expected-sha256 "$REFERENCE_SHA256" \
  --anim-reference-package "$ANIM_REFERENCE_PACKAGE" --expected-anim-sha256 "$ANIM_SHA256" \
  --anim-output isolate-alignments \
  --output isolate.json --report-dir isolate-report isolate.fa

This explicit-path example skips MLST. To include it, omit --no-mlst and supply the MLST package and digest.

Reuse the same package for another assembly or batch. Do not move output files into the reference directory. The coverage guide describes which names and groups it represents.

Alignment references and MLST

The default analysis starts with skani and adds MUMmer4 alignments for eligible borderline queries. Supply the matching whole-assembly reference FASTA directory and its trusted anim.json digest so those comparisons can run. The command reference gives the complete invocation. A query that needs alignments fails with an incomplete report if this component is absent; it never silently switches to skani-only classification. To choose skani only, add --no-anim and omit --anim-reference-package, --expected-anim-sha256 and --anim-output.

Managed database installation includes MLST, and typing runs by default. Use --no-mlst on installation or classification to opt out. An explicit scheme directory and trusted manifest.json digest are also supported. Follow MLST setup. Typing does not change classification.

Once the executable and required components are installed, classification is offline. Use ptero database list to inspect installed versions and ptero database verify VERSION to recheck their contents.