Skip to main content

scprep

Project description

Latest PyPi version Latest Conda version Travis CI Build Read the Docs Coverage Status Twitter GitHub stars

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scprep-0.10.0.tar.gz (51.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

scprep-0.10.0-py3.7.egg (105.2 kB view details)

Uploaded Egg

scprep-0.10.0-py3.6.egg (105.0 kB view details)

Uploaded Egg

scprep-0.10.0-py3.5.egg (106.8 kB view details)

Uploaded Egg

scprep-0.10.0-py3-none-any.whl (58.7 kB view details)

Uploaded Python 3

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

Hashes for scprep-0.10.0.tar.gz
Algorithm Hash digest
SHA256 86d35d9fb67854c3199f9ae05b1069c1ff0c23ebd7168a09fc40cc20fa1c2cb3
MD5 5286885281885e76406e05e0c571fedf
BLAKE2b-256 88f945a705382c4f6d9abd8f13f46165d68e25b63ffaf48aa86b489b4aa49ea2

See more details on using hashes here.

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

Hashes for scprep-0.10.0-py3.7.egg
Algorithm Hash digest
SHA256 ee55b2027d8352212d6cf0bb3ffc99b2b0d81e967e97ac043d866a4f65d37156
MD5 b69951f1ad1d6e4d9612da9e3185d090
BLAKE2b-256 d563c201f41d2fb178586e7e0e48c5048f622e3441769ebad2217c24486a7446

See more details on using hashes here.

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

Hashes for scprep-0.10.0-py3.6.egg
Algorithm Hash digest
SHA256 db811977523dd8ad90b0b029a2f46279df2a0f480eb225d9792bb9dc3c6e22a7
MD5 29d4f6ba55523a23454bd181eb4c1a18
BLAKE2b-256 d296cc12dcc2ec14fc51716e302f05935db47607580e1b4e4c0bccda8dbdb7f9

See more details on using hashes here.

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

Hashes for scprep-0.10.0-py3.5.egg
Algorithm Hash digest
SHA256 1c37269913f02727705006cfb746d9fbab5f167f03bade0002a300a830742b95
MD5 e91f25eb7d1a44f6c3fd6b3db42f19df
BLAKE2b-256 aef1a17658646758a1de558823438ff0f1e72466fa972587330b61412675cfd1

See more details on using hashes here.

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

Hashes for scprep-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7071d8996fa0953294515faa663d275040b78eb6c966dda4acdfaa3bd9ca08d6
MD5 d7ad2487d8bcc3613a643ba7fcc381b9
BLAKE2b-256 10c539a3320daa76ca4a93acab4bd792dd0e3de3dec3786156a49f4ef6eccec3

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