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.0.6.tar.gz (675.0 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.0.6-py3-none-any.whl (705.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qdiv-4.0.6.tar.gz
  • Upload date:
  • Size: 675.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for qdiv-4.0.6.tar.gz
Algorithm Hash digest
SHA256 c53ff544e907084207a389cac55770a47b1aa50a99e766ab5ef500190ad683ca
MD5 60a52b9b2f4564bb219ee001ec43c6e4
BLAKE2b-256 7143e438b31e6ca9fcd5ca67717d840932d279824835eec21cbdf18a5db0c364

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qdiv-4.0.6-py3-none-any.whl
  • Upload date:
  • Size: 705.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for qdiv-4.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9e7c02fafb8d242fd840ca3973dda4a54009be962e9dddd5de164196a3d8f196
MD5 cd49fc566fbe4d43124eced93502c127
BLAKE2b-256 239c6f7d02554ca12979f089e4137a884e54268e970f6dcd16b632b954274694

See more details on using hashes here.

Release history Release notifications | RSS feed

4.1.1

2 files

4.1.0

2 files

This release

4.0.6 This release

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