Skip to main content

Salamander

Python versions supported License Code style

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.

Metadata

Release files for salamander-learn 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for salamander-learn 0.4.2
File Size Uploaded Provenance Actions
salamander_learn-0.4.2.tar.gz 33.3 kB Without provenance Details for salamander_learn-0.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for salamander-learn 0.4.2
File Interpreter ABI Platform Actions
salamander_learn-0.4.2-py3-none-any.whl Python 3 none any Details for salamander_learn-0.4.2-py3-none-any.whl

Total release size: 75.6 kB

Release files / salamander_learn-0.4.2.tar.gz

Download URL salamander_learn-0.4.2.tar.gz
Size 33.3 kB
Tags Source
SHA-256 checksum
How to use checksums
38cdbd92e8f867b55139d0d2a6fa35951c2b6a1e3f033e5ec6e9a8f78ea350a2
BLAKE2b-256 checksum
How to use checksums
34de6b6616517f62d55858640bc7c3e22715081ae30b1f37bae5ca95ee77a1b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-119-generic

Release files / salamander_learn-0.4.2-py3-none-any.whl

Download URL salamander_learn-0.4.2-py3-none-any.whl
Size 42.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8adf784f38348f01f0c3813fde58f16f4ce46716d59b0d9ae8de6abdb15cd25
BLAKE2b-256 checksum
How to use checksums
c5cf32123b441c51145612e07fa768553f0c2cd61b1702ce59fbf9dad83fde21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-119-generic

Security for salamander-learn 0.4.2

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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