Skip to content

Commit

Permalink
Added in vitro analysis examples to workshop and vignette.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-harrold committed Oct 20, 2024
1 parent ad27c6f commit e39d253
Show file tree
Hide file tree
Showing 135 changed files with 1,863 additions and 461 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Authors@R: c(person("John", "Harrold",
comment = c(ORCID="0000-0003-2052-4373")))
Maintainer: John Harrold <john.m.harrold@gmail.com>
Description: Complete work flow for the analysis of pharmacokinetic pharmacodynamic (PKPD), physiologically-based pharmacokinetic (PBPK) and systems pharmacology models including: creation of ordinary differential equation-based models, pooled parameter estimation, individual/population based simulations, rule-based simulations for clinical trial design and modeling assays, deployment with a customizable 'Shiny' app, and non-compartmental analysis. System-specific analysis templates can be generated and each element includes integrated reporting with 'PowerPoint' and 'Word'.
URL: https://ubiquity.tools/rworkflow
URL: https://r.ubiquity.tools
SystemRequirements: Perl
BugReports: https://github.com/john-harrold/ubiquity/issues
License: BSD_2_clause + file LICENSE
Expand Down
14 changes: 12 additions & 2 deletions R/ubiquity.r
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ return(cfg)}
#'@param overwrite if \code{TRUE} the new workshop files will overwrite any existing files present (\code{FALSE})
#'@param copy_files if \code{TRUE} the files will be written to the output_directory, if \code{FALSE} only the names and locations of the files will be returned (\code{TRUE})
#'@param output_directory directory where workshop files will be placed (getwd())
#'@details Valid sections are "Simulation", "Estimation", "Titration" "Reporting", and "NCA"
#'@details Valid sections are "Simulation", "Estimation", "In Vitro", "Titration" "Reporting", and "NCA"
#'
#'@return list
#'@examples
Expand All @@ -304,7 +304,7 @@ workshop_fetch <- function(section = "Simulation",
copy_files = TRUE,
output_directory = getwd()){
res = list()
allowed = c("Simulation", "Estimation", "Titration", "Reporting", "Testing", "NCA")
allowed = c("Simulation", "Estimation", "In Vitro", "Titration", "Reporting", "Testing", "NCA")

isgood = TRUE
# This function only works if we're using the package
Expand Down Expand Up @@ -379,6 +379,16 @@ workshop_fetch <- function(section = "Simulation",
"analysis_visit_infusion_dosing.r",
"system.txt")
write_file = c(TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE)
} else if(section=="In Vitro") {
sources = c(file.path(src_dir, "analysis_in_vitro.R" ),
file.path(src_dir, "mk_data_in_vitro.R" ),
file.path(csv_dir, "in_vitro_er_data.csv" ),
file.path(sys_dir, "system-in_vitro.txt" ))
destinations = c("analysis_in_vitro.R",
"mk_data_in_vitro.R",
"in_vitro_er_data.csv",
"system-in_vitro.txt")
write_file = c(TRUE, TRUE, TRUE, TRUE)
} else if(section=="Testing") {
sources = c(file.path(src_dir, "workshop_test.R"))
destinations = c("workshop_test.R")
Expand Down
4 changes: 4 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
url: https://r.ubiquity.tools
template:
#math-rendering: mathjax
math-rendering: katex
bootstrap: 5
params:
bootswatch: united
Expand Down Expand Up @@ -105,6 +107,8 @@ navbar:
href: articles/Deployment.html
- text: "Trial/Rule-Based Simulations"
href: articles/Titration.html
- text: "Estimation of In Vitro/Static Systems"
href: articles/In_Vitro.html
- text: "Non-Compartmental Analysis"
href: articles/NCA.html
- text: "Integrated Word and PowerPoint Reporting"
Expand Down
6 changes: 4 additions & 2 deletions docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 11 additions & 9 deletions docs/articles/Deployment.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e39d253

Please sign in to comment.