Skip to main content

pyscalop

Single-cell analysis operations — Python port of scalop.

A small toolbox for scRNA-seq analysis with a focus on intra-tumour expression programs (as in Gavish et al. 2023). Built on numpy, pandas, scipy, anndata.

Install

pip install -e .

Quick start

import pyscalop as ps

# m: pandas DataFrame, genes x cells, log-normalised, not row-centered
# sigs: dict of {signature_name: [gene1, gene2, ...]}
scores = ps.sig_scores(m, sigs)

# Differential expression for one or more cell groups vs the rest
deas = ps.dea(m, groups={"clusterA": cells_A, "clusterB": cells_B})

# Find intra-tumour programs (clustering + DEA + jaccard filtering)
res = ps.programs(m)

# Aggregate programs across samples into metaprograms
mp = ps.metaprograms(res["programs"], res["profiles"], metaclusters)

Layout

  • pyscalop/ — importable package
  • analysis/ — analysis scripts (source functions, consume data, emit results/plots)
  • data/ — important intermediate data
  • tests/

Status

v0.1 — core modules ported: score, dea, programs, metaprograms, utils, plot.

Metadata

Release files for pyscalop 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyscalop 0.3.0
File Size Uploaded Provenance Actions
pyscalop-0.3.0.tar.gz 20.9 kB Without provenance Details for pyscalop-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyscalop 0.3.0
File Interpreter ABI Platform Actions
pyscalop-0.3.0-py3-none-any.whl Python 3 none any Details for pyscalop-0.3.0-py3-none-any.whl

Total release size: 41.6 kB

Release files / pyscalop-0.3.0.tar.gz

Download URL pyscalop-0.3.0.tar.gz
Size 20.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d74b400316893197aa6b0e484fa789aad7826eeb3b7b6cb2f5ede7183bb6c0d1
BLAKE2b-256 checksum
How to use checksums
71c8db039413522a1a92302704546eac778827c4e769804fe43d96b8234983e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.2

Release files / pyscalop-0.3.0-py3-none-any.whl

Download URL pyscalop-0.3.0-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60584dc00bc5af6aaddf5b88629a4978b42ca0a4a0eded924ca67c61c50e979c
BLAKE2b-256 checksum
How to use checksums
a2fb6febc4ed7267afc7ff5d8cd6508642028993e0d73fda9a304134a466e7f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.2

Security for pyscalop 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page