Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bactax-0.2.0.tar.gz (4.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bactax-0.2.0-py3-none-any.whl (4.9 MB view details)

Uploaded Python 3

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

Hashes for bactax-0.2.0.tar.gz
Algorithm Hash digest
SHA256 01941aa0d2b5cde96ce604429eaee2d4c138f9e5df5f6097a4c83cba9115e86d
MD5 9e32126df469b5d7d4ddb9b6c54d3bf0
BLAKE2b-256 02ed0488f8775464e77c29dc6697a7e2107902ac5004b67b3dad54477f196bd9

See more details on using hashes here.

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

Hashes for bactax-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30cfa5fde56cdb1cd518bfa86763f566d05124e7781c56450ca005bbedbbdf86
MD5 ce127d4e8abfc8e9903821b445c080e1
BLAKE2b-256 0e79665a2c8d8d5ffc720e1c25f551554d17cf2ec7046e06a146052fb1dfc5a0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page