Skip to main content

KineticST

Kinetic-theory framework for multiscale modelling of spatial transcriptomics.

Bridges microscopic cell-cell interactions to macroscopic tissue organisation via a Boltzmann-like collision operator on latent cell states, integrated on a spatial graph with stochastic dynamics and invariant-measure analysis.

Installation

pip install -e .

Quick start

import numpy as np
from kinetic_st import KineticST, KineticSTConfig, generate_kinetic_simulation

# Synthetic data
sim = generate_kinetic_simulation(n_types=6, n_spots=1600, seed=42)

# Fit
model = KineticST(KineticSTConfig(n_steps=150, latent_dim=10, verbose=True))
model.fit(sim.Y, sim.coords)

# Results
labels = model.get_domain_labels()
field = model.get_expression_field()
print(model.summary())

Pipeline stages

  1. Latent embedding — PCA on log-CPM expression to a low-dimensional cell-state space
  2. Spatial graph — kNN adjacency from coordinates
  3. Collision kernel — ligand-receptor rule with irreversible attractor bias
  4. Kinetic integration — deterministic (Boltzmann), stochastic (Euler-Maruyama), or time-sliced solver
  5. Moment closure — macroscopic tissue expression fields via local KDE moments
  6. Invariant measure — non-equilibrium steady-state estimation (KDE or GMM)
  7. Spatial domains — segmentation via local invariant-measure divergence
  8. Supervised markers — one-vs-rest z-scores on the dynamics-smoothed field

License

MIT

Metadata

Release files for kinetic-st 0.1.0

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

Source distribution (sdist)

Source distribution for kinetic-st 0.1.0
File Size Uploaded Provenance Actions
kinetic_st-0.1.0.tar.gz 22.4 kB Without provenance Details for kinetic_st-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kinetic-st 0.1.0
File Interpreter ABI Platform Actions
kinetic_st-0.1.0-py3-none-any.whl Python 3 none any Details for kinetic_st-0.1.0-py3-none-any.whl

Total release size: 51.4 kB

Release files / kinetic_st-0.1.0.tar.gz

Download URL kinetic_st-0.1.0.tar.gz
Size 22.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4ec109c97a39a957b8f749f79cf5bdfaa9494c5881256719ec46bc1b5ed4da64
BLAKE2b-256 checksum
How to use checksums
f7c6f51220e0a4180c592e1d65c409fab4815feb49cb9b2dbe70d128f3392ea2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.19

Release files / kinetic_st-0.1.0-py3-none-any.whl

Download URL kinetic_st-0.1.0-py3-none-any.whl
Size 29.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
10740da8d831ba44590507f81e8a60cbc545b48aec7c13ee232241eade031cfd
BLAKE2b-256 checksum
How to use checksums
3af81a6fd5e66247e3b962e4bea98bebd418bdf146f1500aeba50144b2b06222
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.19

Security for kinetic-st 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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