NCBI taxonomy and lineage lookup
Project description
DeTaxa
The goal of this python package is to offer a flexible, adaptable, and well-defined solution for taxonomy and accession number lookup. DeTaxa empowers users to seamlessly integrate their self-defined taxonomies into existing taxonomy systems. This library readily accommodates a range of widely used taxonomic systems, including NCBI taxonomy, EBI MGnify lineage, and GTDB taxonomy. By utilizing DeTaxa, users have the ability to create and import their customized taxonomies complete with lineages into their preferred taxonomic system. DeTaxa maintains compatibility with taxonomy files produced by Krona (Ondov et. al., 2011).
Installation
Use python setup-tool or pip to install this package:
python setup.py install
or
pip install .
(Optional) You can run detaxa update to download current taxanomy file from NCBI.
Usage
Use as a python module:
#import taxonomy as module
import detaxa.taxonomy as t
#load taxonomy info
t.loadTaxonomy()
#convert taxid to name
name = t.taxid2name(tid)
or, run as a standalone converter:
$ detaxa query -i 2697049
Acknowledgement
Part of the codes are inspired and ported from Krona taxonomy tool written in Perl.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file detaxa-0.6.1.tar.gz.
File metadata
- Download URL: detaxa-0.6.1.tar.gz
- Upload date:
- Size: 28.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41097f8988e904a62e8a4c007e032a7126f6fdce7ced479552486d8d12ae3761
|
|
| MD5 |
a6ca3a1022256c81b77f04fe15c3659a
|
|
| BLAKE2b-256 |
57cd3676d7db12efe34108877ce6f74046842420a51d6faf0df725afd4eceb24
|
File details
Details for the file detaxa-0.6.1-py3-none-any.whl.
File metadata
- Download URL: detaxa-0.6.1-py3-none-any.whl
- Upload date:
- Size: 26.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0875c42e7ee2a2065fd339d2eedc08ceae2855562bde1516a2ff9dbfef3dce7
|
|
| MD5 |
293dbd7441be92bc2e9d5e28b037adb4
|
|
| BLAKE2b-256 |
5a15583e9cedd5fdb9dcafc0c33b2c79f5ad335d8bdbf29692dc61e4db7d6276
|