Skip to main content

ann_nmf.logo

PyPI pyversions PyPI version Code style: black

AnnData wrapper of the ARD-NMF module from SignatureAnalyzer-GPU.

Installation

Install using pip

pip install ann_nmf

Alternatively, install the development version:

git clone https://github.com/mvinyard/ann_nmf.git; cd ann_nmf;
pip install -e .

API overview

Import libraries and get some data

import ann_nmf
import scanpy as sc

adata = sc.datasets.pbmc3k()
ann_nmf.ut.preprocess_raw_counts(adata)

Key class:

nmf = ann_nmf.NMF(adata, outdir="nmf_results/pbmc3k") # saves .h5 file
nmf.run(n_runs=10, K0=20, max_iter=2000)

SignatureAnalyzer visualization:

nmf.cluster()
nmf.signatures()

Conceptual background and foundational work

Acknowledgements

  • Most of the code to wrap SignatureAnalyzer in an AnnData-friendly API was borrowed directly (and shamelessly) from Shankara Anand (@shankara-a) with only slight refactoring for more flexibility with fewer dependencies on install.

Metadata

Release files for ann-nmf 0.0.1

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

Source distribution (sdist)

Source distribution for ann-nmf 0.0.1
File Size Uploaded
ann_nmf-0.0.1.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ann-nmf 0.0.1
File Interpreter ABI Platform
ann_nmf-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 23.2 kB

Release files / ann_nmf-0.0.1.tar.gz

Download URL ann_nmf-0.0.1.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0c9e960f54384d58f3de95262f71af3ec0463d9daa981cd6e9bd925e7f8dc1a9
BLAKE2b-256 checksum
How to use checksums
56c03ef5df311541e06f786c36d7ee8ab6229c99792cf15c1ba5d69de354662e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Release files / ann_nmf-0.0.1-py3-none-any.whl

Download URL ann_nmf-0.0.1-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd2f2f4e43c931dd860c26de63c6d4ef2e68987b444dcf113164cda5d63bd6c3
BLAKE2b-256 checksum
How to use checksums
d01ca442b1760e37cd543d7df98f7af8164b3641a4f62d179392d81b89a7ac00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

0.0.0

2 release files

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