make_ShinyCGNM_simulationTimepoints: make_ShinyCGNM_simulationTimepoints

View source: R/shinyCGNM_related.R

make_ShinyCGNM_simulationTimepointsR Documentation

make_ShinyCGNM_simulationTimepoints

Description

A helper function to build the simulation time point table accepted by generateCGNM_script's simulationTimepoints_table (used when includeSimulationCode = TRUE). Unlike make_ShinyCGNM_observationData, there is no Observed_value/ResidualError_model, since nothing is being fit here - these are just the time points and expressions to simulate and plot.

Usage

make_ShinyCGNM_simulationTimepoints(
  ID,
  time,
  Observation_expression,
  Memo = NA,
  fileName = NA
)

Arguments

ID

(required input) string or vector which individual(s)/scenario(s) to simulate.

time

(required input) number or numeric vector time points to simulate at.

Observation_expression

(required input) string or string vector the name of a compartment (state variable) or derived (LHS) variable from the ODE, exactly as it appears in ODE_text - unlike make_ShinyCGNM_observationData's Observation_expression, this is matched by name, not evaluated as an expression, so e.g. "C_central" works but "log10(C_central)" does not.

Memo

(default: NA) NA, string, or string vector

fileName

(default: NA) NA or string

Value

data.frame if fileName is NA Null if fileName is not NA but instead write out the csv file

Examples


make_ShinyCGNM_simulationTimepoints(
ID=1,
time=seq(0,24,by=0.5),
Observation_expression="C_central"
)


CGNM documentation built on Sept. 13, 2026, 9:06 a.m.