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.1.tar.gz (51.7 kB view details)

Uploaded Source

Built Distributions

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

Uploaded Source

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

Uploaded Source

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

Uploaded Source

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

Uploaded Python 3

File details

Details for the file scprep-0.10.1.tar.gz.

File metadata

  • Download URL: scprep-0.10.1.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.6.7

File hashes

Hashes for scprep-0.10.1.tar.gz
Algorithm Hash digest
SHA256 fac9033ad5d7c8c418894c2964adcbec812613c53959f6ae05eed69a4954f885
MD5 815ee98afaca3925391f8299544ba1bc
BLAKE2b-256 674ae8a4a46ca463f7d569580f7c0a3100fc27ae22f2d28ea0a369bbc5be3318

See more details on using hashes here.

File details

Details for the file scprep-0.10.1-py3.7.egg.

File metadata

  • Download URL: scprep-0.10.1-py3.7.egg
  • Upload date:
  • Size: 105.2 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.7.2+

File hashes

Hashes for scprep-0.10.1-py3.7.egg
Algorithm Hash digest
SHA256 20e036a11fff5d2804857619e82d174f57756a2e1e128f039048b0a104a64c09
MD5 eb65a53107f3e22fbf3ffb17de724613
BLAKE2b-256 82e8330bfbaf4963812984aecceb244fb3cf7fa46dbba4f8c780019e6bc467d2

See more details on using hashes here.

File details

Details for the file scprep-0.10.1-py3.6.egg.

File metadata

  • Download URL: scprep-0.10.1-py3.6.egg
  • Upload date:
  • Size: 105.0 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.6.7

File hashes

Hashes for scprep-0.10.1-py3.6.egg
Algorithm Hash digest
SHA256 efb71c48aba676d04bdc39757b37545bf464b38dc56e65a771514a8b28d9e372
MD5 6bdfb5655db4b8388f27040cdccacb31
BLAKE2b-256 f0ee3e963b2a573abcaa303f4faccec05ee377224000807cc950e3bdc988b6e8

See more details on using hashes here.

File details

Details for the file scprep-0.10.1-py3.5.egg.

File metadata

  • Download URL: scprep-0.10.1-py3.5.egg
  • Upload date:
  • Size: 106.8 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.1-py3.5.egg
Algorithm Hash digest
SHA256 f8e077c3dccd53a9bf607841cd56c59048cbd65d32fb09352b12042a7d12d916
MD5 f47212115ef12a22c3658482a9f08b49
BLAKE2b-256 2ba4e2620f49e2e857b3e3bd5d3d0252cb3ad8bbdb8326ef7d653e1e89034166

See more details on using hashes here.

File details

Details for the file scprep-0.10.1-py3-none-any.whl.

File metadata

  • Download URL: scprep-0.10.1-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.6.7

File hashes

Hashes for scprep-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 72ee980a930b7e1b7a149f3e7e53786bd16d32e5a6505ec03effd316398fbb15
MD5 aeb0687a14db06f3c30fb042f301db79
BLAKE2b-256 02443766c19ab827cda07d5c8a2fa3a9cf28140b0cbdeda1beeffa5d8cefa615

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