From 156b82b88dbd73e9370c74b474432b410415046d Mon Sep 17 00:00:00 2001
From: Johannes Ranke The function usually takes several expressions, each assigning a compound
-name to a list, specifying the kinetic model type and reaction or transfer
-to other observed compartments. Instead of specifying several expressions, a
-list of lists can be given in the speclist argument. This function is usually called using a call to mkinsub()
for each observed
+variable, specifying the corresponding submodel as well as outgoing pathways
+(see examples).mkinmod(
@@ -166,19 +164,19 @@ list of lists can be given in the speclist argument.
For each observed variable, a list has to be specified as an
-argument, containing at least a component type
, specifying the type
-of kinetics to use for the variable. Currently, single first order
-kinetics "SFO", indeterminate order rate equation kinetics "IORE", or
-single first order with reversible binding "SFORB" are implemented for all
-variables, while "FOMC", "DFOP" and "HS" can additionally be chosen for
-the first variable which is assumed to be the source compartment.
-Additionally, each component of the list can include a character vector
-to
, specifying names of variables to which a transfer is to be
-assumed in the model. If the argument use_of_ff
is set to "min"
+
For each observed variable, a list as obtained by mkinsub()
+has to be specified as an argument (see examples). Currently, single
+first order kinetics "SFO", indeterminate order rate equation kinetics
+"IORE", or single first order with reversible binding "SFORB" are
+implemented for all variables, while "FOMC", "DFOP", "HS" and "logistic"
+can additionally be chosen for the first variable which is assumed to be
+the source compartment.
+Additionally, mkinsub()
has an argument to
, specifying names of
+variables to which a transfer is to be assumed in the model.
+If the argument use_of_ff
is set to "min"
(default) and the model for the compartment is "SFO" or "SFORB", an
-additional component of the list can be "sink=FALSE" effectively fixing
-the flux to sink to zero.
mkinsub()
argument can be sink = FALSE
, effectively
+fixing the flux to sink to zero.
If TRUE
, passed to cfunction
if
+
If TRUE
, passed to inline::cfunction()
if
applicable to give detailed information about the C function being built.
A list of class mkinmod
for use with mkinfit
,
+
A list of class mkinmod
for use with mkinfit()
,
containing, among others,
A vector of string representations of differential equations, one for each modelling variable.
For the definition of model types and their parameters, the equations given in the FOCUS and NAFTA guidance documents are used.
+For kinetic models with more than one observed variable, a symbolic solution +of the system of differential equations is included in the resulting +mkinmod object in some cases, speeding up the solution.
+If a C compiler is found by pkgbuild::has_compiler()
and there
+is more than one observed variable in the specification, C code is generated
+for evaluating the differential equations, compiled using
+inline::cfunction()
and added to the resulting mkinmod object.
The IORE submodel is not well tested for metabolites. When using this
-model for metabolites, you may want to read the second note in the help
-page to mkinfit
.
FOCUS (2006) “Guidance Document on Estimating Persistence @@ -258,7 +263,7 @@ Evaluating and Calculating Degradation Kinetics in Environmental Media
SFO_SFO <- mkinmod( parent = mkinsub("SFO", "m1"), m1 = mkinsub("SFO"), verbose = TRUE)