A simple python tool for getting bacterial taxonomy and gram stain information from NCBI taxonomy data.
Project description
bactax 0.2.0
A simple python tool for getting bacterial taxonomy and gram stain information from NCBI taxonomy data.
Installation
The most recently released version of bactax can be downloaded with pip:
pip install bactax
Usage
Getting taxonomic information for a bacteria
import bactax
genus = "akkermansia"
taxonomy = bactax.get_taxonomy(genus=genus) # returns a Taxonomy object
This will return a Taxonomy object with all the information above the level of
genus filled in (i.e., family, order, class, etc.).
Determining gram stain
import bactax
genus = "escherichia"
gram_stain = bactax.gram_stain(genus=genus) # returns Gram.NEGATIVE
Updating the taxonomy data
bactax uses data from NCBI's taxonomy database. This data is downloaded and
stored in a gzipped csv within the package. Since NCBI regularly updates their
data, bactax provides a method to download the latest taxonomy database from
NCBI.
import bactax
bactax.update()
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 bactax-0.2.0.tar.gz.
File metadata
- Download URL: bactax-0.2.0.tar.gz
- Upload date:
- Size: 4.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.0 CPython/3.13.2 Darwin/24.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01941aa0d2b5cde96ce604429eaee2d4c138f9e5df5f6097a4c83cba9115e86d
|
|
| MD5 |
9e32126df469b5d7d4ddb9b6c54d3bf0
|
|
| BLAKE2b-256 |
02ed0488f8775464e77c29dc6697a7e2107902ac5004b67b3dad54477f196bd9
|
File details
Details for the file bactax-0.2.0-py3-none-any.whl.
File metadata
- Download URL: bactax-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.0 CPython/3.13.2 Darwin/24.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30cfa5fde56cdb1cd518bfa86763f566d05124e7781c56450ca005bbedbbdf86
|
|
| MD5 |
ce127d4e8abfc8e9903821b445c080e1
|
|
| BLAKE2b-256 |
0e79665a2c8d8d5ffc720e1c25f551554d17cf2ec7046e06a146052fb1dfc5a0
|