https://github.com/poeli/detaxa
A flexible, adaptable, and well-defined python package for taxonomy and accession number lookup.
https://github.com/poeli/detaxa
bioinformatics-tool taxonomy taxonomy-management
Last synced: 6 months ago
JSON representation
A flexible, adaptable, and well-defined python package for taxonomy and accession number lookup.
- Host: GitHub
- URL: https://github.com/poeli/detaxa
- Owner: poeli
- License: gpl-3.0
- Created: 2022-09-20T17:20:14.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-03T23:11:46.000Z (7 months ago)
- Last Synced: 2025-04-04T00:22:02.408Z (7 months ago)
- Topics: bioinformatics-tool, taxonomy, taxonomy-management
- Language: Python
- Homepage: https://github.com/poeli/detaxa/wiki
- Size: 313 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/marbl/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:
```python
#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:
```sh
$ detaxa query -i 2697049
```## Acknowledgement
Part of the codes are inspired and ported from Krona taxonomy tool written in Perl.