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:

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spacetravlr-0.1.21.tar.gz (264.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spacetravlr-0.1.21-py3-none-any.whl (289.6 kB view details)

Uploaded Python 3

File details

Details for the file spacetravlr-0.1.21.tar.gz.

File metadata

  • Download URL: spacetravlr-0.1.21.tar.gz
  • Upload date:
  • Size: 264.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for spacetravlr-0.1.21.tar.gz
Algorithm Hash digest
SHA256 ea699161bf78c4abe49187c502e2f6d2f3c3fe663e4a1bc24f76a25ff400d68f
MD5 48a7b5695eeb9025b1cdd05d2c5819d0
BLAKE2b-256 b54b30319f32b79dad967178833ff9f3c1bb58cbe38fb2a36908c34ce72b34d6

See more details on using hashes here.

File details

Details for the file spacetravlr-0.1.21-py3-none-any.whl.

File metadata

  • Download URL: spacetravlr-0.1.21-py3-none-any.whl
  • Upload date:
  • Size: 289.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for spacetravlr-0.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 6ad05870b1ecc3ad0946a2823bf3e569d27a693e5895d62967011da4650aaafa
MD5 773750cb700a6ccf272312ea3d7c4da7
BLAKE2b-256 dd19b7af1c3b4a1ee2a58b3e39c5f40cf99e46efab8a20d93c331fe39343cc2e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.21 This release

2 files

0.1.20

2 files

0.1.19

2 files

0.1.18

1 file

0.1.17

1 file

0.1.16

1 file

0.1.15

1 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