Skip to content

About

Simcyp R example scripts

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

126 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simcyp R Example Scripts

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

Description

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 (previously Simcyp). Update library(Simcyp) and Simcyp:: calls in existing scripts to library(SimcypR) and SimcypR::.

System Requirements

  • 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

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.

Recommended: use the installation script

  1. Save Install_SimcypR_Package.R in the same folder as the package archive. If the archive is elsewhere, the script opens a file window so you can choose it.
  2. 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.

Alternative: manual installation

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.

Getting started

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.

What's new in Version 26

  • Connects to Simcyp Human and Animal Simulator V25 and V26
  • Dedicated InitialiseHuman() and InitialiseAnimal() functions
  • SaveWorkspace() saves workspaces modified from R (V26 only)
  • CalcStats() for PK and numeric summary statistics, and PlotRibbon_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() replaces GetAUCFrom_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.

Examples

Navigate to one of the example folders within the repository to view usage details.

Support

Please email simcyp.support@certara.com for any queries.

Learning material:

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:

Publications:

About

Simcyp R example scripts

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages