Important
You are viewing the main branch, which is the maintenance branch. It is updated continuously, so the example scripts here may be ahead of the Simcyp Simulator version you are using.
To get the example scripts that match a specific Simcyp release, download that release from the Releases page instead:
| Release | Download |
|---|---|
| V25 | Simcyp-R-Scripts v25 |
| V24 | Simcyp-R-Scripts v24 |
| V23 | Simcyp-R-Scripts v23 |
SimcypR is an R package that supports R script interactions with the Simcyp Simulator (V25-V26). It provides functions to initialise Simcyp, load, modify and save workspaces, run simulations and interrogate results.
A second R package, SimcypResults, for post-simulation reporting and analysis is available upon request from simcyp.support@certara.com. It does not drive the Simulator. Use SimcypR for that.
Note: From Version 26 the package is named
SimcypR(previouslySimcyp). Updatelibrary(Simcyp)andSimcyp::calls in existing scripts tolibrary(SimcypR)andSimcypR::.
- Windows 10 or Windows 11 (64-bit)
- A licensed Simcyp Simulator, Version 25 or Version 26, installed on the same computer. The Simcyp Animal Simulator is needed only for animal workflows.
- R 4.6 or later, 64-bit
- RStudio (recommended)
- Internet access to CRAN, or a site-approved CRAN mirror, during installation
SimcypR is not on CRAN. It is distributed by Simcyp support and can be requested from simcyp.support@certara.com. Once the request is processed, the following are added to your Simcyp Members Area (https://members.certara.co.uk):
- A folder named Simcyp Simulator V26 SimcypR Package under Software Downloads. It contains:
| File | Description |
|---|---|
SimcypR_26.0.389.zip |
SimcypR Windows binary package |
Install_SimcypR_Package.R |
Interactive installer for SimcypR and its CRAN dependencies |
- A folder named V26 SimcypR Package Example Scripts on the Miscellaneous Files page, with example scripts and workspaces.
Do not unzip the package archive.
- Save
Install_SimcypR_Package.Rin the same folder as the package archive. If the archive is elsewhere, the script opens a file window so you can choose it. - Open the script in RStudio and click Source. It must be run in an interactive R session.
The script checks your R version, installs the required CRAN dependencies (read from the package archive itself), installs SimcypR, and confirms the installed version.
Install the CRAN packages listed under Imports in the package's DESCRIPTION file, then install the archive without unzipping it (RStudio: Tools > Install Packages > Package Archive File), or run:
install.packages("path/to/SimcypR_26.0.389.zip", repos = NULL, type = "win.binary")The current released version is SimcypR 26.0.389.
library(SimcypR)
InitialiseHuman(verbose = FALSE) # Human Simulator, V26 and later
SetWorkspace("YourWorkspaceName.wksz")- Use
InitialiseAnimal()for the Animal Simulator (V26 and later). - Use
Initialise()for V25 Human and Animal engines. SaveWorkspace()saves a modified workspace and requires a V26 engine.- Open the vignettes with
browseVignettes(package = "SimcypR").
Limitation: the Workspace API in SimcypR is for single-session use. Concurrent sessions are not supported. Use Simcyp Cloud for large-scale or parallel simulations.
- Connects to Simcyp Human and Animal Simulator V25 and V26
- Dedicated
InitialiseHuman()andInitialiseAnimal()functions SaveWorkspace()saves workspaces modified from R (V26 only)CalcStats()for PK and numeric summary statistics, andPlotRibbon_DB()for ribbon plots- Observed-versus-predicted goodness-of-fit functions (
GetObsvsPredProfileData_DB(),GetObsvsPredPKData_DB(),PlotObsvsPred()) - Multi-individual profile extraction (
GetProfiles_DB(),GetProfilesAtSpecifiedTimes_DB()) GetPKParameters_DB()replacesGetAUCFrom_DB()- Experimental Shiny applications for the Human Simulator (V25 and V26), launched with
RunShinyAppDashboard() GetEliminationMetRoutes_DB()reads elimination metabolic route outputs from the simulation database
See the Release Notes supplied with the packages for the full list of new and updated functions.
The Shiny applications are experimental research tools. Check their outputs independently before use.
Navigate to one of the example folders within the repository to view usage details.
Please email simcyp.support@certara.com for any queries.
If you are a Simcyp license members, E-Learning videos can be viewed via your members area.
Other learning videos can be found on YouTube: