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
Hashes for DO_analysis-0.1.2a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dba7287c88af7f049f3cf7f08849187984d6913e896a5ba5f886d4c54f257dc0 |
|
MD5 | 5d2d79fa203f8679ccf66291a892dcaf |
|
BLAKE2b-256 | d182a1f80f8458654d3b04e128f4f7b0fd365880fa7e1238fac2757878364082 |