mmm4microbiome
mmm4microbiome is the microbiome layer on top of stripesankey (>= 0.4.1). mmm4microbiome reads the output of stripesankey and makes interpretation plots for microbiome data analysis.
Install
pip install mmm4microbiome # with pip
uv add mmm4microbiome # with uv
Input: a stripesankey base folder
Everything takes a base folder written by stripesankey:
import stripesankey as ss
ss.prepare(base, counts, feature_annotation, metadata, level="Genus")
ss.sweep(base, k_range=range(2, 11))
Use
import mmm4microbiome as mmm
# the sweep, with captions like "MC3 · Prevotella"
mmm.stripesankey_mb(base, metadata_df=meta, hover_field="METADATA_COLUMN")
mmm.metasankey_mb(base, metadata_df=meta, hover_field="METADATA_COLUMN")
# one k, sample by sample
mmm.heatmap_sample(base, 5, metadata_df=meta, include=["METADATA_COLUMN"])
mmm.bar_sample(base, 5, metadata_df=meta, sort="METADATA_COLUMN")
# what the MCs are made of
mmm.heatmap_mc(base, 5, feature_level="Family")
# everything in one self-contained HTML page: base/visualization/onestop_app.html
mmm.onestop(base, meta)
Taxonomic levels
The fit level is what prepare(level=) collapsed the counts to. The
display level (feature_level=) is what a figure names. By default it is
the fit level, except that an ASV (or Species) fit is shown at Genus. A coarser
level sums the probabilities of its child taxa; a level finer than the fit
cannot be recovered and falls back to the fit level with a warning.
License
MIT
Metadata
Release files for mmm4microbiome 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mmm4microbiome-0.1.0.tar.gz | 61.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mmm4microbiome-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 124.1 kB
Release files / mmm4microbiome-0.1.0.tar.gz
| Download URL | mmm4microbiome-0.1.0.tar.gz |
|---|---|
| Size | 61.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b6d024802f8ce43e3cb710832523748c34b5551d0327037244bc534fdb1e414
|
|
BLAKE2b-256 checksum How to use checksums |
60ab50e8b61edde09fe5d55a8ff746edfabbba58db07e3af67a148f045a8ab1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.4
|
Release files / mmm4microbiome-0.1.0-py3-none-any.whl
| Download URL | mmm4microbiome-0.1.0-py3-none-any.whl |
|---|---|
| Size | 62.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ee438f58eaa6bebda1b104388cbc13f5358d20a5397adbabe22021af9227b8f
|
|
BLAKE2b-256 checksum How to use checksums |
00d2012d8676a8299e74d048feafaec9bfce2d5a50e20ce8ed6216ddb068e6c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.4
|
Security for mmm4microbiome 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.