Skip to main content

A package for Subcellular Location Optimal Transport (SLOT) algorithm.

Project description

Subcellular Location Optimal Transport (SLOT)

PyPI version Python License: MIT

SLOT is an optimal-transport–based machine learning framework for quantifying and modeling the spatial–temporal localization of intracellular molecules.

Introduction

By integrating subcellular-resolution spatial transcriptomics (mRNA) and proteomics (protein) datasets, SLOT systematically aligns and compares molecular distributions across cellular compartments and temporal stages. The framework infers relocation trajectories and quantifies dynamic shifts in subcellular localization patterns. As a comprehensive computational toolbox, SLOT enables systematic modeling of subcellular molecular spatial polarity, supporting pattern detection, spatial-location clustering investigations and spatiotemporal dynamic analysis.

SLOT Framework Overview

Features

  • Spatial localization polarity quantification
  • Location patterns matching
  • Subcellular location clustering
  • Spatial-temporal co-localization detection

Installation

Prerequisites

  • Python 3.10 or higher

Install from PyPI (Recommended)

pip install slot-toolkit

Install from Source

  1. Clone the repository:

    git clone https://github.com/Lifeomics/SLOT.git
    cd SLOT
    
  2. Create a conda environment and activate it:

    conda create --name SLOT_env python=3.10
    conda activate SLOT_env
    
  3. Install SLOT and its dependencies:

    pip install .
    

    For development / editable install (changes to source take effect immediately):

    pip install -e .
    

Installation typically takes 1–2 minutes.

Quick Start

import SLOT

# Load your spatial omics data
adata = SLOT.data.load_data("path/to/data.h5ad")

# Compute SLOT polarity scores
scores = SLOT.model.compute_slot_score(adata)

# Cluster subcellular localization patterns
SLOT.cluster.run_clustering(adata)

# Visualize results
SLOT.plot.bindingplot(adata)

Tutorials

Tutorial Description
Tutorial 1: SLOT Score Identify spatial polarity proteins at subcellular resolution
Tutorial 2: SLOT Cluster Cluster subcellular localization patterns
Tutorial 3: Pattern Matching Match and compare spatial distribution patterns

The processed data used in tutorials are available at XenoSTAR.

Citation

If you use SLOT in your research, please cite our paper (coming soon).

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

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

Source Distribution

slot_toolkit-1.0.2.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

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

slot_toolkit-1.0.2-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file slot_toolkit-1.0.2.tar.gz.

File metadata

  • Download URL: slot_toolkit-1.0.2.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for slot_toolkit-1.0.2.tar.gz
Algorithm Hash digest
SHA256 795a195d03dfef1f4a41dbc55b1e7c8b64fdc8d2ab6b965b70555946d7f2007b
MD5 bbd3b81cdde87c5ccae15aca13d3f674
BLAKE2b-256 50212f22ada52510a97166853869e9e4ec2f0c7bc41269eda81f396e3b037756

See more details on using hashes here.

Provenance

The following attestation bundles were made for slot_toolkit-1.0.2.tar.gz:

Publisher: release.yml on Lifeomics/SLOT

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file slot_toolkit-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: slot_toolkit-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for slot_toolkit-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3b1ad2bbb5d7f864388424ab6ec3455789af6b43c319a8e0e39e211785a9ba81
MD5 99cfb8d311135a5340aeeb577e36bf37
BLAKE2b-256 9c9c884bfd224293ccbc0b65c573c8d2836a75ebfaf6c9cf8b87e252873893d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for slot_toolkit-1.0.2-py3-none-any.whl:

Publisher: release.yml on Lifeomics/SLOT

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page