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 kinetic-st

For development (editable install):

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.1

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.1
File Size Uploaded Provenance Actions
kinetic_st-0.1.1.tar.gz 22.4 kB Without provenance Details for kinetic_st-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 51.4 kB

Release files / kinetic_st-0.1.1.tar.gz

Download URL kinetic_st-0.1.1.tar.gz
Size 22.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1ddd9e786765ab69b041e26709a2a8ba9b479bb4673cbc125938a2cb7b9b73ca
BLAKE2b-256 checksum
How to use checksums
8260a74ffc28d0180261e70243e03ebf53af170fdf7ff1f2cbc5427a07c95895
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.1-py3-none-any.whl

Download URL kinetic_st-0.1.1-py3-none-any.whl
Size 29.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
920e3d6c1f2e36a19b0a51f6f7da2503980e486a39e6cca66b930bdd7f6453d5
BLAKE2b-256 checksum
How to use checksums
d9b492125c547800146e4de7bfe28c9fae6cf7123ef3ad14bba331d74fe2f8e9
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.1

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.1 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