ManchesterPBPK
Educational open-source PBPK model for bottom-up simulations
Install / Use
/learn @SystemsForecasting/ManchesterPBPKREADME
Educational PBPK, PBPKedu
This physiologically based pharmacokinetic (PBPK) model is designed as an educational tool, hence named PBPKedu. The aim is to provide a simple, open source, freely downloadable PBPK model for performing basic single subject bottom-up simulations in R. The model has not been tested against a large set of compounds. All parameters were taken from the literature. The PBPK model was implemented by using the rxode2 package and non-compartmental analysis (NCA) was performed with the PKNCA package.
A running version of the app (might be not updated) can be found here: https://manchester.shinyapps.io/pbpk/.
What is PBPKedu?
- hopefully an useful teaching & learning tool
- a freely avaialble app (and code) which might be used for quickly exploring PK properties of certain compounds
- a freely avaialble app (and code) which might be used for quickly exploring what happens if certain compound-system properties are changed
- a whole body PBPK model written in
rxode2, which can be downloaded, inspected, modified... - a tool which can be expanded by everyone (some nice new features are welcome!)
- ...
What is not PBPKedu?
- a qualified, validated (whatever that means) or (better) corroborated, trusted PBPK model or platform
- a tool claiming predictability
Additions, suggestions and amendments are welcome! Enjoy!
Files
server.R: Shiny server function, it contains the "logics" of the applications (e.g., what happens when clicking a button).ui.R: Shiny user interface function, it contains the visual aspect of the application.main_pbpk_acat.R: R script that can be used to run the model outside the Shiny app. This file is not used inserver.Rorui.R.functions/PBPK_model_rxode.R: it contains the ordinary differential equations of the PBPK and compartmental absorption & transit (CAT) models, written inRxODEformat.functions/import_param.R: it contains the functions used to import and elaborate the PBPK and CAT model parameters.functions/functions_plot4.R: it contains the functions used to generate the plots.data/PBPK_parameters: it contains.xlsxfiles of the physiological parameters for all the species supported by the PBPKedu app. All the references are included in the.xlsxfiles.data/library_drugs:it contains.xlsxfiles of the drug physicochemical parameters and of drugs pharmacokinetics. All the references are included in the.xlsxfiles and indata/library_drugs/readme.txt.
How to install on a local machine
- Install R (select your favourite CRAN mirror from https://cran.r-project.org/mirrors.html and dowload the latest version of R).
- Install RStudio (https://posit.co/download/rstudio-desktop/).
- If you have Windows OS, install RTools (check your R version!). If you have Ubuntu, you don't need RTools, but probably you will need to install some libraries (i.e., build-essential, make, cmake etc.). We haven't tested the installation on MacOS (if you do, please provide us some feedback!).
- Open RStudio.
- Install all libraries: copy, paste and run the following R code in the RStudio console or in a script (it may take a while...).
install.packages(c("shiny","shinyBS","shinyjs","readxl","writexl","rxode2","dplyr","ggplot2","RColorBrewer","gridExtra","PKNCA","shinybusy"))
- Restart RStudio.
- Download and unzip the ManchesterPBPK code. To download the code, press the green
<> codebutton above and pressDownload ZIP. - Open the unzipped folder containing all the code. You should see the same files and folders present at the top of this page. Open server.R with RStudio: double click on the file and it should open automatically. If it does not work, right-click on the file and select open with RStudio.
- Now, you should have the server.R code opened in RStudio. Next to the usual "Run" button, there should be a green button "Run App": click it to run the app (it may crash on first use after installing all libraries so please close RStudio and try again point 9).
Standalone version
An installer for a standalone version is made avaiable here (through Google Drive). Windows 10 and 11 are the only supported OS.
With this standalone version you can play with the app also without installing R, RStudio and so on. To install the PBPKedu app, follow these steps.
- Install RTools for the R 4.2 version. Unfortunately, this is still needed!
- Dowload
installer_PBPKedu_windows10.exe(despite the name it should work for Windows 11 as well) at this link. - Open (double click)
installer_PBPKedu_windows10.exe. - Allow the app to make changes on the device.
- Select the app location, default should be
C:\Program Files (x86)\PBPKedu. - Tick create desktop shortcut.
- Continue and press install.
In a few minutes the app should be installed and a '90s style PBPKedu icon should appear on your desktop. Open the app: you should see PBPKedu opened in your default web browser.
Enjoy!
Unordered list of possible additional features
- simulation for populations
- global sensitivity analysis tool
- alternative absorption routes (e.g., lung, skin...)
- prediction of drug properties through quantitative structure activity/properties relationship (QSAR/QSPR)
- ...
Related Skills
proje
Interactive vocabulary learning platform with smart flashcards and spaced repetition for effective language acquisition.
best-practices-researcher
The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app
flutter-tutor
Flutter Learning Tutor Guide You are a friendly computer science tutor specializing in Flutter development. Your role is to guide the student through learning Flutter step by step, not to provide d
groundhog
398Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
