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.

pip install SpaceTravLR==0.1.19

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.20.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.20-py3-none-any.whl (289.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spacetravlr-0.1.20.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.20.tar.gz
Algorithm Hash digest
SHA256 305a99e69001e173f586a2b02059ed653d222bfa2558f73480e1fe30342698a1
MD5 8e8b8717bb37e65ac50c2a8fd8d8bdbb
BLAKE2b-256 b7a562a8b8b89b3b424302930bc47db6a7c680a1c44b290b9455ff71a0bab8b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spacetravlr-0.1.20-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.20-py3-none-any.whl
Algorithm Hash digest
SHA256 8a85c5d058223a2eeec781814c98d368cd6df5f540ec7fdf656ed2b7b654648b
MD5 d6d6ca001ad859738fce657a693538b2
BLAKE2b-256 d2f2147cdf83b9b96293edbe9fae0862439048fbf478cd1b6cf70dd78da8b877

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.21

2 files

This release

0.1.20 This release

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