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

Uploaded Source

Built Distributions

scprep-0.10.2-py3.7.egg (106.4 kB view details)

Uploaded Source

scprep-0.10.2-py3.6.egg (106.2 kB view details)

Uploaded Source

scprep-0.10.2-py3.5.egg (107.9 kB view details)

Uploaded Source

scprep-0.10.2-py3-none-any.whl (59.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scprep-0.10.2.tar.gz
  • Upload date:
  • Size: 52.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

File hashes

Hashes for scprep-0.10.2.tar.gz
Algorithm Hash digest
SHA256 adf104ddc05faf5893a363e6c79f2ce55915552e8c08c8c13657d2bfd26bcf5e
MD5 c8da2a7a688a759ddd003f787e0d9467
BLAKE2b-256 e3793caf85f09d99028169a7e1e430b9cd802f1d27463f5c50f314e19fcd2548

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scprep-0.10.2-py3.7.egg
  • Upload date:
  • Size: 106.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2+

File hashes

Hashes for scprep-0.10.2-py3.7.egg
Algorithm Hash digest
SHA256 00b3dbac125eb43d26f2f7dc399bace9e6ff3f13dead8fc4dec7d201d622945a
MD5 a0699aac790f3f0c84a2d91c097ce4ab
BLAKE2b-256 e684c2cd704a7687ce87d2a8340edc611fd6730d7045573c8f36fc0aaae70fae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scprep-0.10.2-py3.6.egg
  • Upload date:
  • Size: 106.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for scprep-0.10.2-py3.6.egg
Algorithm Hash digest
SHA256 411f04e0fc7cdca02277e13629fb2a10396888026ca256fb2f98b4a4db253cb7
MD5 c260b0a7ce2251931b1f6f079e35b78d
BLAKE2b-256 50b7d98b4247ebc3645778fb5c740117dc60471c4caf19386b70d59b6adcf395

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scprep-0.10.2-py3.5.egg
  • Upload date:
  • Size: 107.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

File hashes

Hashes for scprep-0.10.2-py3.5.egg
Algorithm Hash digest
SHA256 b719fee5a61885c4cb3cf77a4f9ed16d9a98c7dda3642412c7a08bf54aab3a02
MD5 2294b76932fd9b23f9d72f8469651264
BLAKE2b-256 b16e6c9e57a4d406a46e140c92bdf171c37b6340807b34bf6ff60f33b07bc3cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scprep-0.10.2-py3-none-any.whl
  • Upload date:
  • Size: 59.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

File hashes

Hashes for scprep-0.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 147d18f3e6bbc894c8de11e040d8fa004a0170067b4173a05be089f30a24dad2
MD5 6b6eb54af2574d0c768e5a818fb83f6b
BLAKE2b-256 c999a798ce81c31781a32bc8b728a6c8e09837c7e9ea9207a647873ab743c06c

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