![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
.. image:: logo.png :alt: scprep logo
.. image:: https://img.shields.io/pypi/v/scprep.svg :target: https://pypi.org/project/scprep/ :alt: Latest PyPi version .. image:: https://anaconda.org/bioconda/scprep/badges/version.svg :target: https://anaconda.org/bioconda/scprep/ :alt: Latest Conda version .. image:: https://api.travis-ci.com/KrishnaswamyLab/scprep.svg?branch=master :target: https://travis-ci.com/KrishnaswamyLab/scprep :alt: Travis CI Build .. image:: https://img.shields.io/readthedocs/scprep.svg :target: https://scprep.readthedocs.io/ :alt: Read the Docs .. image:: https://coveralls.io/repos/github/KrishnaswamyLab/scprep/badge.svg?branch=master :target: https://coveralls.io/github/KrishnaswamyLab/scprep?branch=master :alt: Coverage Status .. image:: https://img.shields.io/twitter/follow/KrishnaswamyLab.svg?style=social&label=Follow :target: https://twitter.com/KrishnaswamyLab :alt: Twitter .. image:: https://img.shields.io/github/stars/KrishnaswamyLab/scprep.svg?style=social&label=Stars :target: https://github.com/KrishnaswamyLab/scprep/ :alt: GitHub stars .. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/psf/black :alt: Code style: black .. image:: https://img.shields.io/badge/style%20guide-openstack-eb1a32.svg :target: https://docs.openstack.org/hacking/latest/user/hacking.html#styleguide :alt: Style Guide: OpenStack .. image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white :target: https://github.com/pre-commit/pre-commit :alt: pre-commit
scprep
provides an all-in-one framework for loading, preprocessing, and plotting matrices in Python, with a focus on single-cell genomics.
The philosophy of scprep
:
scprep
works with numpy
arrays, pandas
data frames, and scipy
sparse matrices, all of which are popular data formats in Python and accepted as input to most common algorithms.numpy
array to a pandas
data frame introduces endless technical differences (e.g. in indexing matrices). scprep
provides data-agnostic methods that work the same way on all formats.scprep
takes care of annoying edge cases and sets nice defaults so you don't have to.numpy
, scipy
, pandas
and matplotlib
just as you would if you used them directly.preprocessing is available on pip
. Install by running the following in a terminal::
pip install --user scprep
Alternatively, scprep can be installed using Conda <https://conda.io/docs/>
_ (most easily obtained via the Miniconda Python distribution <https://conda.io/miniconda.html>
_)::
conda install -c bioconda scprep
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)
Scatter plots <https://scprep.readthedocs.io/en/stable/examples/scatter.html>
_Jitter plots <https://scprep.readthedocs.io/en/stable/examples/jitter.html>
_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
FAQs
scprep
We found that scprep demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.