scprep
Project description
Tools for loading and preprocessing biological matrices in Python.
Installation
preprocessing is available on pip. Install by running the following in a terminal:
pip install --user scprep
Alternatively, scprep can be installed using Conda (most easily obtained via the Miniconda Python distribution):
conda install -c bioconda scprep
Usage example
You can use scprep with your single cell data as follows:
import scprep
# Load data
data_path = "~/mydata/my_10X_data"
data = scprep.io.load_10X(data_path)
# Remove empty columns and rows
data = scprep.filter.remove_empty_cells(data)
data = scprep.filter.remove_empty_genes(data)
# Filter by library size to remove background
scprep.plot.plot_library_size(data, cutoff=500)
data = scprep.filter.filter_library_size(data, cutoff=500)
# Filter by mitochondrial expression to remove dead cells
mt_genes = scprep.select.get_gene_set(data, starts_with="MT")
scprep.plot.plot_gene_set_expression(data, genes=mt_genes, percentile=90)
data = scprep.filter.filter_gene_set_expression(data, genes=mt_genes,
percentile=90)
# Library size normalize
data = scprep.normalize.library_size_normalize(data)
# Square root transform
data = scprep.transform.sqrt(data)
Help
If you have any questions or require assistance using scprep, please read the documentation at https://scprep.readthedocs.io/ or contact us at https://krishnaswamylab.org/get-help
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 Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scprep-0.10.0.tar.gz.
File metadata
- Download URL: scprep-0.10.0.tar.gz
- Upload date:
- Size: 51.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.5.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86d35d9fb67854c3199f9ae05b1069c1ff0c23ebd7168a09fc40cc20fa1c2cb3
|
|
| MD5 |
5286885281885e76406e05e0c571fedf
|
|
| BLAKE2b-256 |
88f945a705382c4f6d9abd8f13f46165d68e25b63ffaf48aa86b489b4aa49ea2
|
File details
Details for the file scprep-0.10.0-py3.7.egg.
File metadata
- Download URL: scprep-0.10.0-py3.7.egg
- Upload date:
- Size: 105.2 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee55b2027d8352212d6cf0bb3ffc99b2b0d81e967e97ac043d866a4f65d37156
|
|
| MD5 |
b69951f1ad1d6e4d9612da9e3185d090
|
|
| BLAKE2b-256 |
d563c201f41d2fb178586e7e0e48c5048f622e3441769ebad2217c24486a7446
|
File details
Details for the file scprep-0.10.0-py3.6.egg.
File metadata
- Download URL: scprep-0.10.0-py3.6.egg
- Upload date:
- Size: 105.0 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db811977523dd8ad90b0b029a2f46279df2a0f480eb225d9792bb9dc3c6e22a7
|
|
| MD5 |
29d4f6ba55523a23454bd181eb4c1a18
|
|
| BLAKE2b-256 |
d296cc12dcc2ec14fc51716e302f05935db47607580e1b4e4c0bccda8dbdb7f9
|
File details
Details for the file scprep-0.10.0-py3.5.egg.
File metadata
- Download URL: scprep-0.10.0-py3.5.egg
- Upload date:
- Size: 106.8 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.5.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c37269913f02727705006cfb746d9fbab5f167f03bade0002a300a830742b95
|
|
| MD5 |
e91f25eb7d1a44f6c3fd6b3db42f19df
|
|
| BLAKE2b-256 |
aef1a17658646758a1de558823438ff0f1e72466fa972587330b61412675cfd1
|
File details
Details for the file scprep-0.10.0-py3-none-any.whl.
File metadata
- Download URL: scprep-0.10.0-py3-none-any.whl
- Upload date:
- Size: 58.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.5.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7071d8996fa0953294515faa663d275040b78eb6c966dda4acdfaa3bd9ca08d6
|
|
| MD5 |
d7ad2487d8bcc3613a643ba7fcc381b9
|
|
| BLAKE2b-256 |
10c539a3320daa76ca4a93acab4bd792dd0e3de3dec3786156a49f4ef6eccec3
|