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) andfiles(how many source files are recorded).--jsonprints 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.--standardgives one line per standard rank (domain to species), empty where the lineage has none.search: autocomplete: names that equalTEXTand, by--match, that start with it or have a word that does (prefix, the default:sapiensfinds Homo sapiens,e. coliEscherichia coli), contain it (substring) or resemble it (fuzzy, tolerating typos such asescherichia colli), best first (the ranking). The output has thematchedname and itsclassbesides the taxon;--rank specieskeeps one rank and--class name(repeatable) only names of that class;--within IDonly the node and its descendants (nameis 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: thekeyasked, the accession itfound, thesource, andid,name,rankof the taxon and thelink_name(the organism)). An accession finds the genome stored under it, else the only stored version of its number (soGCF_000005845findsGCF_000005845.2); with several versions it is ambiguous and the candidates are reported on stderr (exit 1, as for unknown accessions).GCA_andGCF_accessions are different genomes unless--gca-gcfsays 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 LABELuses only that source (repeat it for a list in order of precedence, the first that has the genome wins) and the output names thesourceof the link.omnitax listshows the sources and their link counts. Other kinds with--kind(links):seq(sequence accessions, with or without a regionACC.start.stop), or the kind of a taxonomy (--kind ncbi 562: the taxonomy's own ids, merged ones reaching their current node, sourceidentity; 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.--tophas none.--weight leaf|genome(defaultleaf): 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;gtdbisdomain,phylum,class,order,family,genus,species;noneturns the ladder off. Default:gtdbfor GTDB → NCBI, no ladder for every other conversion.--exclude ID,...|uninformative|none(repeatable): ids of the taxonomy translated into whose members do not vote;uninformativeis that taxonomy's own list (NCBI: unclassified, other, environmental samples);noneexcludes nothing. Default:uninformativefor GTDB → NCBI, nothing for every other conversion.--formal: skip informally named species when lifting the answer.--details: addssupport(the weight at or below the answer) andtotal(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:
$OMNITAX_DB, a file$OMNITAX_URL$OMNITAX_SOCKET- 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.