GPU-accelerated PhenoGraph
Project description
grapheno
A GPU-accelerated implementation of PhenoGraph using NVIDIA RAPIDS for fast single-cell phenotyping.
Installation
Install RAPIDS into new environment:
$ conda create -n rapids-21.12 -c rapidsai-nightly -c nvidia -c conda-forge rapids=21.12 python=3.8 cudatoolkit=11.2
Install grapheno:
$ pip install grapheno
(Optional) Install holoviews for visualization:
$ conda install -c pyviz holoviews bokeh
Usage
import cudf
import cuml
import grapheno
X, _ = cuml.make_blobs(n_samples=100000,n_features=20,centers=5)
X = cudf.DataFrame.from_records(X)
communities, G, Q = grapheno.cluster(X)
Benchmarking
See benchmark.ipynb for comparisons between grapheno (GPU) and phenograph (CPU) and to regenerate the figures below.
GPU is orders of magnitude faster than CPU at large data scales. Mean points and error bars are from three replicates:
Modularity is comparable between GPU and CPU implementations. t-SNE embeddings of simulated data colored by cluster label:
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
Built Distribution
File details
Details for the file grapheno-0.0.5.tar.gz
.
File metadata
- Download URL: grapheno-0.0.5.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a21c13c93d9331cc7844ad64571b1367eb763efec51d331757624c454015b59 |
|
MD5 | 6c56cd2c78977dbe98511bf564fdbe6b |
|
BLAKE2b-256 | 95f3f7a5c538f736cb632c8f16dcf4b156876fdea00dfa84a4cbd7aaadd1e7cd |
File details
Details for the file grapheno-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: grapheno-0.0.5-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0ae59e33a69c35fa6d878617cc495e6ed2c6e0209a40b4256cc2ab9941334a6 |
|
MD5 | f86601cfb3991a09b11f89c13bc34223 |
|
BLAKE2b-256 | 9f2d01598e00a358b54fef9fb5f80f0c01156145b874be07355d14d93ae49312 |