A web app for running and interacting with simulations of T-world, a state-of-the-art computational model for a human ventricular myocyte.
- Overview
- Getting Started
- Stimulation Protocols
- Online Limits
- Parameter Controls
- Plotting Window
- Exporting Data
- Offline Access: Installation Instructions
- Troubleshooting
- Feedback
- License
- Acknowledgements
Welcome to T-World Online! This web application accompanies T-world—a state-of-the-art computational model of the human ventricular cardiomyocyte. It allows users to simulate the T-World model using a range of stimulation protocols and visualize the outputs. We hope it serves as a valuable tool for both educators and researchers.
- Head over to https://t-world-simulator-multipage-production.up.railway.app/
- Select a pacing protocol from the top navigation bar.
- Set the desired parameters for the pacing protocol and model using the controls on the left.
- Choose variables to plot using the dropdown menu above the plotting window.
- Click the green Run button. A loading ring will appear—your plot will display when it's done.
- Standard, fixed-rate pacing.
- Configure pacing frequency, number of beats, and how many final beats to display.
- A sequence of regular stimuli (S1) followed by a single extra stimulus (S2) at varying intervals.
- Useful for constructing restitution curves (APD vs. DI).
- Enter ranges in the format min:max:increment (e.g., 300:500:50 → [300, 350, 400, 450]).
- Multiple ranges can be comma-separated.
- APD and DI are computed at 90% repolarization.
- Upper plot: final two beats per S2 interval; lower plot: restitution curve.
- Fixed-rate pacing followed by quiescence.
- Configure the number of beats and the quiescence duration to study DAD behavior.
- Fixed-rate pacing over a range of cycle lengths.
- Investigate APD and CaT dependence on pacing frequency and check for alternans.
- Upper plot: last 4 APs for each pacing frequency; lower plot: APD and CaT amplitude vs. basic cycle length.
- This protocol is disabled for the online version of the app due to computational limits.
Due to limited compute resources, the online version:
- Limits the number of of pre-pacing beats to 500
- Limits the number of S2 intervals for restitution curves to 50
- Disables the rate dependence and alternans protocol
Running the app locally removes these limits.
Located on the left of the app, these allow configuration via sliders, dropdowns, and input fields. Invalid inputs highlight red. Users can:
- Choose from three cell types: endocardium, epicardium, midmyocardium.
- Select a preset: default, EAD prone, alternans with low SERCA, DAD prone.
- Adjust current multipliers.
- Set extracellular concentrations.
- Modify β-adrenergic signaling (β-ARS) via phosphorylation levels.
- Use dropdowns and tabs to select output variables.
- Note: rerun the simulation when new variables are selected.
- Click-and-drag to zoom; double-click to reset axes.
- Navigation tools appear in the top-right corner of the plot.
After running a simulation, click the Save data button to export the simulation and parameters as CSV files.
This can be verified by opening Termianl (MacOS/Linus) or Command Prompt (Windows) and typing
python --versiongit clone https://github.com/ThomasMBury/t-world-simulator-multipage.git
cd t-world-simulator-multipage
MacOS/Linus:
python -m venv venv
source venv/bin/activate
Windows:
python -m venv venv
.\venv\Scripts\activate
pip install --upgrade pip
pip install -r requirements.txt
python app.py
Then, open a browser and go to http://127.0.0.1:8050/ to view the app.
- If unresponsive, refresh your browser.
- Use a modern browser (Chrome, Firefox, Edge, Safari).
- For slow performance, consider installing the app locally.
Encounter an issue? Please submit it through GitHub Issues.
This project is licensed under the MIT License.
The app is built using Dash and simulations are run using myokit.
- TMB is supported by the FRQNT postdoctoral fellowship (314100).
- JT is supported by the Sir Henry Wellcome Fellowship (222781/Z/21/Z).
