2025-01-02
{esqlabsR} What ?{esqlabsR} ?
{esqlabsR} Why ?➡️ Streamlined Simulation Workflow 🚀
{esqlabsR} ?
{esqlabsR} Where ?
Code repository: github.com/esqLABS/esqlabsR
Documentation: esqlabs.github.io/esqlabsR/
{esqlabsR} ?
{esqlabsR} How ?{esqlabsR} How ?
esqlabsR Workflow
{esqlabsR} ?
initProject() will create the expected simulation project’s folder structure.
I Project Configuration
Each one of these folders contains a series of .xlsx files with specific purpose.
my_project
├── ProjectConfiguration.xlsx
├── ProjectConfiguration.json
├── Configurations
│ ├── Applications.xlsx
│ ├── Individuals.xlsx
│ ├── ModelParameters.xlsx
│ ├── Plots.xlsx
│ ├── Populations.xlsx
│ ├── PopulationsCSV
│ │ └── TestPopulation.csv
│ └── Scenarios.xlsx
├── Data
├── Models
│ └── Simulations
│ └── Aciclovir.pkml
└── Results
├── Figures
└── SimulationResultsI Project Configuration
Project’s files are linked by the ProjectConfiguration.xlsx file.
my_project
├── ProjectConfiguration.xlsx
├── ProjectConfiguration.json
├── Configurations
│ ├── Applications.xlsx
│ ├── Individuals.xlsx
│ ├── ModelParameters.xlsx
│ ├── Plots.xlsx
│ ├── Populations.xlsx
│ ├── PopulationsCSV
│ │ └── TestPopulation.csv
│ └── Scenarios.xlsx
├── Data
├── Models
│ └── Simulations
│ └── Aciclovir.pkml
└── Results
├── Figures
└── SimulationResultsI Project Configuration
Everything is already configured !
I Project Configuration
createProjectConfiguration(path)
ProjectConfiguration.xlsx file,ProjectConfiguration object,I Project Configuration
ProjectConfiguration:
Project Configuration File: TestProject/ProjectConfiguration.xlsx
Model folder: TestProject/Models/Simulations
Configurations folder: TestProject/Configurations
Model parameters file: TestProject/Configurations/ModelParameters.xlsx
Individuals file: TestProject/Configurations/Individuals.xlsx
...
I Project Configuration
JSON Snapshots for version control and team collaboration
I Project Configuration
Simulations are defined by Scenarios.
Scenarios are setup in the Configurations/Scenarios.xlsx file.
II Design Scenarios
All in files !
II Design Scenarios
flowchart TD
Scenarios["`**Scenarios.xlsx**
• ModelFile
• ModelParametersSheets
• ApplicationProtocol
• IndividualId
• PopulationId`"]
Models["`**Models/**
• Model1.pkml
• Model2.pkml`"]
ModelParams["`**ModelParameters.xlsx**
ModelParametersSheets...
• ContainerPath
• Parameter Name
• Value
• Units`"]
Applications["`**Applications.xlsx**
ApplicationProtocol...
• ContainerPath
• Parameter Name
• Value
• Units`"]
Individuals["`**Individuals.xlsx**
IndividualBiometrics
IndividualId...
• ContainerPath
• Parameter Name
• Value
• Units`"]
Populations["`**Populations.xlsx**
Demographics
PopulationId...
• ContainerPath
• Parameter Name
• Mean
• SD
• Distribution`"]
Scenarios -->|ModelFile| Models
Scenarios -->|ModelParametersSheets| ModelParams
Scenarios -->|ApplicationProtocol| Applications
Scenarios -->|IndividualId| Individuals
Scenarios -->|PopulationId| Populations
style Scenarios fill:#e1f5e1,stroke:#4caf50,stroke-width:3px
style Models fill:#fff9c4,stroke:#fbc02d,stroke-width:2px
style ModelParams fill:#e1f5e1,stroke:#4caf50,stroke-width:2px
style Applications fill:#e1f5e1,stroke:#4caf50,stroke-width:2px
style Individuals fill:#e1f5e1,stroke:#4caf50,stroke-width:2px
style Populations fill:#e1f5e1,stroke:#4caf50,stroke-width:2px
II Design Scenarios
III Run Simulations
<ScenarioConfiguration>
── Scenario configuration ──────────────────────────────────────────────────────
• Scenario name: TestScenario
• Model file name: Aciclovir.pkml
• Application protocol: Aciclovir_iv_250mg
• Simulation type: Individual
• Individual Id: Indiv1
• Population Id: NULL
• Read population from csv file: FALSE
• Parameters sheets: Global
• Simulate steady-state: FALSE
• Steady-state time: 1000
── Simulation time intervals ──
Interval 1:
• Start: 0
• End: 24
• Resolution: 60
• Simulation time intervals unit: h
III Run Simulations
III Run Simulations
Simulation results are compatible with {ospsuite} plotting workflow.
IV Plot Results
IV Plot Results
Create plots (or plotgrids) from excel files using createPlotsFromExcel().
Available in esqlabsR v5.0.0+
IV Plot Results
Thank You