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.3.0.tar.gz (20.9 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.3.0-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyscalop-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d74b400316893197aa6b0e484fa789aad7826eeb3b7b6cb2f5ede7183bb6c0d1
MD5 b18a52c8525b2c0f799d59affbf8e436
BLAKE2b-256 71c8db039413522a1a92302704546eac778827c4e769804fe43d96b8234983e2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyscalop-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60584dc00bc5af6aaddf5b88629a4978b42ca0a4a0eded924ca67c61c50e979c
MD5 fb6d54c568d21b291204bb78690d8aed
BLAKE2b-256 a2fb6febc4ed7267afc7ff5d8cd6508642028993e0d73fda9a304134a466e7f3

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