Skip to contents

This is a print method for objects of class sbmlModel. It supports multiple output modes depending on the type argument.

Usage

# S3 method for class 'sbmlModel'
print(x, ...)

Arguments

x

An object of class sbmlModel.

...

Additional arguments. The following argument can be passed via ...:

type

A character string, either "summary" (default) or "equations". Controls whether a high-level summary or the model's differential equations are printed.

Examples

file <- system.file("extdata/", "simple_oral.sbml", package = "sbmlpbk")
model <- load_sbml(file)
print(model, type = "summary")
#> ==================
#> SBML Model Summary
#> ==================
#> 
#> Compartments:	 5 	[ Gut, Blood, Liver, Rest, Urine ]
#> Species:	 5 	[ AGut, ABlood, ALiver, ARest, AUrine ]
#> Parameters:	 19 	[ BW, VRc, VLc, VBc, QCC, ... ]
#> Functions:	 0
#> Assignment rules:	 6 
#> Rate rules:	 0 
#> Reactions:	 6 
#> 
#> Time unit:	 h 
#> Amount unit:	 ug 
#> Volume unit:	 L 
#> 
print(model, type = "equations")
#> 
#> # --- Assignment rules ---
#> Blood <- BW * VBc
#> Liver <- BW * VLc
#> Rest <- BW * VRc
#> QC <- BW^0.75 * QCC
#> QL <- QC * QLc
#> QR <- QC * QRc
#> 
#> 
#> # --- Transfer ODEs ---
#> dAGut <- -AGut * Ka
#> dABlood <- -ABlood * QL/Blood + ALiver * QL/(Liver * PCLiver) - ABlood * QR/Blood + ARest * QR/(PCRest * Rest) - ABlood * CLUrine/Blood
#> dALiver <- AGut * Ka + ABlood * QL/Blood - ALiver * QL/(Liver * PCLiver)
#> dARest <- ABlood * QR/Blood - ARest * QR/(PCRest * Rest)
#> dAUrine <- ABlood * CLUrine/Blood
#>