Skip to content

list, lookup, lineage, search, link, translate

omnitax list                                      [WHERE]
omnitax lookup    ID_OR_NAME...                   [WHERE]
omnitax lineage   ID... [--standard]              [WHERE]
omnitax search    TEXT [--match exact|prefix|substring|fuzzy] [--rank RANK] [--class CLASS]... [--within ID] [--limit N]   [WHERE]
omnitax link      KEY... [--kind KIND] [--gca-gcf] [--source LABEL]...   [WHERE]
omnitax translate ID... --to NAME [--weight leaf|genome] [--cap] [--gca-gcf] [--source LABEL]... [--to-source LABEL]... [--via KIND]... [--ranks RANKS|gtdb] [--exclude IDS|uninformative]... [--formal] [--details] [--threshold T | --top P] [--min-informative F|off]  [WHERE]

Questions about taxonomies in a file made by build (no server needed) or on a running omnitax serve. Output is tab-separated with a header line; every query is answered, and one with no answer is reported on stderr (not found: QUERY) and makes the exit status 1, as does any other error (omnitax: error: ... on stderr, nothing else on one line); wrong options give 2.

  • list: the taxonomies there: taxonomy (kind:version), nodes, names, aliases, links, link_sources (label=links, comma separated, in the order they were built), fuzzy, built, omnitax (the version that built it) and files (how many source files are recorded). --json prints the full entries as JSON: for each file its URL or path, size, sha256 and whether it matched the publisher's checksum (see provenance).
  • lookup: each argument is an id (an old, merged id gives the current node) or an exact name, synonyms included. Columns: id, name, rank, parent.
  • lineage: the lineage of each id, root first: query, id, name, rank. --standard gives one line per standard rank (domain to species), empty where the lineage has none.
  • search: autocomplete: names that equal TEXT and, by --match, that start with it or have a word that does (prefix, the default: sapiens finds Homo sapiens, e. coli Escherichia coli), contain it (substring) or resemble it (fuzzy, tolerating typos such as escherichia colli), best first (the ranking). The output has the matched name and its class besides the taxon; --rank species keeps one rank and --class name (repeatable) only names of that class; --within ID only the node and its descendants (name is the scientific name; the available ones are in the error of an unknown one). Without --class, authorities (Name Author, 1870) only match exactly. A trailing space ends the last word.
  • link: taxa by key: genomes by accession by default (GCF_000005845.2, RS_GCF_..., any case: the key asked, the accession it found, the source, and id, name, rank of the taxon and the link_name (the organism)). An accession finds the genome stored under it, else the only stored version of its number (so GCF_000005845 finds GCF_000005845.2); with several versions it is ambiguous and the candidates are reported on stderr (exit 1, as for unknown accessions). GCA_ and GCF_ accessions are different genomes unless --gca-gcf says they are one. A taxonomy whose genome links come from several sources (ncbi+assemblies+gtdb:232) finds the genome when they agree and is ambiguous when they disagree; --source LABEL uses only that source (repeat it for a list in order of precedence, the first that has the genome wins) and the output names the source of the link. omnitax list shows the sources and their link counts. Other kinds with --kind (links): seq (sequence accessions, with or without a region ACC.start.stop), or the kind of a taxonomy (--kind ncbi 562: the taxonomy's own ids, merged ones reaching their current node, source identity; no --source, no --gca-gcf).
  • translate: the node of another taxonomy of the same file or server that holds the same genomes: --to ncbi. The method, the defaults and the benchmark are on the translation page. Options:
  • --threshold T (default 0.9) or --top SHARE (multitax's rule; not both).
  • --min-informative F|off (default 0.2 for GTDB → NCBI, off for every other conversion): abstention of votes above a node. --top has none.
  • --weight leaf|genome (default leaf): every source leaf votes once, or every genome.
  • --cap: never answer finer than the source node.
  • --ranks RANK,...|gtdb|none: lift the answer to the closest of these ranks, and (with abstention) lift informal species to them; gtdb is domain,phylum,class,order,family,genus,species; none turns the ladder off. Default: gtdb for GTDB → NCBI, no ladder for every other conversion.
  • --exclude ID,...|uninformative|none (repeatable): ids of the taxonomy translated into whose members do not vote; uninformative is that taxonomy's own list (NCBI: unclassified, other, environmental samples); none excludes nothing. Default: uninformative for GTDB → NCBI, nothing for every other conversion.
  • --formal: skip informally named species when lifting the answer.
  • --details: adds support (the weight at or below the answer) and total (the weight that counted).
  • --gca-gcf, --via KIND, --source, --to-source: which keys join the two taxonomies, and which link sources count.

The defaults are those of the conversion, measured for GTDB 232 → NCBI only (the command and Python have the same ones). Both taxonomies need genome links (see build); SILVA, Greengenes2 and Open Tree have none. For GTDB → NCBI the ladder and the exclusion are part of the measured configuration: with --ranks none --exclude none --min-informative off, a clade such as GTDB's Arenimonas comes out as Gammaproteobacteria where the defaults give Arenimonas (details).

omnitax lookup --db taxonomies.sqlite -t ncbi 562 "Homo sapiens"
omnitax lineage --db taxonomies.sqlite -t gtdb:232 --standard g__Escherichia
omnitax search --url https://omnitax.example.org -t ncbi --match fuzzy --rank species "bacilus subtilis"
omnitax translate --db taxonomies.sqlite -t gtdb:232 --to ncbi --ranks gtdb --exclude uninformative "s__Escherichia coli"

Where WHERE is

Option Meaning
--db FILE a taxonomy file on this machine, as omnitax build makes it: read directly, no server needed. It is an option, not an argument: omnitax list taxonomies.sqlite is refused with a hint (did you mean --db taxonomies.sqlite?). A directory or another kind of file is an error that says so
--socket PATH the Unix socket of a server
--tcp HOST:PORT the address of a server
--url URL the base URL of a server, http:// or https://, optionally with a path prefix
-t, --taxonomy NAME kind (its newest version) or kind:version; not needed when there is only one [$OMNITAX_TAXONOMY]
--timeout SECONDS read timeout of a request [none]; connecting always times out after 30 s
--path-prefix PATH the path the server's routes are mounted under, e.g. /taxonomy, after the path of --url (see serve)
--retries N send a request again, up to N times, when the server answers 429 or 503, after its Retry-After (at least 1, 2, 4... s, at most 30 s) [0]

--db, --url, --tcp and --socket are mutually exclusive. Without one, the environment decides, in this order:

  1. $OMNITAX_DB, a file
  2. $OMNITAX_URL
  3. $OMNITAX_SOCKET
  4. the default socket: $XDG_RUNTIME_DIR/omnitax.sock, else /tmp/omnitax-$UID.sock

An empty variable counts as unset. --url also accepts a bare host:port (http:// is assumed) and a path prefix (https://api.example.org/omnitax), which is kept for every request; a URL must not contain a query or a fragment. TLS certificates are verified normally.