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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cellsweep-0.1.3.tar.gz
  • Upload date:
  • Size: 63.9 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.3.tar.gz
Algorithm Hash digest
SHA256 00f17ce0740fe9745debe9689ea90cd53bb14008c6fb44394ad0fe1ed9ec60da
MD5 a88384f481ce00f618df9e833cee9b78
BLAKE2b-256 2c51e577771b12d849b493a03f286f9206663fbf0ef673380d2089da1b32b284

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cellsweep-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 01a513b7be307443a34f17a4cf27dcb1d8700d4c7a9cae7fbe3a40b652863a74
MD5 282278ae786be762e41ca7a0d6191aba
BLAKE2b-256 8a7c54c3c6eae48a5d6112c85b8b2b493903a606f559931da2f23453f61483af

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