Skip to content

Latest commit

Β 

History

History
99 lines (67 loc) Β· 2.5 KB

File metadata and controls

99 lines (67 loc) Β· 2.5 KB

Tests

Why SpaceTravLR πŸŒ”οΈ ?

SpaceTravLR (Spatially perturbing Transcription factors, Ligands & Receptors)

overview

SpaceTravLR leverages convolutional neural networks to generate a sparse graph with differentiable edges. This enables signals to propagate both within cells through regulatory edges and between cells through ligand–mediated connections.

overview

Core Features

  • predicting niche-specific perturbation outcome at single cell resolution
  • inferring functional cell-cell communications events
  • identifying spatial domains and functional microniches and their driver genes

Quick start

Make & sync your Environment the modern way

pip install -r requirements.txt

uv pip install SpaceTravLR==0.1.17

Installing from Source

uv venv
source .venv/bin/activate
uv sync

Load the example Slide-tags Human Tonsil data.

adata = sc.read_h5ad('data/snrna_germinal_center.h5ad')

Create a SpaceShip

from SpaceTravLR.spaceship import SpaceShip

spacetravlr = SpaceShip(name='myTonsil').setup_(adata)

assert spacetravlr.is_everything_ok()

spacetravlr.spawn_worker(
    python_path='.venv/bin/python',
    partition='preempt'
)

SpaceTravLR generates a queue of genes that each worker consumes in parallel. spacetravlr.spawn_worker submits a new job to the clusters.

Outputs

output/
β”œβ”€β”€ input_data/
β”‚   β”œβ”€β”€ _adata.h5ad
β”‚   β”œβ”€β”€ celloracle_links.pkl
β”‚   β”œβ”€β”€ communication.pkl
β”‚   β”œβ”€β”€ LRs.parquet
β”œβ”€β”€ betadata/
β”‚   β”œβ”€β”€ PAX5_betadata.parquet
β”‚   β”œβ”€β”€ FOXO1_betadata.parquet
β”‚   β”œβ”€β”€ CD79A_betadata.parquet
β”‚   β”œβ”€β”€ ...
β”‚   β”œβ”€β”€ IL21_betadata.parquet
β”‚   β”œβ”€β”€ IL4_betadata.parquet
β”‚   β”œβ”€β”€ CCR4_betadata.parquet
β”œβ”€β”€ logs/
β”‚   β”œβ”€β”€ training_TIMESTAMP.log

Results

overview

Citation

If you find SpaceTravLR useful in your research or projects, please cite our paper: