A simple Python library for calculating Dissimilarity Overlap Curve and alpha/beta diversity
Project description
DOC analysis
A Python library for calculating Dissimilarity Overlap Curve and alpha/beta diversity for microbiome samples
Installation
pip install DO_analysis
Get started
How to plot DOC curve with this lib:
from DOC_analysis.DOC import DOC_with_plots
#upload ASV or abundance table as data, with columns as samples and rows as taxa
#upload metadata table with information about samples
#let metadata table have column of interest 'Group'
#Then simply run:
DOC_with_plots(data, metadata, 'Group')
Available functions
DOC.DOC_with_plots(data, metadata, feature, num_bins=50, sample_col='Sample') - plots DOC curve for each group and all groups combined
DOC.run_DOC_time(data, metadata, times, feature, time_col='Time', sample_col='Sample') - if you have longitudinal data, it will generate DOC plots across all time points and for each group
diversity.plot_diversity(data, metadata, feature, pairs=None, id_column='Sample', beta_metric="braycurtis", alfa_metric='shannon', plot_alpha=True, plot_beta=True) - to compute and plot alpha and beta diversity metrics
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 DO_analysis-0.1.2.tar.gz.
File metadata
- Download URL: DO_analysis-0.1.2.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90631a20fba3eacc2084a889e6093ea5a44c70779f66abc2a052bc94cc7fa9ff
|
|
| MD5 |
5ecba82dfeea4a68f60803a89b476414
|
|
| BLAKE2b-256 |
a099ad39d3dbf4f3223a2e1615b033c45aa73fe0767be514fb6799c26a2c5042
|
File details
Details for the file DO_analysis-0.1.2-py3-none-any.whl.
File metadata
- Download URL: DO_analysis-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45b2d8b7fa2a9123b30d2871842ddbd2090fcb03707e0fa7c0f374c1e5612c87
|
|
| MD5 |
eb9317cd5f58c270898e2ce0fdaeaf02
|
|
| BLAKE2b-256 |
b55d98b66666f7f04b2b76b80e30bf4bf70f9dda9663ba55980e9037437a13d9
|