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 resulting file will be saved in your default home directory and is ready for batch correction and further analysis.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file scprel-1.3.tar.gz
.
File metadata
- Download URL: scprel-1.3.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 656b03e46efb7140951fc65e4d7585c64252f6c71e7a653226529317441e70ed |
|
MD5 | 0ad6426d920e71b838f01a99db50d0ad |
|
BLAKE2b-256 | 3f4d1250b4821744fd95ef5f75f9f87bbdfd59955b2541cc35b983e2fe3028b7 |
File details
Details for the file scprel-1.3-py3-none-any.whl
.
File metadata
- Download URL: scprel-1.3-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6bfe9fd24c41e239c17ff635045a2882b69083f891b05191ebb711f4b297b92 |
|
MD5 | 13880998771f3f9d6e8984de03afc5e2 |
|
BLAKE2b-256 | 42999e15b67d3c00818b39f6f768d7e19097682a359fc376553dfe108a9a49e3 |