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

Quick Start

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)

Examples

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

Uploaded Source

Built Distributions

scprep-0.11.1-py3.7.egg (129.3 kB view details)

Uploaded Source

scprep-0.11.1-py3.6.egg (129.0 kB view details)

Uploaded Source

scprep-0.11.1-py3.5.egg (131.2 kB view details)

Uploaded Source

scprep-0.11.1-py3-none-any.whl (69.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scprep-0.11.1.tar.gz
  • Upload date:
  • Size: 60.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.5.6

File hashes

Hashes for scprep-0.11.1.tar.gz
Algorithm Hash digest
SHA256 34d935f3fb2de1bc57d6a8e0c9884889f1629739d3eb037be01abdb5de05c890
MD5 5698c8888e81e9b162ef3bc3927d0e59
BLAKE2b-256 7babe5bff294ee3f4c9bb461a9bd81c45d9d5852bb0f06e0b129a2a92f2537f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scprep-0.11.1-py3.7.egg
  • Upload date:
  • Size: 129.3 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.3rc1+

File hashes

Hashes for scprep-0.11.1-py3.7.egg
Algorithm Hash digest
SHA256 d2c19406891e128ebb3ed5c383a95e21016f89ab8a8e8e97add89d34f2e885d0
MD5 f1ff000635b4aacb93a55756bcad791d
BLAKE2b-256 eb51f8e22073bf4e98b88be0734b985af222e952120887afc8473464fc9b2301

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scprep-0.11.1-py3.6.egg
  • Upload date:
  • Size: 129.0 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.11.1-py3.6.egg
Algorithm Hash digest
SHA256 759631c70be5188473716a9681bb52b71ee475faeaab3fa905ef326b32aadf61
MD5 e3cbd5e7730bb39f6ad40de93803f7a0
BLAKE2b-256 4ecdba996691eee3f55c19dc87e0f02f017be4eab26d8f17674fde4a830aac01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scprep-0.11.1-py3.5.egg
  • Upload date:
  • Size: 131.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.5.6

File hashes

Hashes for scprep-0.11.1-py3.5.egg
Algorithm Hash digest
SHA256 9634296824176ea75ee9857d17662a4db29e62c10818c207f904f659adb4cc13
MD5 48bbdc37aff45d3589dd58d0cacc8769
BLAKE2b-256 bdb8e8aefc80eaf4506b9860dfb1245783131aea153de2c0e46d46a6af6fb110

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scprep-0.11.1-py3-none-any.whl
  • Upload date:
  • Size: 69.5 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.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9acbef84d5b43b929c668e4dced98e7615794c76c37459ba626074be6c3d3b1
MD5 8596bd86aafe57168f84d0206db832d2
BLAKE2b-256 f65e4e260be4486eba9f612ae270bd2c17e9fca19a780433858023142d1057e1

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