Skip to main content

Tests

Note: We highly recommend following the Rust tutorial. This repo is provided for development purposes only. You can find the tutorial here: https://spacetravlr-rust.readthedocs.io/en/latest/

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

Note: Again, we highly recommend following the Rust tutorial. This repo is provided for development purposes only.

conda create -n spacetravlr python=3.11
conda activate spacetravlr
pip install uv 
uv pip install SpaceTravLR==0.1.21

Installing from Source

uv venv
source .venv/bin/activate
uv pip install -e .

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:

Metadata

Release files for SpaceTravLR 0.1.21

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for SpaceTravLR 0.1.21
File Size Uploaded
spacetravlr-0.1.21.tar.gz 264.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for SpaceTravLR 0.1.21
File Interpreter ABI Platform
spacetravlr-0.1.21-py3-none-any.whl Python 3 none any Details

Total release size: 554.4 kB

Release files / spacetravlr-0.1.21.tar.gz

Download URL spacetravlr-0.1.21.tar.gz
Size 264.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ea699161bf78c4abe49187c502e2f6d2f3c3fe663e4a1bc24f76a25ff400d68f
BLAKE2b-256 checksum
How to use checksums
b54b30319f32b79dad967178833ff9f3c1bb58cbe38fb2a36908c34ce72b34d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Release files / spacetravlr-0.1.21-py3-none-any.whl

Download URL spacetravlr-0.1.21-py3-none-any.whl
Size 289.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ad05870b1ecc3ad0946a2823bf3e569d27a693e5895d62967011da4650aaafa
BLAKE2b-256 checksum
How to use checksums
dd19b7af1c3b4a1ee2a58b3e39c5f40cf99e46efab8a20d93c331fe39343cc2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Release history Release notifications | RSS feed

This release

0.1.21 This release

2 release files

0.1.20

2 release files

0.1.19

2 release files

0.1.18

1 release file

0.1.17

1 release file

0.1.16

1 release file

0.1.15

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page