BIO Integration (Nov 2023)
Embedding R inside the PhysPK Bio-simulation Software for Pharmacokinetics Population Analysis
Abstract
Background: PhysPK stands as a flexible and robust bio-simulation and modeling software designed for analysis of population pharmacokinetics (PK) and pharmacodynamics (PD) systems. PhysPK equips users with standard diagnostic plots for pre- and post-analysis to delineate PK and PD within population-based frameworks. Furthermore, PhysPK facilitates the establishment of mathematical models that elucidate the intricate interplay between exposure, safety, and efficacy. Methods: Enhancing simulation modeling capabilities necessitates seamless integration between commercial discrete-event PK and PD simulation tools and external software. This synergy can be amplified by incorporating open-source solutions, like R, which boasts a rich array of comprehensive packages tailored for diverse tasks, including data analysis (ggplot2), scientific computation (stats), application development (shiny), back-end web development (dplyr), and machine learning (CARAT). The integration of R within PhysPK holds the potential to efficiently interpret and analyze PK/PD output and routines using R packages. Results: This article presents a tutorial that highlights the incorporation of R code within PhysPK and the rendering of R scripts within the PhysPK monitor. The tutorial utilizes a two-compartment model for comparison against the analysis developed by Hosseini et al. in 2018 within the context of the gPKPDSim application and WinNonlin® software. The illustrative example that is provided and discussed demonstrate estimated and simulated plots, revealing negligible differences in the significance for CL and CLd (6.89 ± 0.2 and 45.5 ± 17.4 [reference], and 7.06 ± 0.32 and 49.04 ± 9.2 [PhysPK], respectively), as well as volumes V1 and V2 (49.15 ± 3.8 and 34.61 ± 5.2 [reference], and 48.8 ± 3.66, and 33.2 ± 3.95 [PhysPK], respectively). Conclusions: Our study underscores the potential of integrating open-source software, replete with an array of innovative packages, to elevate predictive capabilities and streamline analyses in PK methods. This integration ushers in new avenues for an advanced intelligent simulation modeling within the realm of PK, thus holding significant promise for the advancement of drug research and development.
Keywords