Files
Eric Coissac 42d5b881ec refactor: rename obikmer to obiskim
Rename the `obikmer` binary, crate, and documentation to `obiskim`. This change updates all references in source code, build scripts, CI workflows, and user documentation to reflect the new tool name.

- Move `src/obikmer` to `src/obiskim`, renaming the package and binary in `Cargo.toml` and updating `main.rs` and `cli.rs` to use the new name.
- Update `src/Cargo.toml` and `src/Cargo.lock` to replace the `obikmer` workspace member with `obiskim`.
- Update `Makefile` targets (`build`, `release`, `debug`, `profile-build`) and variables (`CARGO_TOML`, `bump-version`) to build and manage `obiskim`.
- Update `.gitea/workflows/release.yml` to build and upload `obiskim` artifacts for Linux and macOS.
- Rename all files in `src/obiskim/src/cmd/` from `obikmer` to `obiskim` paths, updating error messages and help text in `index/mod.rs`, `phylo/args/mod.rs`, and `phylo/tnt.rs`.
- Update documentation in `UserDocMD/` (including `index.md`, `installation.md`, `architecture.md`, and usage guides) to reference `obiskim` commands and behavior.
- Update `benchmark/` scripts and Python verification tools to use `obiskim` binary paths and arguments.
- Update `scripts/` (including `smoke_test_*.sh`, `bench_merge_oracle.sh`, and Docker debug scripts) to test and build `obiskim`.
- Update comments and error messages in library crates (`obicompactvec`, `obifastwrite`, `obikentropy`, `obikfilter`, `obikindex`, `obikindexer`, `obikphylo`, `obikselect`, `obikseq`, `obiread`, `obisys`) to reference `obiskim`.
2026-12-01 18:15:13 +01:00

2.1 KiB

Genome predicates and taxonomy paths

Several commands (filter, select, dump, unitig) select or group genomes using the same predicate language over genome metadata (see annotate for attaching metadata to a genome).

Predicate syntax

Form Meaning
* or all Matches every genome (case-insensitive)
key=v1|v2 Genome's key metadata equals one of the listed values
key!=v Genome's key metadata does not equal v
key~path Genome's key metadata (a taxonomy path) matches path (ancestry match)
key!~path Genome's key metadata does not match path

A genome whose metadata does not contain key at all cannot be classified by that predicate and is excluded from the relevant group's quorum count.

Multiple --ingroup predicates are combined with AND; multiple --outgroup predicates are combined with OR. When both an ingroup and an outgroup predicate would match the same genome, ingroup classification wins.

Taxonomy paths

A metadata value is treated as a taxonomy path when it starts with the literal prefix taxonomy:/; any other value is treated as a plain string and only supports =/!=.

taxonomy:/segment1@rank1/segment2@rank2/...

Each segment is a name, optionally annotated with a rank (e.g. @family, @genus, @species); ranks are optional and can be mixed within a path. The @ character is reserved inside taxonomy paths and cannot appear in segment names or rank labels.

Path matching (~ / !~)

Matching compares segment names only (ranks are informational, not part of the match), with anchoring controlled by leading/trailing /:

Pattern Matches
A/B anywhere in the path
/A/B at the start of the path (prefix)
A/B$ at the end of the path (suffix)
/A/B$ the entire path (exact)

A rank-qualified query, key@rank=value, matches only when the path's segment at that specific rank equals value.

Example

obiskim filter source -o output --ingroup "taxon~/Betulaceae/Betula"