Real-Time Translational Medicine, Clinical Biophysics & Under-Tooled Quantitative Biology Python SDK
Developed and maintained under the Runtime-Slayers organization.
Install xenolocus directly from PyPI (requires Python >= 3.10; NumPy, SciPy, and Pandas are installed automatically):
pip install xenolocusOptional visualization support (matplotlib for generating 6-panel dashboards):
pip install "xenolocus[viz]"Verify installation immediately in a terminal or Python console:
python -m xenolocus self-test
python -c "import xenolocus as xl; print(xl.__version__, xl.snippets.self_test()['status'])"See Installation & Distribution for GitHub and editable developer installation options.
- Why XenoLocus Exists
- Systematic Comparison with Existing Frameworks
- Foundational Novelties & All 20 Modules
- Real-Time Clinical & Research Pipeline Architecture
- Installation & Distribution
- Command-Line Interface & Built-In Snippets
- Comprehensive Verification Suite & Visual Showcase
- Repository Layout
- License
Standard biomedical Python ecosystems are overwhelmingly concentrated on common DNA alignment, canonical protein embeddings, or basic descriptive HRV/EEG bandpower—leaving high-stakes real-time clinical physiology and cross-scale biophysics completely unserved:
- Neuro-ICU Monitoring lacks open real-time detectors for Cortical Spreading Depolarizations (CSDs) ("brain tsunamis" in stroke, SAH, and TBI) paired with burst-suppression and permutation entropy.
-
Sepsis & Shock Research relies on macro-hemodynamics (BP/HR) while ignoring Capillary Transit-Time Heterogeneity (CTH), Jespersen-Østergaard
$\mathrm{OEF}_{\max}$ , and endothelial glycocalyx PBR shedding. -
Cardio-Autonomic & Trauma Care lacks unified pure-Python engines for Sequence-Method Baroreflex Sensitivity (BRS), Schmidt Heart-Rate Turbulence (
$T_O / T_S$ ), and point-of-care viscoelastic TEG/ROTEM coagulopathy ($R, K, \alpha, MA, G, LY_{30}$ ). -
Clinical Biobanking & Personalized Phage Therapy require real-time Kedem-Katchalsky cryoprotectant ODEs and Storms Virulence Index (
$V_P$ ) + resistant mutant escape detection without heavy C/C++ build chains.
xenolocus unifies 20 underserved medical and quantitative biology domains + medguard (hard physiological bounds, distribution-free conformal prediction, and SHA-256 SafetyCertificate) into one lightweight PyPI library (numpy, scipy, pandas only).
| Capability / Real-Time Clinical Dimension | Biopython / Scanpy | MNE-Python | NeuroKit2 / BioSPPy | Commercial Clinical Silos | XenoLocus (xenolocus) |
|---|---|---|---|---|---|
| Cortical Spreading Depolarization (DC-ECoG CSD) | ❌ None | ❌ None | 🔒 Proprietary bedside | ✅ Real-time DC-shift + AC suppression + BSR + PE | |
| Microvascular CTH, |
❌ None | ❌ None | ❌ None | 🔒 Hardware-locked | ✅ Jespersen-Østergaard CTH + PBR + Vasomotion PSD |
| Spontaneous BRS, Heart-Rate Turbulence & PLV | ❌ None | ❌ None | 🔒 Holter firmware | ✅ Sequence BRS + Schmidt |
|
| Viscoelastic Coagulopathy (TEG/ROTEM) Kinetics | ❌ None | ❌ None | ❌ None | 🔒 Closed analyzers | ✅ Automated |
| CAR-T / Oocyte Cryopreservation Permeability | ❌ None | ❌ None | ❌ None | ❌ Custom MATLAB | ✅ Coupled Kedem-Katchalsky ODEs + Cooling IIF window |
| Bedside Phage Therapy Kill-Curve & Escape | ❌ None | ❌ None | ❌ None | ❌ Manual spreadsheets | ✅ Storms Virulence |
| Circadian Multi-Tissue Kuramoto Desynchrony | ❌ None | ❌ None | ❌ None | ❌ None | ✅ Gapped Lomb-Scargle/Cosinor + Kuramoto |
| Safety Assurance & Clinical Traceability | ❌ Silent NaNs | ❌ Silent NaNs | ❌ Silent NaNs | ✅ ClinicalBoundsError + Conformal + SHA-256 Audit |
| # | Subpackage | Underserved Domain | Real-Time Medical / Research Capability |
|---|---|---|---|
| 0 | xenolocus.medguard |
Clinical Safety & Conformal Audits |
ClinicalBoundsError, finite-sample conformal bands & SHA-256 SafetyCertificate
|
| 1 | xenolocus.neurodrift |
Neuro-ICU Spreading Depolarization | DC-ECoG CSD wave detection, Burst-Suppression Ratio (BSR %) & Permutation Entropy |
| 2 | xenolocus.microvasc |
Microvascular Sepsis & Perfusion | Capillary Transit-Time Heterogeneity ( |
| 3 | xenolocus.autonomix |
Clinical Autonomic Control | Sequence Baroreflex Sensitivity (BRS), Heart-Rate Turbulence ( |
| 4 | xenolocus.coagflow |
Trauma & Surgical Hemostasis | Automated TEG/ROTEM ( |
| 5 | xenolocus.cryobio |
Clinical Biobanking & Vitrification | Coupled Kedem-Katchalsky CPA osmotic ODEs & cooling-rate IIF survival windows |
| 6 | xenolocus.chronosync |
ICU & Oncology Chronotherapy | Uneven/gapped Lomb-Scargle + Cosinor rhythmometry & Kuramoto organ desynchrony |
| 7 | xenolocus.phagedyn |
Personalized Phage Therapy (AMR) | Microplate OD600 Virulence Index ( |
| 8 | xenolocus.fluxgraph |
Clinical Metabolomics | Tikhonov derivative smoothing, kinetic-free bottleneck localization & Laplacian diffusion |
| 9 | xenolocus.enzymkin |
Drug / CYP450 Enzyme Kinetics | AICc model selection across Michaelis-Menten, Hill allostery & Substrate Inhibition |
| 10 | xenolocus.chemotax |
Immune / Microbial Motility | Run-and-tumble trajectory segmentation, drift velocity & chemotactic index |
| 11 | xenolocus.epimem |
Epigenetic Inheritance & Clocks | Binary epiallele Simpson epipolymorphism & exponential memory half-life ( |
| 12 | xenolocus.thermobio |
Thermal Physiology & Stress | Asymmetric Briere-2 performance curves & Jensen's inequality thermal stress |
| 13 | xenolocus.phytoelec |
Plant Electrophysiology | Whittaker baseline drift removal, AP/VP/SP decomposition & conduction velocity |
| 14 | xenolocus.myconet |
Mycelial Bioelectricity | Ultra-slow spike burst-word Shannon entropy & Kirchhoff hyphal resistance |
| 15 | xenolocus.ferment |
Bioreactor Kinetics & Diauxie | Lag phase ( |
| 16 | xenolocus.ecotrait |
Functional Trait Hypervolumes | Gaussian-kernel hypervolumes (FRic, FDis), niche overlap & keystone cascades |
| 17 | xenolocus.pollination |
Mutualistic Bipartite Networks | Exact NODF nestedness, Blüthgen |
| 18 | xenolocus.allometry |
Biological Scaling (Kleiber) | Log-log Type-II Reduced Major Axis (RMA) scaling & bootstrap 95% CIs |
| 19 | xenolocus.hgt |
Reference-Free HGT / AMR Islands |
|
| 20 | xenolocus.proteotensor |
Twilight-Zone Remote Homologs | 5-channel biophysical tensors & alignment-free wavelet signatures |
flowchart TD
Input(["Raw Real-Time Telemetry / Assay Stream\n(DC-ECoG, Capillary Tau, RR+SBP, TEG, OD600, CPA)"]) --> Guard["xenolocus.medguard\n(verify_bounds & ClinicalBoundsError)"]
Guard --> Router{"Domain Dispatch"}
Router -->|Neuro-ICU| Neuro["neurodrift\n(CSD DC-Shifts + BSR + PE)"]
Router -->|Sepsis Microcirculation| Micro["microvasc\n(Jespersen-Ostergaard OEF_max + PBR)"]
Router -->|Cardio-Autonomic| Auto["autonomix\n(Sequence BRS + HRT T_O/T_S + PLV)"]
Router -->|Trauma Coagulopathy| Coag["coagflow\n(TEG R, K, alpha, MA, G, LY30)"]
Router -->|Biobanking & AMR| Trans["cryobio / phagedyn / chronosync"]
Neuro & Micro & Auto & Coag & Trans --> Conformal["medguard.conformal_safety_interval\n+ issue_safety_certificate (SHA-256)"]
Conformal --> Output(["Audit-Stamped JSON / Clinical Risk Tier\n(SAFE_GREEN | CAUTION_AMBER | CRITICAL_RED)"])
pip install xenolocuspip install git+https://github.com/Runtime-Slayers/XenoLocus.gitgit clone https://github.com/Runtime-Slayers/XenoLocus.git
cd XenoLocus
pip install -e ".[dev]"# Verify version & 20-module registry
xenolocus --version
xenolocus info
# Run deterministic self-test across all 12 translational pipelines
xenolocus self-test
# List, inspect, and execute built-in one-liner snippets
xenolocus list-snippets
xenolocus show-snippet 01_neuro_icu_csd_monitor
xenolocus run-snippet 04_trauma_teg_coagulopathyAfter pip install xenolocus, open any Python console (python or IPython/Jupyter) and run:
>>> import xenolocus as xl
>>> xl.__version__
'1.0.0'
>>> len(xl.MODULES)
20
>>> xl.snippets.self_test()["status"]
'PASS'from xenolocus import neurodrift, microvasc, autonomix, coagflow
# 1. Neuro-ICU Cortical Spreading Depolarization (CSD) & Burst-Suppression
_, ecog, eeg = neurodrift.simulate_neuro_icu_stream(n_csd=2)
csd_report = neurodrift.detect_spreading_depolarizations(ecog, sampling_rate_hz=1.0, eeg_uv=eeg)
print("CSDs:", csd_report.n_csd_events, "Tier:", csd_report.safety_certificate.risk_tier)
# 2. Sepsis Microvascular CTH & Endothelial Glycocalyx PBR
tau, widths, flux = microvasc.simulate_sepsis_microcirculation(septic=True)
mv = microvasc.analyze_microcirculation(tau, rbc_column_widths_um=widths, flow_flux_trace=flux)
print("OEF_max:", mv.oef_max, "PBR (um):", mv.pbr_glycocalyx_um)
# 3. Trauma Viscoelastic Coagulopathy (TEG) & Hyperfibrinolysis
t, amp = coagflow.simulate_teg_curve(phenotype="hyperfibrinolysis")
teg = coagflow.analyze_viscoelastic_coagulation(t, amp)
print("Phenotype:", teg.phenotype, "Action:", teg.recommended_action)PYTHONPATH=src pytest -W error -v- Rendered figures:
examples/xenolocus_sdk_showcase.pngandexamples/xenolocus_sdk_showcase.pdf.
XenoLocus/
├── .github/
│ └── workflows/
│ ├── ci.yml # Multi-OS, Multi-Python pytest & self-test CI
│ └── publish_pypi.yml # Automated PyPI release workflow on tag
├── docs/ # Theory, mathematical derivations & tutorials
├── examples/
│ ├── generate_showcase.py # 6-Panel translational medicine showcase generator
│ ├── xenolocus_sdk_showcase.png # Publication-grade 6-panel dashboard
│ ├── xenolocus_sdk_showcase.pdf # Vector showcase figure
│ ├── custom_research_pipeline.py
│ └── run_practitioner_cli.sh
├── manuscript/ # LaTeX manuscript & references
├── src/xenolocus/
│ ├── medguard/ # Clinical bounds, conformal intervals, SHA-256 audit
│ ├── neurodrift/ # Neuro-ICU CSD & burst-suppression monitor
│ ├── microvasc/ # Capillary CTH/OEF_max, glycocalyx PBR & vasomotion
│ ├── autonomix/ # Sequence BRS, heart-rate turbulence & PLV
│ ├── coagflow/ # Viscoelastic TEG/ROTEM & fibrinolysis kinetics
│ ├── cryobio/ # Kedem-Katchalsky cryopreservation ODEs
│ ├── chronosync/ # Gapped Lomb-Scargle/Cosinor & Kuramoto desynchrony
│ ├── phagedyn/ # Phage therapy virulence index & mutant escape
│ ├── fluxgraph/ # Metabolomics flux bottlenecks & Laplacian diffusion
│ ├── enzymkin/ # Non-MM enzyme kinetics AICc model selection
│ ├── chemotax/ # Run-and-tumble chemotaxis biophysics
│ ├── epimem/ # Transgenerational epigenetic memory half-life
│ ├── thermobio/ # Thermal performance curves & Jensen stress
│ ├── phytoelec/, myconet/, ferment/, ecotrait/, pollination/, allometry/, hgt/, proteotensor/
│ ├── core/, datasets/, io/, utils/
│ ├── snippets.py # 12 built-in translational snippets & self-test
│ └── cli.py # Unified xenolocus CLI entrypoint
├── tests/ # 61-test verification suite across all 20 modules
├── install_on_any_laptop.sh # Unix/macOS automated installer
├── install_on_windows.bat # Windows automated installer
├── publish_to_public_pypi.sh # Public PyPI build & twine upload script
├── pyproject.toml # PEP 517/518 build specification
├── setup.py # Setuptools configuration
├── CITATION.cff
├── CONTRIBUTING.md
└── LICENSE
XenoLocus is released under the MIT License.
Copyright (c) 2026 Runtime-Slayers & XenoLocus Research Consortium.
If you use XenoLocus in academic or clinical research, please cite (or use GitHub's Cite this repository button powered by CITATION.cff):
@software{xenolocus_2026,
author = {{Runtime-Slayers} and {XenoLocus Research Consortium}},
title = {{XenoLocus: Real-Time Translational Medicine, Clinical Biophysics \& Under-Tooled Quantitative Biology Python SDK}},
year = {2026},
version = {1.0.0},
url = {https://github.com/Runtime-Slayers/XenoLocus},
note = {PyPI: https://pypi.org/project/xenolocus/}
}