Skip to main content

qdiv: Microbial Diversity Analysis Toolkit

qdiv is a Python toolkit for microbial diversity analysis, built around the robust and intuitive Hill number framework.


Features

  • Data Management: Load and validate data from multiple formats (CSV/TSV, FASTA, Newick). Functions for subsetting, rarefaction, merging, renaming, tree pruning, and more.

  • Diversity analysis: Compute multiple alpha and beta diversity metrics based on the Hill number framework.

  • Statistical methods: Integrate diversity metrics using the Hill number framework into null models (Raup–Crick, NRI, NTI), ordinations (PCoA, db-RDA), PERMANOVA, and Mantel tests.

  • Visualization: Heatmaps, ordinations, and diversity plots, and more.


Installation

pip install qdiv

Optional acceleration (Numba)

Some functions in the sequence_comparisons module support compilation via Numba. Installing qdiv with the optional accelerate extra enables faster sequence distance computations.

pip install qdiv[accelerate]

Documentation

Full documentation is available at: https://qdiv.readthedocs.io


Licence

From version 4.0.0, qdiv is licensed under the https://opensource.org/licenses/BSD-3-Clause. Previous versions were released under the GNU General Public License v3.0 (GPL-3.0).

Contributing

Contributions are welcome! Please read the CONTRIBUTING.md for details on:

  • How to report bugs
  • How to request new features
  • How to submit pull requests

Support

If you need help with qdiv:

  • Browse existing issues
  • If needed, open a support issue. See SUPPORT.md.

Code of Conduct

To ensure a welcoming environment, this project follows the standards outlined in the CODE_OF_CONDUCT.md. All contributors are expected to uphold this code.

Citation

If you use qdiv in your research, please cite:

Modin. (2026). qdiv: A Python package for microbial ecology analysis using the Hill number framework. Journal of Open Source Software, 11(121), 10089. https://doi.org/10.21105/joss.10089.

Download the citation here:

CITATION.cff

Download files

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

Source Distribution

qdiv-4.1.1.tar.gz (681.4 kB view details)

Uploaded Source

Built Distribution

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

qdiv-4.1.1-py3-none-any.whl (711.4 kB view details)

Uploaded Python 3

File details

Details for the file qdiv-4.1.1.tar.gz.

File metadata

  • Download URL: qdiv-4.1.1.tar.gz
  • Upload date:
  • Size: 681.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for qdiv-4.1.1.tar.gz
Algorithm Hash digest
SHA256 25ba6f91031703c078c3d3ad81819a05ea4d78ad1947cb44ed9d488b84227b86
MD5 47177d352657e1ed8a5b506aa2d511af
BLAKE2b-256 a832d1b4f0039c7d5df569c159a85b4a41634d912c344fa05152d7278091c82d

See more details on using hashes here.

File details

Details for the file qdiv-4.1.1-py3-none-any.whl.

File metadata

  • Download URL: qdiv-4.1.1-py3-none-any.whl
  • Upload date:
  • Size: 711.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for qdiv-4.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e5063124124f24a6df43e0dd3670b286014bebd4347c9646d93eced08b9b1249
MD5 6cc3a482da79b402f08c06ab7b253f86
BLAKE2b-256 944f34fb4b6db3ff62829eccfc8686752222b1e6f5ba123ccfdc96b3791ba12d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

4.1.1 This release

2 files

4.1.0

2 files

4.0.6

2 files

4.0.5

2 files

4.0.4

2 files

4.0.3

2 files

4.0.2

2 files

4.0.1

2 files

4.0.0

2 files

3.0.3

1 file

3.0.2

1 file

3.0.1

1 file

3.0.0

1 file

2.2.1

1 file

2.2.0

1 file

2.1.2

1 file

2.1.1

1 file

2.1.0

1 file

2.0.3

1 file

2.0.2

1 file

2.0.1

1 file

2.0.0

1 file

1.3.3

1 file

1.3.2

1 file

1.3.1

1 file

1.3.0

1 file

1.2

1 file

1.1

1 file

1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page