Skip to main content

Denoising scRNA-seq in a smart and efficient way.

Project description

cellsweep

Sweep out noisy counts from single-cell RNA-seq data with CellSweep!

alt text

Install

Basic use

pip install cellsweep

To run notebooks:

pip install cellsweep[analysis]

To remake figures from the paper:

git clone https://github.com/pachterlab/cellsweep.git
cd cellsweep
conda env create -f environment.yml
pip install cellsweep[analysis]==0.1.1

Quickstart

CellSweep has a single function denoise_count_matrix that takes a raw count matrix in an AnnData object and produces a denoised count matrix in another AnnData object. See a simple, fully worked example in the notebooks/intro.ipynb Jupyter Notebook.

Python API

import cellsweep
adata_cellsweep = cellsweep.denoise_count_matrix(adata_raw_path, adata_out=adata_cellsweep_path)  # assumes that adata_raw_path is an h5ad file or AnnData object with a column adata.obs['celltype'] indicating celltype

# for help
help(cellsweep.denoise_count_matrix)

Command line interface

cellsweep denoise_count_matrix -o adata_cellsweep.h5ad adata_raw.h5ad  # assumes that adata_raw.h5ad is an h5ad file with a column adata.obs['celltype'] indicating celltype

# for help
cellsweep denoise_count_matrix --help

There are many utility functions in the cellsweep.utils module for data processing, plotting, and analysis. See examples in our Jupyter Notebooks.

Tutorials

We have several Jupyter Notebooks demonstrating the use of CellSweep for denoising count matrices and analyzing the results. See the notebooks folder in the repository.

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

cellsweep-0.1.2.tar.gz (63.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cellsweep-0.1.2-py3-none-any.whl (64.9 kB view details)

Uploaded Python 3

File details

Details for the file cellsweep-0.1.2.tar.gz.

File metadata

  • Download URL: cellsweep-0.1.2.tar.gz
  • Upload date:
  • Size: 63.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for cellsweep-0.1.2.tar.gz
Algorithm Hash digest
SHA256 eac3b71e3933d2be7ea11773d3c8d8d0c69b09767c5b7dfe83ce81aa243c3e16
MD5 8b778dc124f56e0209dd7c0ca4b853a8
BLAKE2b-256 f90ac044a60cd6e7d712aa6a074c35b7b8fa5c832d82bee8b02cfb9a91b06a8d

See more details on using hashes here.

File details

Details for the file cellsweep-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: cellsweep-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 64.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for cellsweep-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 98161937b11e3b3edcbd715692dfca5ca4afc15fb6e895fbd04b7186ffbb0222
MD5 3a0b032977c22049ab63d13d17076f02
BLAKE2b-256 b14d070ca55979361620b262fe6f5c74ca0a13bd1e9d0fa3d2733eaf55f6cb2d

See more details on using hashes here.

Supported by

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