Skip to main content

ann_nmf - AnnData wrapper of the ARD-NMF module from SignatureAnalyzer

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ann_nmf-0.0.1.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

ann_nmf-0.0.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file ann_nmf-0.0.1.tar.gz.

File metadata

  • Download URL: ann_nmf-0.0.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for ann_nmf-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0c9e960f54384d58f3de95262f71af3ec0463d9daa981cd6e9bd925e7f8dc1a9
MD5 9d67c60f8774297798b42825ba475a02
BLAKE2b-256 56c03ef5df311541e06f786c36d7ee8ab6229c99792cf15c1ba5d69de354662e

See more details on using hashes here.

File details

Details for the file ann_nmf-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ann_nmf-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for ann_nmf-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd2f2f4e43c931dd860c26de63c6d4ef2e68987b444dcf113164cda5d63bd6c3
MD5 e9dc599bd2a6ffa5749087ae06111302
BLAKE2b-256 d01ca442b1760e37cd543d7df98f7af8164b3641a4f62d179392d81b89a7ac00

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page