Skip to main content

Stars PyPI PyPIDownloads Documentation Status

rapids-singlecell

Background

This repository offers some tools to make analyses of single cell datasets faster by running them on the GPU. The functions are analogous versions of functions that can be found within scanpy from the Theis lab or functions from rapids-single-cell-examples created by the Nvidia RAPIDS team. Most functions are kept close to the original code to ensure compatibility. My aim with this repository was to use the speedup that GPU computing offers and combine it with the ease of use from scanpy.

News

I'm very honored to announce that I was invited to co-author a technical blog post that demonstrates the capabilities and performance of rapids-singlecell for NVIDIA. You can read through the blog here.
As always, your thoughts and feedback are valued, as they contribute to the ongoing refinement and development of rapids-singlecell.

Installation

Conda

The easiest way to install rapids-singlecell is to use one of the yaml file provided in the conda folder. These yaml files install everything needed to run the example notbooks and get you started.

conda env create -f conda/rsc_rapids_23.04.yml
# or
mamba env create -f conda/rsc_rapids_23.06.yml

PyPI

As of version 0.4.0 rapids-singlecell is now on PyPI.

pip install rapids-singlecell

The default installer doesn't cover RAPIDS nor cupy. Information on how to install RAPIDS & cupy can be found here.

If you want to use RAPIDS new PyPI packages, the whole library with all dependencies can be install with:

pip install 'rapids-singlecell[rapids]' --extra-index-url=https://pypi.nvidia.com

Please note that the RAPIDS PyPI packages are still considered experimental. It is important to ensure that the CUDA environment is set up correctly so that RAPIDS and Cupy can locate the necessary libraries.

To view a full guide how to set up a fully functioned single cell GPU accelerated conda environment visit GPU_SingleCell_Setup

Documentation

Please have a look through the documentation

Citation

If you use this code, please cite: DOI

Please also consider citing: rapids-single-cell-examples and scanpy

In addition to that please cite the methods' original research articles in the scanpy documentation

If you use the accelerated decoupler functions please cite decoupler

Notebooks

To show the capability of these functions, I created two example notebooks evaluating the same workflow running on the CPU and GPU. These notebooks should run in the environment, that is described in Requirements. First, run the data_downloader notebook to create the AnnData object for the analysis. If you run both demo_cpu and demo_gpu you should see a big speedup when running the analyses on the GPU.

Metadata

Release files for rapids-singlecell 0.7.5

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

Source distribution (sdist)

Source distribution for rapids-singlecell 0.7.5
File Size Uploaded Provenance Actions
rapids_singlecell-0.7.5.tar.gz 58.2 kB Without provenance Details for rapids_singlecell-0.7.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rapids-singlecell 0.7.5
File Interpreter ABI Platform Actions
rapids_singlecell-0.7.5-py3-none-any.whl Python 3 none any Details for rapids_singlecell-0.7.5-py3-none-any.whl

Total release size: 129.5 kB

Release files / rapids_singlecell-0.7.5.tar.gz

Download URL rapids_singlecell-0.7.5.tar.gz
Size 58.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ebf8b505b7602bd3f775d01bc31ebcbfb001188f06efe06d14a6ad39485ae498
BLAKE2b-256 checksum
How to use checksums
9adb0361286c43c3a3806b8b0281d1cdc9195529ef91ddc5e7bfd447b990714f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / rapids_singlecell-0.7.5-py3-none-any.whl

Download URL rapids_singlecell-0.7.5-py3-none-any.whl
Size 71.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed9699be56df86e14e59bff8e4571cf07d44bc05159c1365b9933c3cb5f33d4d
BLAKE2b-256 checksum
How to use checksums
e9db84b423d0015fa9a1bbedb691ac8480c97e3ca28fc7c20a2b9966c199b150
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Security for rapids-singlecell 0.7.5

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.

Release history Release notifications | RSS feed

This release

0.7.5 This release

2 release files No provenance

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