# In ubuntu, it might be necessary to run this in bash
# sudo apt-get install libxml2-dev
if (Sys.info()["sysname"] == "Windows") {
options(download.file.method = "wininet")
devtools::install_url("https://sourceforge.net/projects/sbml/files/libsbml/5.18.0/stable/Windows/R%20interface/libSBML_5.18.0.zip")
} else {
devtools::install_url("https://sourceforge.net/projects/sbml/files/libsbml/5.18.0/stable/R%20interface/libSBML_5.18.0.tar.gz")
}
devtools::install_github("dkaschek/dMod" )
devtools::install_github("dlill/petab")
Learning
petab_exampleList
- Show all available examplespetab_exampleRead
- Load an example to play around with it or navigate to the folder including some R-scripts e.g. on Ubuntu+Gnome with system(paste0("nautilus ", petab_examplePath(exampleName = "01", "dir")), wait = FALSE)
Basic functionality for petab handling
petab_mutateDCO
- consistently manipulate experimentalCondition
, observables
and measurementData
at once in very expressive data.table
language. Everything, i
and j
can do in a data.table, petab_mutateDCO can to it as well!petab_plotData
- Plot your data with great liberty in customizing the plotggforce::facet_grid/wrap_paginate
future
-package, so you don't wait forever until you can use your R-session againpetab_python_setup
Access the original petab development library. Sets up a virtualenv via the reticulate
-package, to have a clean installation.dMod functionality
importPEtabSBML_indiv
- Import PEtab to dMod. Can check if the input PEtab is changed to only recompile the model when necessarywritePetab
- If the model part is specified in dMod language, the SBML is exportedpd_predictAndPlot2
- Simulate and plot your modelggplot
in terms of layers, aesthetics, layout, labels, scales and themeggforce::facet_grid/wrap_paginate
i
-argument (in data.table parlance) to perform any kind of subset: e.g. subset on time
, observableId
, conditionId
or a combination of themSome thoughts on coding-style
git commit --amend
and devtools::document
until the code definitely works before pushing to keep the git log cleanNFLAGsave = 3
should always mean "check if input files changed, and if not, reload the previously saved version, if it exists"R logo https://www.r-project.org/logo/ License https://creativecommons.org/licenses/by-sa/4.0/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.