The software described in this document is furnished under a license agreement. The software may be used
or copied only under the terms of the license agreement. No part of this manual may be photocopied or
reproduced in any form without prior written consent from The MathW orks, Inc.
FEDERAL ACQUISITION: This provision applies to all acquisitions of the Program and Documentation
by, for, or through the federal government of the United States. By accepting delivery of the Program
or Documentation, the government hereby agrees that this software or documentation qualifies as
commercial computer software or commercial computer software documentation as such terms are used
or defined in FAR 12.212, DFARS Part 227.72, and DFARS 252.227-7014. Accordingly, the terms and
conditions of this Agreement and only those rights specified in this Agreement, shall pertain to and govern
theuse,modification,reproduction,release,performance,display,anddisclosureoftheProgramand
Documentation by the federal government (or other entity acquiring for or through the federal government)
and shall supersede any conflicting contractual terms or conditions. If this License fails to meet the
government’s needs or is inconsistent in any respect with federal procurement law, the government agrees
to return the Program and Docu mentation, unused, to The MathWorks, Inc.
Trademarks
MATLAB and Simulink are registered trademarks of The MathWorks, Inc. See
www.mathworks.com/trademarks for a list of additional trademarks. Other product or brand
names may be trademarks or registered trademarks of their respective holders.
Patents
The MathWorks products are protected by one or more U.S. patents. Please see
www.mathworks.com/patents for more information.
Reference
Revision History
September 2005 Online onlyNew for Version 1.0 ( Release 14SP3+)
March 2006Online onlyUpdated for Version 1.0.1 (Release 2006a)
May 2006Online onlyUpdated for Version 2.0 (Release 2006a+)
September 2006 Online onlyUpdated for Version 2.0.1 (Release 2006b)
March 2007Online onlyRereleased for Version 2.1.1 (Release 2007a)
September 2007 Online onlyRereleased for Version 2.1.2 (Release 2007b)
October 2007Online onlyUpdated for Version 2.2 (Release 2007b+)
March 2008Online onlyUpdated for Version 2.3 (Release 2008a)
October 2008Online onlyUpdated for Version 2.4 (Release 2008b)
March 2009Online onlyUpdated for Version 3.0 (Release 2009a)
September 2009 Online onlyUpdated for Version 3.1 (Release 2009b)
March 2010Online onlyUpdated for Version 3.2 (Release 2010a)
Function Reference
1
Modeling, Simulation, and Analysis Tools ............1-2
DescriptionabstkineticlawObj = sbioabstractkineticlaw('Name') creates an
abstract kinetic law object, with the name
abstkineticlawObj. Use the abstract kinetic law object to specify a
kinetic law definition.
Enteranameforthekineticlawdefinition.
Name must be unique in the user-defined
kinetic law library.
kineticlawObj.
Name is referenced by
The mathematical expression that defines the
kinetic law.
Name and returns it to
2-2
The kinetic law definition provides a mechanism for applying a specific
rate law to multiple reactions. It acts as a mapping template for
the reaction rate. The kinetic law definition defines a reaction rate
expression, which is shown in the property
Expression,andthespecies
and parameter variables used in the expression. The species variables
are defined in the
variables are defined in the
SpeciesVariables property, and the parameter
ParameterVariables property of the
abstract kinetic law object.
In order to use the kinetic law definition, it must be added to the
user-defined library with the
sbioaddtolibrary function. To get the
kinetic law definitions in the user-defined library, use the command
DescriptionUse the same arguments in sbioaccelerate that you will use in the
subsequent call to
sbioaccelerate(modelObj) prepares a model object (modelObj)for
accelerated simulation using its active configset, active variants and
active dos es. A SimBiology model can contain multip le configsets with
one being active at any given time. The active configset contains the
settings that will be used to prepare the model for acceleration.
sbioaccelerate(modelObj, configsetObj) uses the configset
configsetObj. Aconfigsetobjectstoressimulation specific information.
sbiosimulate.
2-6
sbioaccelerate(modelObj, variantObj) uses the variant object or array
of variant objects
variantObj. A variant object’s settings supersede
model property-values.
sbioaccelerate(modelObj, doseObj) simulates modelObj using the
dose obje ct or array of dose objects
doseObj. A SimBiology Dose object
defines additions that are made to species amounts or parameter values.
sbioaccelerate(modelObj, configsetObj, variantObj),
sbioaccelerate(modelObj, configsetObj, doseObj) uses the configset
configsetObj and variant object or variant array variantObj or dose
Specify the abstract kinetic law object that
holds the kinetic law definition. The
ofthekineticlawmustbeuniqueinthe
user-defined kinetic law library.
referenced by
information about creating
see
sbioabstractkineticlaw.
Specify the user-defined unit to add to the
library. For more information about creating
unitObj,seesbiounit.
Specify the user-defined unit prefix to
add to the library. For more information
about creating
sbiounitprefix.
sbioaddtolibrary
Name
Name is
kineticlawObj.Formore
kineticlawObj,
unitprefixObj,see
DescriptionThe function sbioaddtolibrary adds kinetic law definitions, units, and
unit prefixes to the user-defined library.
sbioaddtolibrary (abstkineticlawObj) adds the abstract kinetic law
object (
sbioaddtolibrary (unitObj) adds the user-defined unit (unitObj)to
the user-defined library.
sbioaddtolibrary (unitprefixObj) adds the user-defined unit prefix
(
The
or unit prefix to the root object’s
abstkineticlawObj) to the user-defined library.
unitprefixObj) to the user-defined library.
sbioaddtolibrary function adds any kinetic law definition, unit,
UserDefinedLibrary property. These
2-9
sbioaddtolibrary
library components become available automatically in future MATLAB
sessions.
Use the kinetic law definitions in the built-in and user-defined library
to construct a kinetic law object with the method
To get a component of the built-in and user-defined libraries, use the
commands
'UserDefinedLibrary'))
get(sbioroot, 'BuiltInLibrary') and (get(sbioroot,
.
To remove the library component from the user-defined library, use the
function
sbioremovefromlibrary. You cannot remove a kinetic law
definition being used by a reaction.
ExamplesThis example shows how to create a kinetic law definition and add it to
4 Use the new kinetic law definition when defining a reaction’s kinetic
law.
modelObj = sbiomodel('cell');
reactionObj = addreaction(modelObj, 'A + B <-> B + C');
kineticlawObj = addkineticlaw(reactionObj, 'ex_mylaw1');
Note Remember to specify the SpeciesVariableNames and the
ParameterVariableNames in kineticlawObj to fully define the
ReactionRate of the reaction.
See Alsoaddkineticlaw, sbioabstractkineticlaw, sbioremovefromlibrary,
sbioroot, sbiounit, sbiounitprefix
2-11
sbioconsmoiety
PurposeFind conserved moieties in SimBiology model
Syntax[G, Sp] = sbioconsmoiety(modelObj)
[G, Sp] = sbioconsmoiety(modelObj, alg
H = sbioconsmoiety(modelObj, alg,'p')
H = sbioconsmoiety(modelObj, alg,'p', FormatArg)[SI, SD, L0, NR, ND] = sbioconsmoiety(modelObj,'link')
Arguments
G
Sp
modelObj
alg
H
p
FormatArg
SI
An m-by-n matrix, where m is the number of
conserved quantities found and
of species in the model. Each row of
linear combination of species whose rate of cha nge
over time is zero.
Cell array of species namesthatlabelsthecolumns
of
G. If the species are in multiple compartments,
species names are qualified with the compartment
name in the form
For example,
nucleus.DNA, cytoplasm.mRNA.
Model object to be evaluated for conserved moieties.
Specify algorithm to use during evaluation of
conserved moieties. Valid values are
'rreduce',or'semipos'.
Cell array of strings containing the conserved
moieties.
Prints the output to a cell array of strings.
Specifies formatting for the output H. FormatArg
should either be a C-style format string, or a
positive integer specifying the maximum number of
digits of precision used.
Cell array containing the names of independent
species in the model.
)
n is the number
G specifies a
compartmentName.speciesName.
'qr',
2-12
sbioconsmoiety
SD
Cell array containing the names of dependent
species in the model.
L0
Link matrix relating SI and SD. The link matrix L0
satisfies ND = L0*NR.Forthe'link' functionality,
species with their
ConstantAmount properties set to true are treated
BoundaryCondition or
as having stoichiometry of zero in all reactions.
NR
Reduced stoichiometry matrices containing one row
for each independent species. The concatenated
ND
matrix
full stoichiometry matrix of
Reduced stoichiometry matrices containing one
[NR;ND] is a row-permuted version of the
modelObj.
row for each dependent species. The concatenated
matrix
full stoichiometry matrix of
[NR;ND] is a row-permuted version of the
modelObj.
Description[G, Sp] = sbioconsmoiety(modelObj) calculates a complete set of linear
conservation relations for the species in the SimBio lo gy model object
modelObj.
sbioconsmoiety computes conservation relations by analy zing
the structure of the model object’s stoichiometry matrix. Thus,
sbioconsmoiety does not include species that a re governed by algebraic
or rate rules.
[G, Sp] = sbioconsmoiety(modelObj, alg) provides an algorithm
specification. For
• When you specify
on
QR factorization. From a numerical standpoint, this is the most
alg,specify'qr' , 'rreduce' ,or'semipos'.
'qr', sbioconsmoiety uses an algorithm based
efficient and reliable approach.
• When you specify
'rreduce', sbioconsmoiety uses an algorithm
based on row reduction, which yields better numbers for smaller
models. This is the default.
2-13
sbioconsmoiety
• When you specify 'semipos', sbioconsmoiety returns conservation
relations in which all the coefficients are greater than or equal to 0,
permitting a more transparent interpretation in terms of physical
quantities.
Forlargermodels,the
models, row reduction or the semipositive algorithm may be preferable.
For row reduction and
relations re turne d equals the row rank degeneracy of the model object’s
stoichiometry matrix. The semipositive algorithm may return a
different number of relations. Mathem atically s p eaking, this algorithm
returns a generating set of vectors for the space of semipositive
conservation relations.
H = sbioconsmoiety(modelObj, alg,'p') returns a cell array of strings
H containing the conserved quantities in modelObj.
H = sbioconsmoiety(modelObj, alg,'p', FormatArg) specifies
formatting for the output
format string, or a positive integer specifying the maximum number
of digits of precision used.
[SI, SD, L0, NR, ND] = sbioconsmoiety(modelObj,'link') uses a
QR-based algorithm to compute information relevant to the dimensional
reduction, via conservation relations, of the reaction network in
modelObj.
ExamplesExample 1
This example shows conserved moieties in a cycle.
1 Create a model with a cycle. For convenience u se arbitrary reaction
rates, as this will not affect the result.
QR-based method is recommended. For smaller
QR factorization, the num ber of con serv ati on
H. FormatArg should either be a C-style
2-14
lObj = sbiomodel('cycle');
mode
lObj.addreaction('a -> b','ReactionRate','1');
mode
lObj.addreaction('b -> c','ReactionRate','b');
mode
elObj.addreaction('c -> a','ReactionRate','2*c');
mod
sbioconsmoiety
2 Look for conserved moieties.
[g sp] = sbioconsmoiety(modelObj)
g=
111
sp =
'a'
'b'
'c'
Example 2
Explore semipositive conservation relations in the oscillator model.
modelObj = sbmlimport('oscillator');
sbioconsmoiety(modelObj,'semipos','p')
ans =
'pol + pol_OpA + pol_OpB + pol_OpC'
'OpB + pol_OpB + pA_OpB1 + pA_OpB_pA + pA_OpB2'
'OpA + pol_OpA + pC_OpA1 + pC_OpA2 + pC_OpA_pC'
'OpC + pol_OpC + pB_OpC1 + pB_OpC2 + pB_OpC_pB'
See Also“Moiety Conservation” in the SimBiology User’s Guide documentation
SimBiology method
getstoichmatrix
2-15
sbioconvertunits
PurposeConvert unit and unit value to new unit
Syntaxsbioconvertunits(Obj,'unit')
Descriptionsbioconvertunits(Obj,'unit') converts the current *Units property
on SimBiology object,
the
*Units property to unit and updates the corresponding value
property. For example,
InitialAmount property value and the InitialAmountUnits property
value.
Obj can be an array of SimBiology objects. Obj must be a SimBiology
object that contains a unit property. The SimBiology objects that
contain a unit property are compartment, parameter, and species
objects. For example, if
configured to 1 and InitialAmountUnits configured to mole,afterthe
call to
InitialAmount
sbioconvertunits with unit specified as molecule, speciesObj
Obj to the unit, unit. This function configures
sbioconverunits on a speciesObj updates the
Obj is a species object with InitialAmount
is 6.0221e23 and InitialAmountUnits is molecule.
ExamplesConvert the units of the initial amount of glucose from molecule to
mole.
1 Create the species 'glucose' and assign an initial amount of 23
2 Add the new a kinetic law definition to the user-defined library.
sbioaddtolibrary(abstkineticlawObj);
sbioaddtolibrary
library. You can verify this using
sbiowhos -kineticlaw -userdefined
adds the kinetic law definition to the user-defined
sbiowhos.
.sbklib file.
2-18
sbiocopylibrary
SimBiology Abstract Kinetic Law Array
Index:Library:Name:Expression:
1UserDefinedmylaw1(k1*s)/(k2+k1+s)
3 Copy the user-defined kinetic law library.
sbiocopylibrary ('kineticlaw','myLibFile')
4 Verify with sbiowhos.
sbiowhos -kineticlaw myLibFile
See Alsosbioaddtolibrary, sbioabstractkineticlaw, sbioregisterunit,
sbioregisterunitprefix, sbioremovefromlibrary
2-19
sbiodesktop
PurposeOpen SimBiology modeling and simulati o n GUI
Syntaxsbiodesktop
sbiodesktop(modelObj
Arguments
modelObj
Descriptionsbiodesktop opens the SimBiology desktop, which lets you do the
following:
• Build a SimBiology model b y representing reaction pathways and
entering kinetic data for the reactions.
• Import or export SimBiology models to and from the MATLAB
workspace or from a Systems Biology Markup Language (SBML) file.
)
Model object or an array of model objects . Enter
the variable name for a top-level SimBiolo gy
model object. If you enter an array of model
objects, the SimBiology desktop opens with
each model object in a separate model session.
2-20
• Modify an existing SimBiology model.
• Simulate a SimBiology model through individual or ensemble runs.
• View results from the simulation.
• Perform analysis tasks such as sensitivity analysis, parameter and
species scans, and calculate conserved moieties.
• Create and/or modify user-defined units and unit prefixes.
• Create and/or modify user-defined kinetic laws.
sbiodesktop(modelObj) opens the SimBiolo gy desktop with a top-level
SimBiology model object (
SimBiology desktop, this command adds the model (
project. A top-level SimBiology model object has its property
to the SimBiology root object. Thus, querying
modelObj). If there is a project o pen in the
modelObj)tothe
Parent set
sbioroot at the command
sbiodesktop
line shows you all models in the MATLAB workspace, including the
models available in the desktop. Any changes you make to the model at
the command line are reflected in thedesktopbecausebotharepointing
to the same model object in the
Note The sbioreset command removes all models from the root
object and therefore this command also removes all models from the
SimBiology desktop.
ExamplesCreate a SimBiology model in the MATLAB workspace, and then open
dose object properties. You can enter the property name/property
value pairs in any format supported by the function
name-value string pairs, structures, and name-value cell array pairs).
You can view additional
modify
2-22
ScheduleDose object or RepeatDose object (doseObj).
set (for example,
doseObj properties with the get command and
doseObj properties with the set command.
Before you use a dose object in a simulation, you must add the object to
a SimBiology model with the method
An object that contains simulation data generated
by
sbioensemblerun. All elements of simdataObj
must contain data for the same states in the same
model.
Modelobjecttobesimulated.
Integer scalar representing the number of
stochastic runs to make.
String variable denoting the interpolation scheme
to be used if data should be interpolated to get a
consistent time vector. Valid values are
(linear interpolation), 'zoh' (zero-order hold),
or
'off' (no interpolation). Default is 'off'.If
interpolationison,thedataisinterpolatedto
match the time vector with the smallest simulation
stop time.
'linear'
2-27
sbioensemblerun
configsetObj
Specify the configuration set object to use in the
ensemble simulation. For more information about
variantObj
configuration sets, see
Specify the variant object to apply to the model
Configset object.
during the ensemble simulation. For more
information about variant objects, see
object
.
Variant
DescriptionsimdataObj = sbioensemblerun(modelObj, Numruns) performs a
stochastic ensemble run of the SimBiology model object (
returns the results in the SimData object (
simdataObj). The active
configset and the active variants are used during simulation and are
saved in the output, SimData object (
sbioensemblerun uses the settings in the active configset on the
model object (
SolverType property of the active configset must be set to one of the
stochastic solvers:
modelObj) to perform the repeated simulation runs. The
'ssa', 'expltau',or'impltau'. sbioensemblerun
simdataObj).
generates an error if the SolverType property is set to any of the
deterministic (ODE) solvers.
performs a stochastic ensemble run of a model object (modelObj), and
interpolates the results of the ensemble run onto a common time vector
using the interpolation scheme (
performs an ensemble run of a model object (modelObj),
using the variant object or array of variant objects (
interpolates the results of the ensemble run onto a common time vector
using the interpolation scheme (
Tip The LogDecimation property lets y ou define how often the
simulation data is recorded as output. If your model has high
concentrations or amounts of species, or a long simulation time (for
example,
the amount of data generated. Be aware that by doing so you might
miss some transitions if your model is very dynamic. Try setting
LogDecimation to 10 or more.
3 Perform an ensemble of 20 runs with linear interpolation to get
a consistent time vector.
4 Create a 2-D distribution plot of the species 'z' at a time = 1.0.
so = get(cs, 'SolverOptions');
set(so, 'LogDecimation', 10);
600s), you can record simulation data less often to manage
simdata = sbioensemblerun(m1, 20, 'linear');
FH = sbioensembleplot(simdata, 'z', 1.0);
See Alsoaddconfigset, getconfigset, sbioensemblestats,
Vector of doubles that holds the common time
vector after interpolation.
Matrix of mean values from the ensemble data. The
number of rows in
time vector
t after interpolation and the number
m is the length of the common
of columns is equal to the number of species. The
species order corresponding to the columns of
can be obtained from any of the SimData objects in
simDataObj using sbiogetnamedstate.
A cell array of SimData objects, where each
SimData object holds data for a separate simulation
run. All elements of
for the same states in the same model. When the
time vectors of the elements of
identical,
simDataObj is first resampled onto a
common time vector (see
Matrix of variance obtained from the ensemble
data.
v has the same dimensions as m.
Cell array of strings that holds names whose mean
and variance are returned in
The number of elements in
number of columns of
in
n corresponds to the order of columns of m and v.
sbioensemblestats
m
simDataObj must contain data
simDataObj are not
interpolation below).
m and v,respectively.
n isthesameasthe
m and v. T he order o f names
2-31
sbioensemblestats
names
interpolation
Either a string or a cell array of strings.
names may include qualified names such
as
'CompartmentName.SpeciesName' or
'ReactionName.ParameterName' to resolve
ambiguities. If you specify empty
sbioensemblestats returns statistics on all time
courses contained in
simDataObj.
{} for names,
String variable denoting the interpolation method
to be used if data is to be interpolated to get a
consistent time vector. See
of interpolation methods. Default is
resample for a list
'off'.If
interpolationison,thedataisinterpolatedto
match the time vector with the smallest simulation
stop time.
Description[t,m] = sbioensemblestats(simDataObj) computes the time-dependent
ensemble mean
sbioensemblerun.
[t,m,v] = sbioensemblestats(simDataObj) computes the
time-dependent ensemble mean
data
simDataObj.
[t,m,v,n] = sbioensemblestats(simDataObj) computes the
time-dependent ensemble mean
data
simDataObj. Eachcolumnofm or v describes the ensemble mean
or variance of some state as a function of time.
m of the ensemble data simDataObj obtained by running
m an d variance v for the e n semble run
m an d variance v for the e n semble run
ExamplesThe project file, radiodecay.sbproj, contains a model stored in a
variable called
1 Load a SimBiology model m1 from a SimBiology project file.
sbioloadproject('radiodecay.sbproj','m1');
2-32
m1.Loadm1 into the MATLAB workspace.
sbioensemblestats
2 Change the solver of the active configuration set to be ssa.Also,
Required property to specify a trigger
condition. Must be a MATLAB expression
that evaluates to a logical value.
A string or a cell array of strings, each
of which specifies an assignment of the
form
'objectname = expression',
where
SimBiology object.
Property name for an event object from
“Property Summary” on page 2-35.
Property value. For more information
on property values, see the property
reference for each property listed in
“Property Summary” on page 2-35.
objectname is the name of a valid
DescriptioneventObj = sbioevent(TriggerValue, EventFcnsValue) creates a
2-34
SimBiology event object, assigns a value (
property
EventFcns, and returns the object (eventObj).
During model simulation, an event is triggered and its
evaluated when the
an event to be used in a simulation, the event object must be added to a
SimBiology model object with the
Trigger, assigns a value (EventFcnsValu e) to the property
Trigger transitions from false to true. In order for
copyobj function.
TriggerValue)forthe
EventFcns are
sbioevent
The preferred way to work with events is to add an event to a
SimBiology model with the
For details on how events are handled during a simulation, see
“Changing Model Component Values Using Events” in the SimBiology
User’s Guide documentation.
optional properties. The property name/property value pairs can be any
format supported by the function
pairs, structures, and name-value cell array pairs).
addevent function.
set (for example, name-value string
Method
Summary
Property
Summary
copyobj (any object)Copy SimBiology object and its
children
delete (any object)Delete SimBiology object
display(anyobject)DisplaysummaryofSimBiology
object
get (any object)Get object properties
set (any object)Set object properties
Active
Annotation
EventFcns
Name
Notes
Parent
Tag
Indicate object in use during
simulation
Store link to URL or file
Event expression
Specify name of object
HTML text describing SimBiology
object
Indicate parent object
Specify label for SimBiology
object
2-35
sbioevent
Trigger
Type
UserData
Examples1 Create an event object.
eventObj = sbioevent('time>= 5', 'OpC = 200');
2 Get a list of properties for the event object.
get(eventObj)
MATLAB displays a list of ev ent properties.
Active: 1
Annotation: ''
EventFcns: {'OpC = 200'}
Name: ''
Notes: ''
Parent: [1x1 SimBiology.Model]
Tag: ''
Trigger: 'time >= 5'
Type: 'event'
UserData: []
Event trigger
Display top-level SimBiology
object type
Specifydatatoassociatewith
object
See Alsoaddevent, copyobj, Event object
2-36
sbiofitstatusplot
PurposePlot status of sbionlmefit
Syntaxstop = sbiofitstatusplot(beta, stat us, state)
optional pro perties. The property name/property value pairs can be in
any format supported by the function
string pairs, structures, and name-value cell array pairs).
NameValue) to the property Name.
Required property to specify a unique name for
a
model object. Enter a character string.
Property name for a Model object from
“Property Summary” on page 2-54.
Property value. Valid value for the specified
property.
DescriptionnmdefObj = sbionmfiledef creates an NONMEM file definition object.
The NONMEM file definition object contains properties for specifying
the NONMEM data items such as group, time, and dependent variable.
The NONMEM file definition object lets you configure the properties
to the column heading or the index of the column. Use the NONMEM
file definition object in conjunction with the
import NONMEM formatted files for use in fitting.
accepts one or more comma-separated property name/value pairs.
Specify
interpretations for NONMEM formatted files see “Support for Importing
NONMEM F ormatted Files” in the SimBiology documentation.
PropertyName inside single quotes. To see the default
sbionmimport function to
Tips• Use sbionmfiledef with sbionmimport if you want to apply
NONMEM interpretation of headers, and the data file has column
header labels different from the table shown in “Support for
Importing NONMEM Formatted Files”
Input
Arguments
2-68
• Use
Filename
Property Name/Value Pairs
CompartmentLabel
sbionmimport if the data file has column header labels identical
to the table shown in “Support for Importing NONMEM Formatted
Files”.
If Filename extension is .xls or .xlsx it is assumed to
be an Excel
sbionmfiledef file reads the file using the dataset constructor.
®
file, otherwise it is assumed to be a text file.
sbionmfiledef
Identifies the column in the NONMEM formatted file that
contains the compartment. Specify the header name as a
string
the
or specify the index number of the header. During import
sbionmimport function uses the information in the column
to interpret which compartment receives a dose or measured an
observation. The
EventIDLabel property specifies whether the
value is a dose or an observation.
char
Default:
ContinuousCovariateLabels
''
Identifies the column in the NONMEM formatted file that
contains continuous covariates. Specify the header name as a
char string or specify the index number of the header.
Default:
DateLabel
{}
Identifies the column in the NONMEM formatted file that
contains the date. Specify the header name as a
char string
or specify the index number of the header. During import the
sbionmimport function uses the information in the column to
interpret time information for each dose, response and covariate
measurements.
Default:
DependentVariableLabel
''
Identifies the column in the NONMEM formatted file that
contains observations. S pecify the header name as a
or specify the index number of the header. During import the
sbionmimport function uses the information in the column to
interpret date and time information for each dose and response.
char string
Default:
''
2-69
sbionmfiledef
DoseLabel
Identifies the column in the NONMEM formatted file that
contains the dosing information. Specify the header name as a
char string or specify the index number of the header.
Default:
DoseIntervalLabel
''
Identifies the column in the NONMEM formatted file that
contains the time between doses. Specify the header name as a
char string or specify the index number of the header.
Default:
DoseRepeatLabel
''
Identifies the column in the NONMEM formatted file that
contains the number of times (excluding the initial dose) that the
dose is repeated. Specify the header name as a
char string or
specify the index number of the header.
Default:
EventIDLabel
''
Identifies the column in the NONMEM formatted file that
contains the event identification specifying whether the value is
a dose, observation, or covariate. Specify the header name as a
char string or specify the index number of the header.
2-70
Default:
GroupLabel
''
Identifies the column in the NONMEM formatted file that
contains the Group ID. Specify the h eader name as a
or specify the index number of the header.
char string
sbionmfiledef
Default: ''
MissingDependentVariableLabel
Identifies the column in the NONMEM formatted file that
contains information about whether a row contains an observation
event (
or specify the index number of the header.
0), or not (1). Specify the header name as a char string
Output
Arguments
Default:
RateLabel
''
Identifies the column in the NONMEM formatted file that
contains the rate of infusion. Specify the header name as a
string
Default:
TimeLabel
or specify the index number of the header.
''
Identifies the column in the NONMEM formatted file that
containsthetimeordateofobservation. Duringimportthe
sbionmimport function uses this information to interpret when
a dose was given, an observation or covariate measurement
recorded. Specify the header name as a
char string or specify
the index number of the header.
Default:
Type
''
Identifies the object as 'NMFileDef',(Read-only).
nmdefObj
Defines the meanings of the file column headings. It contains
properties for specifying data items such as group, time and date.
TimeLabel and DependentVariableLabel must be specified.
char
2-71
sbionmfiledef
ExamplesConfigure a NONMEM file definition object and import data from a
comma-separated parameter name/value pairs that are accepted by the
dataset function. If dataset requ ires additional information to read
the file such as the delimiter, specify these as property value pairs in
sbionmimport.Seedataset in the Statistics Toolbox documentation for
a list of supported property value pairs.
simbioDataset = sbionmimport(nmds, nmdefObj) converts a
NONMEM formatted
dataset array (nmds), into a SimBiology
formatted data set.
[simbioDataset, PKDataObj] = sbionmimport(...) returns a
PKData object,
PKDataObj properties show the labels specified in simbioDataset.
PKDataObj containing the data set simbioDataset.The
2-73
sbionmimport
Input
Arguments
Output
Arguments
Filename
If extension of Filename is .xls or .xlsx, sbionmimport assumes
it to be an Excel file. Otherw ise
is a text file. sbionmimport reads the file using the dataset
constructor.
nmds
nmds is an NONM EM formatted dataset object, in other words a
NONMEM formatted file imported using the
For more information see dataset in the Statistics Toolbox
documentation.
nmdefObj
nmdefObj defines the m eanings of the file column headings.
nmdefObj is a NONMEM file definition object created using the
sbionmfiledef function. It contains properties for specifying
data items such as group, time, and date. You must specify the
TimeLabel and the DependentVariableLabel properties.
simbioDataset
The SimBiology formatted data set uses a separate column
for each dose and observation. The
simbioDataset contains a list of warnings that occurred while
constructing
(simbioDataset, 'Description')
simbioDataset. To view the warnings enter: get
sbionmimport assumes Filename
dataset command.
Description property of
.
PkDataObj
The PKData object defines the data to use in fitting and the roles
of the columns used for estimation. For more information, see
Vector of estimated parameter values. For all
optimization methods except
parameters are constrained to be greater than or
equal to zero.
struct
with fields that provide information
about the progress of optimization.
An n-by-1 vector representing the time span of
the target data
xtarget.
An n-by-m matrix, where n is the number of time
samples and
m is the number of states you would
like to match during the simulation. States can
only be spec ies varying with time. You cannot
use time varying (nonconstant) parameters. The
number of rows of
the number of rows of
xtarget mustbethesameas
tspan.
'fminsearch' the
2-76
sbioparamestim
species_array
parameter_array
Either an array of species objects or a cell array
of names of species in
modelObj whose amounts
should be matched during the estimation
process. The length of the
species_array
must be the same as the number of columns in
xtarget. If there are species with duplicate
names in d ifferent compartments, either use
qualified names to identify the species correctly
or use an array of species objects to identify the
species correctly.
the order of the specie s in
sbioparamestim assumes that
species_array is
thesameastheorderusedtospecifycolumns
of
xtarget. For example, a qualified name for
aspeciesnamed
named
comp2 is comp2.sp1.
sp1 that is in a compartment
Either an array of parameter objects or a cell
array of names of parameters in
modelObj whose
values should be estimated. If you do not specify
parameter_array, sbioparamestim estimates
all the parameters in the model. When a vector
of parameter initial values (
sbioparamestim takes the initial values from
modelObj. When there are parameters with
k0) is not specified,
duplicate names, use either parameter objects
or qualified parameter names to identify the
right parameter object. For example, for a
parameter named
named
reaction1 and at the kinetic law level,
the qualified nam e is
param1 used in a reaction
reaction1.param1.
2-77
sbioparamestim
k0
method
Array of doubles that holds initial values of
parameters to be estimated. The length of
same as that of
specify
k0, sbioparamestim ignores any initial
parameter_array.Whenyou
k0 is
values specified in active variants attached to
the model. If left unspecified,
sbioparamestim
takes initial values for parameters from the
model (
sbioparamestim uses any initial values specified
in the active variants. See
modelObj) or, if there are active variants,
Variant object for
more information about variants.
Either a string or a cell array. If it is a
string, it must be the nam e of the optimization
algorithm to be used during the estimation
process. Valid values are
xtarget), whose time variation is given by the time span tspan.
modelObj must be a top-level SimBiology model. A top-level SimBiology
model object has its
If the Optimization Toolbox™ product is installed,
uses lsqnonlin for parameter estimation. If the Optimization Toolbox
product is not installed,
Given a m odel and some target data, estimate all of its parameters
withouthavingtospecifyanyinitialvalues. This is the simplest case.
Estimate all of its parameters using the default method.
1 Load a model from the project, gprotein_norules.sbproj.The
project contains two models, one for the wild-type strain (stored in
variable
Load the G protein model for the wild-type strain.
sbioparamestim
Parent property set to the SimBiology root object.
sbioparamestim
sbioparamestim uses fminsearch.
m1), and one for the mutant strain (stored in variable m2).
Property for a parameter object. Enter a unique
character string. Since objects can use this
property to reference a parameter, a parameter
object must have a u n iq u e name at the level it
is created. For example, a kinetic law object
cannot contain two parameter objects named
kappa. However, the model object that contains
the kinetic law object can contain a parameter
object named
object.
kappa along with the kinetic law
ValueValue
You can use the function
object with a s pecific
For information on naming parameters, see
Name.
Value of a parameter object. Enter a number.
sbioselect to find an
Name property value.
DescriptionparameterObj = sbioparameter(Obj, NameValue) constructs a
2-82
SimBiology parameter object, enters a value (
required property
To use a parameter object (
theobjecttoaSimBiologymodel,orkinetic law object with the method
Name, and returns the object (parameterObj).
paramaterObj) in a simulation, you must add
NameValue)forthe
sbioparameter
copyobj.Youcanusetheaddparameter method to simultaneously
create and assign a parameter to a model or kinetic law object.
defines optional properties. The property name/property value pairs
can be in any format supported by the function
name-value string pairs, structures, and name-value cell array pairs).
Copy a SimBiology parameter object to a SimBiology model or kinetic
law object with the method
copyobj. Remove a parameter object from a
model or kinetic law object with the method
NameValue) to the property Name,
parameterObj).
set (for example,
delete.
Method
Summary
View additional parameter object properties with the
Modify additional parameter object properties with the
You can find help for