simbiology-simulate-model

Simulate SimBiology models with ODE, stochastic SSA, scenarios, and sensitivity analysis.

995|122|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill simbiology-simulate-model
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: simbiology-simulate-model
Source: https://github.com/matlab/matlab-agentic-toolkit/tree/main/skills-catalog/computational-biology/simbiology-simulate-model
Command: npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill simbiology-simulate-model

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Running SimBiology model simulations involves many subtle pitfalls — solver selection, dose handling, scenario result ordering, and sensitivity configuration — that cause errors or silently wrong results when done incorrectly.

Core Features & Use Cases

  • Deterministic and Stochastic Simulation: Run ODE simulations with sbiosimulate or stochastic SSA ensembles for low-molecule-count systems like gene circuits.
  • Scenario Exploration: Perform dose sweeps, parameter sweeps, factorial designs, and virtual population sampling with SimBiology.Scenarios and createSimFunction.
  • Sensitivity Analysis: Identify influential parameters using Sobol global analysis, Morris screening, or local sensitivity via configset options.
  • Use Case: A pharmacologist asks which parameters most affect drug concentration over 24 hours; the agent runs sbiosobol with parameter bounds and reports first-order and total-order Sobol indices.

Quick Start

Ask your agent to simulate the loaded SimBiology model for 24 hours with a 100 mg bolus dose and plot the drug concentration over time.

Frequently Asked Questions about simbiology-simulate-model

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I simulate a SimBiology model in MATLAB?

Use sbiosimulate with the model and its active configset, setting StopTime and SolverType first. For repeated runs with varying parameters, use createSimFunction, which compiles once and executes many parameter sets efficiently.

How do I run a stochastic SSA simulation in SimBiology?

Set cs.SolverType = 'ssa' on the configset and call sbiosimulate in a loop for ensemble trajectories. All reactions must use MassAction kinetics, since the SSA solver does not support custom rate expressions.

What is the difference between Sobol and Morris sensitivity analysis?

Sobol (sbiosobol) quantifies first-order and interaction effects but needs 500-1000 samples. Morris (sbioelementaryeffects) is a cheaper screening method using 50-100 samples, best for ranking parameters before a full Sobol analysis.

Why does my SimBiology scenario simulation return results in unexpected order?

Factorial scenario results are interleaved by the first dimension, not blocked by factor. Always call generate(sc) to get a table mapping each result index to its dose and parameter conditions.

Can I pass a sbiodose object to a SimFunction?

No, passing a sbiodose object to a SimFunction errors. Convert doses to a table with Time and Amount columns, and declare the dosed species names as the fourth argument to createSimFunction.

When should I not use this simulation skill?

Do not use it for model construction or diagram layout, which belongs to simbiology-build-model, or for parameter estimation and NCA from data, which belongs to simbiology-fit-model.