Salamander is a non-negative matrix factorization framework for signature analysis
Project description
Salamander
Salamander is a non-negative matrix factorization (NMF) framework for signature analysis build on top of AnnData and MuData. It implements multiple NMF algorithms, common visualizations, and can be easily customized & expanded.
Installation
PyPI:
pip install salamander-learn
Usage
The following example illustrates the basic syntax:
import anndata as ad
import salamander as sal
# initialize data
adata = ad.AnnData(...)
# NMF with Poisson noise
model = sal.models.KLNMF(n_signatures=5)
model.fit(adata)
# barplot
model.plot_signatures()
# stacked barplot
model.plot_exposures()
# signature correlation
model.plot_correlation()
# sample_correlation
model.plot_correlation(data="samples")
# dimensionality reduction of the exposures
model.plot_embeddings(method="umap")
For examples of how to customize any NMF algorithm and the plots, check out the tutorial. The following algorithms are currently available:
License
MIT
Changelog
Consult the CHANGELOG file for enhancements and fixes of each version.
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
salamander_learn-0.4.2.tar.gz
(33.3 kB
view hashes)
Built Distribution
Close
Hashes for salamander_learn-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8adf784f38348f01f0c3813fde58f16f4ce46716d59b0d9ae8de6abdb15cd25 |
|
MD5 | 0f2404cd7152524ed01136bfaa2ea7ce |
|
BLAKE2b-256 | c5cf32123b441c51145612e07fa768553f0c2cd61b1702ce59fbf9dad83fde21 |