forked from phuse-org/send-summarizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_send_summarizer_functions.R
65 lines (38 loc) · 3.27 KB
/
test_send_summarizer_functions.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
rm(list = ls())
# Set working directory to the package root (if necessary)
setwd("C:/Users/mdaminulisla.prodhan/OneDrive - FDA/2023-2024_projects/send-summarizer")
# Load all functions from the package
devtools::load_all(".")
# Example: Testing the send_cross_study_app function
# Replace 'path_to_database.db' with the actual path to your database
#sendSummarizer::send_cross_study_app('path_to_database.db')
# Add more function tests here
bw_score <- get_bw_score(studyid='10663', path_db='C:/Users/mdaminulisla.prodhan/OneDrive - FDA/2023-2024_projects/FAKE_DATABASES/liver_1.db', fake_study=TRUE)
bw_Lscore_TestDB <- get_bw_score(studyid ='511-21060018', path_db = 'C:/Users/mdaminulisla.prodhan/OneDrive - FDA/TestDB.db',
fake_study = FALSE, master_CompileData = NULL, score_in_list_format = TRUE)
lb_score <- get_lb_score(studyid='10663', path_db='C:/Users/mdaminulisla.prodhan/OneDrive - FDA/2023-2024_projects/FAKE_DATABASES/liver_1.db',fake_study = TRUE, master_CompileData = NULL)
lb_score_TestDB <- get_lb_score(studyid='511-21060018', path_db='C:/Users/mdaminulisla.prodhan/OneDrive - FDA/TestDB.db',
fake_study=FALSE, master_CompileData = NULL, score_in_list_format = FALSE)
mi_score_TestDB <- get_mi_score(studyid='511-21060018', path_db='C:/Users/mdaminulisla.prodhan/OneDrive - FDA/TestDB.db',
fake_study = FALSE, master_CompileData = NULL, score_in_list_format = FALSE)
#save(bw_score_TestDB, file = "bw_score_TestDB.RData")
#load("c/Users/mdaminulisla.prodhan/OneDrive - FDA/2023-2024_projects/send-summarizer/R/bw_org_score_TestDB.RData")
livertobw_ratio <- get_liver_livertobw_score (studyid = '511-21060018',
path_db = 'C:/Users/mdaminulisla.prodhan/OneDrive - FDA/TestDB.db',
fake_study = FALSE,
master_CompileData = NULL,
bwzscore_BW = NULL,
score_in_list_format = FALSE)
#' @~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~o724~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
get_liver_compiledata <- function(studyid, database_path){ }
#get_liver_dose_ranking <- function(studyid, tx, cleaned_compiledata){}
get_liver_bw_score <- function(studyid, bw, ts, master_compiledata, tK_animals_df ){}
get_liver_lb_score <- function (studyid, ts, lb, master_compiledata) {}
get_liver_mi_score <- function(studyid, ts, mi, master_compiledata){}
#' @~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~bcs~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
get_compile_data <- function(studyid, path_db,fake_study=FALSE) {}
#get_doses <- function(studyid, path_db, xpt_dir=NULL) {}
get_bw_score <- function(studyid, path_db,fake_study=FALSE, master_CompileData = NULL) {}
get_mi_score <- function(studyid, path_db,fake_study=FALSE, master_CompileData = NULL) {}
get_lb_score <- function(studyid, path_db,fake_study= FALSE, master_CompileData = NULL) {}
#' @~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~o724~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~