NCBI taxonomy¶
A sylphd server can serve the NCBI and GTDB taxonomies with omnitax, at
/taxonomy. sylphd.taxonomy() (from pip install 'sylphd[client]') connects to it:
import sylphd
ncbi = sylphd.taxonomy("ncbi") # or url="https://sylphd.abrinca.com"
ncbi["562"].name # 'Escherichia coli'
ncbi["562"].lineage_string() # 'd__Bacteria;p__Pseudomonadota;...;s__Escherichia coli'
The server is found as for the command line (server address: url=, socket=,
$SYLPHD_URL, $SYLPHD_SOCKET, the default socket), and the result is a plain omnitax.Taxonomy. The same
with the omnitax command line:
A privileged token lifts the rate limit: token_file=... (or
$SYLPHD_TOKEN), and --header "Authorization: Bearer ..." for omnitax.
Serving it¶
omnitax build -o taxonomies.sqlite ncbi+assemblies+gtdb:232 gtdb:232
sylphd serve --db ... --taxonomy-db taxonomies.sqlite
The same file is what sylphd setup --taxonomy-db reads.
Everything else (search, consensus, translate, other taxonomies, building files) is in the omnitax documentation.