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.0.tar.gz (19.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.0-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyscalop-0.1.0.tar.gz
  • Upload date:
  • Size: 19.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.0.tar.gz
Algorithm Hash digest
SHA256 67043d6b002f9c1864314bdf168a7814216061411131a89ff9995f70535ec4bd
MD5 48d1893cda98b5eb5a36de986ecb33df
BLAKE2b-256 b98ced05aebc1848ee2701d202fc76b3c97a727e20a694e96e75fb67a917c03e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyscalop-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60c6609149fdafaf004629e7a464a1b27432a13218522d4f224d9dc46ddae969
MD5 5013505f6c057098bc81653a3463cb6f
BLAKE2b-256 b079c796e5335f7998d100e569ea9dff8f94f89848752ea202311e0091232244

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