aboutsummaryrefslogtreecommitdiff
path: root/R/mkinmod.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2020-11-19 15:41:24 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2020-11-19 15:41:24 +0100
commitdb9ae6a0c9cecb92048fde6f06af1da183c09b5f (patch)
treef0ea97545549c71bd7aa3d13afed422fd402f0e6 /R/mkinmod.R
parent6441a9f35d66f2c4d38c0036f99cd8f509d76f3b (diff)
Depend on parallel, doc improvements
By depending on parallel instead of importing it, functions to set up and stop a cluster are always available when mkin is loaded. The use of multicore processing in mmkin on Windows is now documented in the help file, which brings mkin closer to a version 1.0 #9.
Diffstat (limited to 'R/mkinmod.R')
-rw-r--r--R/mkinmod.R18
1 files changed, 12 insertions, 6 deletions
diff --git a/R/mkinmod.R b/R/mkinmod.R
index a410c02d..1af72db5 100644
--- a/R/mkinmod.R
+++ b/R/mkinmod.R
@@ -29,11 +29,12 @@
#' (default) and the model for the compartment is "SFO" or "SFORB", an
#' additional [mkinsub()] argument can be \code{sink = FALSE}, effectively
#' fixing the flux to sink to zero.
+#' In print.mkinmod, this argument is currently not used.
#' @param use_of_ff Specification of the use of formation fractions in the
-#' model equations and, if applicable, the coefficient matrix. If "min", a
-#' minimum use of formation fractions is made in order to avoid fitting the
-#' product of formation fractions and rate constants. If "max", formation
-#' fractions are always used.
+#' model equations and, if applicable, the coefficient matrix. If "max",
+#' formation fractions are always used (default). If "min", a minimum use of
+#' formation fractions is made, i.e. each pathway to a metabolite has its
+#' own rate constant.
#' @param speclist The specification of the observed variables and their
#' submodel types and pathways can be given as a single list using this
#' argument. Default is NULL.
@@ -91,6 +92,11 @@
#' m1 = mkinsub("SFO"))
#'
#' \dontrun{
+#' # Now supplying full names used for plotting
+#' SFO_SFO.2 <- mkinmod(
+#' parent = mkinsub("SFO", "m1", full_name = "Test compound"),
+#' m1 = mkinsub("SFO", full_name = "Metabolite M1"))
+#'
#' # The above model used to be specified like this, before the advent of mkinsub()
#' SFO_SFO <- mkinmod(
#' parent = list(type = "SFO", to = "m1"),
@@ -111,7 +117,7 @@
#' parent = mkinsub("DFOP", c("M1", "M2")),
#' M1 = mkinsub("SFO"),
#' M2 = mkinsub("SFO"),
-#' use_of_ff = "max", quiet = TRUE)
+#' quiet = TRUE)
#'
#' fit_DFOP_par_c <- mkinfit(m_synth_DFOP_par,
#' synthetic_data_for_UBA_2014[[12]]$data,
@@ -451,8 +457,8 @@ mkinmod <- function(..., use_of_ff = "max", speclist = NULL, quiet = FALSE, verb
#' Print mkinmod objects in a way that the user finds his way to get to its
#' components.
#'
+#' @rdname mkinmod
#' @param x An \code{\link{mkinmod}} object.
-#' @param \dots Not used.
#' @examples
#'
#' m_synth_SFO_lin <- mkinmod(parent = list(type = "SFO", to = "M1"),

Contact - Imprint