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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ann_nmf-0.0.1.tar.gz | 10.2 kB | Without provenance | Details for ann_nmf-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ann_nmf-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for ann_nmf-0.0.1-py3-none-any.whl |
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
|
Security for ann-nmf 0.0.1
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.