Skip to main content

Single-cell data preprocessing for multiple samples.

Project description

Scprel - Single-Cell Data Preprocessing in Python

Import scprel as:

import scprel

This package allows to perform basic preprocessing steps for single-cell analysis of multiple samples. It includes scrublets detection, quality control, normalization with target_sum=1e4, leiden clustering, annotation of cell types with PanglaoDB database and infercnv calculations. It integrates some of the Scanpy, Decoupler, Infercnvpy and Anndata functions. It is designed to facilitate workflow when analyzing multiple samples. Each sample is analyzed and annotated separately and then all samples are concatenated.

Example of usage:

scprel.scrun(names = ['sample1', 'sample2'], path = '/content/drive/MyDrive/MyDirectory/')
  • names - list of sample names in your directory (.h5 format);
  • path - path to the directory with samples

The result of this function is the anndata.AnnData object, compressed with hdf5plugin, with concatenated samples, filtered by 'mt' and 'ribo' genes, with annotated gene locations and annotated tumor cells based on cnv score. All immune cells in the sample are considered reference cells for infercnv calculations.

The obs table for resulting adata file

The resulting file will be saved in your default home directory and is ready for batch correction and further analysis.

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

scprel-1.2.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

scprel-1.2-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file scprel-1.2.tar.gz.

File metadata

  • Download URL: scprel-1.2.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.5

File hashes

Hashes for scprel-1.2.tar.gz
Algorithm Hash digest
SHA256 569eb489de1dad688e6536e6a9f756d3e810c3b4fcabbbd16033053ed1755f52
MD5 b1b9c11d1f504b3f08fed9e38b826b5e
BLAKE2b-256 494a5d3ca190f2f1472ea8c2f83cd528aad695b44499b0db0ceda6a344ce9ce6

See more details on using hashes here.

File details

Details for the file scprel-1.2-py3-none-any.whl.

File metadata

  • Download URL: scprel-1.2-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.5

File hashes

Hashes for scprel-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bff67db380a80c9fd7a430dee13e7a20df0c9d1d5bbc2af1c5a9091f27daf28f
MD5 19c44f330dfd9cb27b674816dc9104b8
BLAKE2b-256 15b977f1b3746ec3b7bc0f6a146112db8ef0c1b3ab1c407ede3886a8722c0bed

See more details on using hashes here.

Supported by

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