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.1.tar.gz (63.6 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.1-py3-none-any.whl (64.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cellsweep-0.1.1.tar.gz
  • Upload date:
  • Size: 63.6 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.1.tar.gz
Algorithm Hash digest
SHA256 9a7f0126c0a087edf4841bcaae0a412a74fb850cb245be3340952f709b898ad5
MD5 419aac6319476c53d10c83bfcd844b04
BLAKE2b-256 349a421808e064d8d2c2e7dab9ff946d38af5742862d907c98bcf15fb82e01c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cellsweep-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2262f8ede29308df0fa64ef870091d1d12712c876c91dd50bc1e8db0a7844aca
MD5 1521248c6eefec0b625f88ed0065ef65
BLAKE2b-256 8b1c058b8bddea18dc007424d4348090c1b9b0d23bcd016fbd604412df94da1b

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