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.2.0.tar.gz (20.6 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.2.0-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyscalop-0.2.0.tar.gz
Algorithm Hash digest
SHA256 21c068cf5ec73d8b702e24712fa0016bda892cf44efe78c4cc85321ea3cd4124
MD5 99c0da733f5ab997664f9135dd2fe757
BLAKE2b-256 18553f51a01ffdef3c0c5c3c4524105043ba8fd354fac36fb210594c36d52952

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyscalop-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 20.4 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3be6c49e9a9ae2c765341ef36ff7619b11eb4c3405ecfc440e0fbc1ac8983fab
MD5 74659822fcf9c49f7f6d2851efe882ed
BLAKE2b-256 9a75d5b749b51b90a63596c3e5e0361e04142c282d903c245ae08790505dbae2

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