Skip to main content

Single-cell analysis operations — Python port of scalop

Project description

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.

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

pyscalop-0.1.1.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyscalop-0.1.1-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file pyscalop-0.1.1.tar.gz.

File metadata

  • Download URL: pyscalop-0.1.1.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pyscalop-0.1.1.tar.gz
Algorithm Hash digest
SHA256 764d288d9bd071ab2004ecc97cc1a2ef2d4c4e15120ae3d9f0e089613bf4edc8
MD5 62c4614a2624e4ace019a80d43953773
BLAKE2b-256 df1cc9516047b6948183bee497c52bc7964641ed6fcae35ccda72379833ae582

See more details on using hashes here.

File details

Details for the file pyscalop-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyscalop-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pyscalop-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cea23514151889b223e213b5d5ee7b5c256adf2105499cc57f892f38fac239d4
MD5 cc5cba30845ea5d9e1e19df9fcc266a1
BLAKE2b-256 e16bb42abba838d8247b28ba2a804e8e9f9d1c1e51d1a85ae9435bc1b94ea079

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page