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 packageanalysis/— analysis scripts (source functions, consume data, emit results/plots)data/— important intermediate datatests/
Status
v0.1 — core modules ported: score, dea, programs, metaprograms, utils, plot.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21c068cf5ec73d8b702e24712fa0016bda892cf44efe78c4cc85321ea3cd4124
|
|
| MD5 |
99c0da733f5ab997664f9135dd2fe757
|
|
| BLAKE2b-256 |
18553f51a01ffdef3c0c5c3c4524105043ba8fd354fac36fb210594c36d52952
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3be6c49e9a9ae2c765341ef36ff7619b11eb4c3405ecfc440e0fbc1ac8983fab
|
|
| MD5 |
74659822fcf9c49f7f6d2851efe882ed
|
|
| BLAKE2b-256 |
9a75d5b749b51b90a63596c3e5e0361e04142c282d903c245ae08790505dbae2
|