Skip to content

Commit

Permalink
added ehdenRaPRediction shiny
Browse files Browse the repository at this point in the history
  • Loading branch information
rossdwilliams committed Jan 22, 2020
1 parent d553b20 commit 5bee09b
Show file tree
Hide file tree
Showing 88 changed files with 1,285 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ehdenRaPrediction/PLPViewer.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX
Binary file not shown.
Binary file not shown.
Binary file added ehdenRaPrediction/data/Analysis_13/plpResult.rds
Binary file not shown.
Binary file added ehdenRaPrediction/data/Analysis_15/plpResult.rds
Binary file not shown.
Binary file added ehdenRaPrediction/data/Analysis_35/plpResult.rds
Binary file not shown.
Binary file added ehdenRaPrediction/data/Analysis_37/plpResult.rds
Binary file not shown.
Binary file added ehdenRaPrediction/data/Analysis_45/plpResult.rds
Binary file not shown.
Binary file added ehdenRaPrediction/data/Analysis_47/plpResult.rds
Binary file not shown.
Binary file added ehdenRaPrediction/data/Analysis_49/plpResult.rds
Binary file not shown.
Binary file added ehdenRaPrediction/data/Analysis_61/plpResult.rds
Binary file not shown.
Binary file added ehdenRaPrediction/data/Analysis_63/plpResult.rds
Binary file not shown.
Binary file added ehdenRaPrediction/data/Analysis_65/plpResult.rds
Binary file not shown.
Binary file added ehdenRaPrediction/data/Analysis_67/plpResult.rds
Binary file not shown.
Binary file added ehdenRaPrediction/data/Analysis_69/plpResult.rds
Binary file not shown.
Binary file added ehdenRaPrediction/data/Analysis_71/plpResult.rds
Binary file not shown.
Binary file added ehdenRaPrediction/data/Analysis_83/plpResult.rds
Binary file not shown.
Binary file added ehdenRaPrediction/data/Analysis_85/plpResult.rds
Binary file not shown.
Binary file added ehdenRaPrediction/data/Analysis_87/plpResult.rds
Binary file not shown.
Binary file added ehdenRaPrediction/data/Analysis_96/plpResult.rds
Binary file not shown.
Binary file added ehdenRaPrediction/data/Analysis_99/plpResult.rds
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
21 changes: 21 additions & 0 deletions ehdenRaPrediction/data/settings.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"outcomeId","cohortId","modelSettingsId","analysisId","devDatabase","populationSettingId","modelSettingId","covariateSettingId","modelSettingName","addExposureDaysToStart","riskWindowStart","addExposureDaysToEnd","riskWindowEnd","plpDataFolder","studyPopFile","plpResultFolder","cohortName","outcomeName"
183,257,2,37,"dod",1,1,2,"Lasso Logistic Regression",0,1,0,730,"./EHDENRAPredictionResults/PlpData_L2_T257","./EHDENRAPredictionResults/StudyPop_L1_T257_O183.rds","./EHDENRAPredictionResults/Analysis_37","[EHDEN RA] New users of methoxtrexate monotherapy used for PLP","[EHDEN RA] Stroke (ischemic or hemorrhagic) events (any visit)"
183,257,1,15,"dod",1,1,1,"Lasso Logistic Regression",0,1,0,730,"./EHDENRAPredictionResults/PlpData_L1_T257","./EHDENRAPredictionResults/StudyPop_L1_T257_O183.rds","./EHDENRAPredictionResults/Analysis_15","[EHDEN RA] New users of methoxtrexate monotherapy used for PLP","[EHDEN RA] Stroke (ischemic or hemorrhagic) events (any visit)"
185,257,2,35,"dod",1,1,2,"Lasso Logistic Regression",0,1,0,730,"./EHDENRAPredictionResults/PlpData_L2_T257","./EHDENRAPredictionResults/StudyPop_L1_T257_O185.rds","./EHDENRAPredictionResults/Analysis_35","[EHDEN RA] New users of methoxtrexate monotherapy used for PLP","[EHDEN RA] Acute myocardial infarction events (in any visit)"
185,257,1,13,"dod",1,1,1,"Lasso Logistic Regression",0,1,0,730,"./EHDENRAPredictionResults/PlpData_L1_T257","./EHDENRAPredictionResults/StudyPop_L1_T257_O185.rds","./EHDENRAPredictionResults/Analysis_13","[EHDEN RA] New users of methoxtrexate monotherapy used for PLP","[EHDEN RA] Acute myocardial infarction events (in any visit)"
193,257,4,85,"dod",2,1,2,"Lasso Logistic Regression",0,1,0,90,"./EHDENRAPredictionResults/PlpData_L2_T257","./EHDENRAPredictionResults/StudyPop_L2_T257_O193.rds","./EHDENRAPredictionResults/Analysis_85","[EHDEN RA] New users of methoxtrexate monotherapy used for PLP","[EHDEN RA] Pancytopenia events using diagnoses and measurements"
193,257,3,63,"dod",2,1,1,"Lasso Logistic Regression",0,1,0,90,"./EHDENRAPredictionResults/PlpData_L1_T257","./EHDENRAPredictionResults/StudyPop_L2_T257_O193.rds","./EHDENRAPredictionResults/Analysis_63","[EHDEN RA] New users of methoxtrexate monotherapy used for PLP","[EHDEN RA] Pancytopenia events using diagnoses and measurements"
197,257,3,49,"dod",2,1,1,"Lasso Logistic Regression",0,1,0,90,"./EHDENRAPredictionResults/PlpData_L1_T257","./EHDENRAPredictionResults/StudyPop_L2_T257_O197.rds","./EHDENRAPredictionResults/Analysis_49","[EHDEN RA] New users of methoxtrexate monotherapy used for PLP","[EHDEN RA] Opportunistic Infections"
197,257,4,71,"dod",2,1,2,"Lasso Logistic Regression",0,1,0,90,"./EHDENRAPredictionResults/PlpData_L2_T257","./EHDENRAPredictionResults/StudyPop_L2_T257_O197.rds","./EHDENRAPredictionResults/Analysis_71","[EHDEN RA] New users of methoxtrexate monotherapy used for PLP","[EHDEN RA] Opportunistic Infections"
206,258,5,96,"dod",3,1,1,"Lasso Logistic Regression",0,365,0,1826,"./EHDENRAPredictionResults/PlpData_L1_T258","./EHDENRAPredictionResults/StudyPop_L3_T258_O206.rds","./EHDENRAPredictionResults/Analysis_96","[EHDEN RA] Female new users of methoxtrexate monotherapy used for PLP","[EHDEN RA] Persons with a Malignant neoplasm of breast 1 dx"
206,258,6,118,"dod",3,1,2,"Lasso Logistic Regression",0,365,0,1826,"./EHDENRAPredictionResults/PlpData_L2_T258","./EHDENRAPredictionResults/StudyPop_L3_T258_O206.rds","./EHDENRAPredictionResults/Analysis_118","[EHDEN RA] Female new users of methoxtrexate monotherapy used for PLP","[EHDEN RA] Persons with a Malignant neoplasm of breast 1 dx"
208,258,6,120,"dod",3,1,2,"Lasso Logistic Regression",0,365,0,1826,"./EHDENRAPredictionResults/PlpData_L2_T258","./EHDENRAPredictionResults/StudyPop_L3_T258_O208.rds","./EHDENRAPredictionResults/Analysis_120","[EHDEN RA] Female new users of methoxtrexate monotherapy used for PLP","[EHDEN RA] Persons with a Malignant neoplasm of uterus 1 dx"
208,258,5,98,"dod",3,1,1,"Lasso Logistic Regression",0,365,0,1826,"./EHDENRAPredictionResults/PlpData_L1_T258","./EHDENRAPredictionResults/StudyPop_L3_T258_O208.rds","./EHDENRAPredictionResults/Analysis_98","[EHDEN RA] Female new users of methoxtrexate monotherapy used for PLP","[EHDEN RA] Persons with a Malignant neoplasm of uterus 1 dx"
218,257,5,99,"dod",3,1,1,"Lasso Logistic Regression",0,365,0,1826,"./EHDENRAPredictionResults/PlpData_L1_T257","./EHDENRAPredictionResults/StudyPop_L3_T257_O218.rds","./EHDENRAPredictionResults/Analysis_99","[EHDEN RA] New users of methoxtrexate monotherapy used for PLP","[EHDEN RA] Persons with a Malignant neoplasm of colon and rectum 1 dx"
218,257,6,121,"dod",3,1,2,"Lasso Logistic Regression",0,365,0,1826,"./EHDENRAPredictionResults/PlpData_L2_T257","./EHDENRAPredictionResults/StudyPop_L3_T257_O218.rds","./EHDENRAPredictionResults/Analysis_121","[EHDEN RA] New users of methoxtrexate monotherapy used for PLP","[EHDEN RA] Persons with a Malignant neoplasm of colon and rectum 1 dx"
253,257,4,67,"dod",2,1,2,"Lasso Logistic Regression",0,1,0,90,"./EHDENRAPredictionResults/PlpData_L2_T257","./EHDENRAPredictionResults/StudyPop_L2_T257_O253.rds","./EHDENRAPredictionResults/Analysis_67","[EHDEN RA] New users of methoxtrexate monotherapy used for PLP","[EHDEN RA] Serious Infection, opportunistic infections and other infections of interest event"
253,257,3,45,"dod",2,1,1,"Lasso Logistic Regression",0,1,0,90,"./EHDENRAPredictionResults/PlpData_L1_T257","./EHDENRAPredictionResults/StudyPop_L2_T257_O253.rds","./EHDENRAPredictionResults/Analysis_45","[EHDEN RA] New users of methoxtrexate monotherapy used for PLP","[EHDEN RA] Serious Infection, opportunistic infections and other infections of interest event"
259,257,4,87,"dod",2,1,2,"Lasso Logistic Regression",0,1,0,90,"./EHDENRAPredictionResults/PlpData_L2_T257","./EHDENRAPredictionResults/StudyPop_L2_T257_O259.rds","./EHDENRAPredictionResults/Analysis_87","[EHDEN RA] New users of methoxtrexate monotherapy used for PLP","[EHDEN RA] Leukopenia events using diagnoses and measurements"
259,257,3,65,"dod",2,1,1,"Lasso Logistic Regression",0,1,0,90,"./EHDENRAPredictionResults/PlpData_L1_T257","./EHDENRAPredictionResults/StudyPop_L2_T257_O259.rds","./EHDENRAPredictionResults/Analysis_65","[EHDEN RA] New users of methoxtrexate monotherapy used for PLP","[EHDEN RA] Leukopenia events using diagnoses and measurements"
260,257,4,83,"dod",2,1,2,"Lasso Logistic Regression",0,1,0,90,"./EHDENRAPredictionResults/PlpData_L2_T257","./EHDENRAPredictionResults/StudyPop_L2_T257_O260.rds","./EHDENRAPredictionResults/Analysis_83","[EHDEN RA] New users of methoxtrexate monotherapy used for PLP","[EHDEN RA] Pancytopenia or leukopenia events using diagnoses and measurements"
260,257,3,61,"dod",2,1,1,"Lasso Logistic Regression",0,1,0,90,"./EHDENRAPredictionResults/PlpData_L1_T257","./EHDENRAPredictionResults/StudyPop_L2_T257_O260.rds","./EHDENRAPredictionResults/Analysis_61","[EHDEN RA] New users of methoxtrexate monotherapy used for PLP","[EHDEN RA] Pancytopenia or leukopenia events using diagnoses and measurements"
14 changes: 14 additions & 0 deletions ehdenRaPrediction/global.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# uncomment if running standalone
##runPlp <- readRDS(file.path("data","results.rds"))
##validatePlp <- readRDS(file.path("data","extValidation.rds"))
source("utils.R")
analysesLocation <- file.path("data")
allPerformance <- summaryPlpAnalyses(analysesLocation)
plpResultLocation <- allPerformance[,c('plpResultLocation', 'plpResultLoad')]
#allPerformance$combinedModelSettingName <- paste0(allPerformance$modelSettingName,'-', allPerformance$modelSettingsId
formatPerformance <- allPerformance[,c('analysisId','devDatabase','valDatabase','cohortName','outcomeName','modelSettingName','riskWindowStart', 'riskWindowEnd', 'AUC','AUPRC', 'populationSize','outcomeCount','incidence',
'addExposureDaysToStart','addExposureDaysToEnd')]
colnames(formatPerformance) <- c('Analysis','Dev', 'Val', 'T', 'O','Model', 'TAR start', 'TAR end', 'AUC','AUPRC', 'T Size','O Count','O Incidence (%)', 'addExposureDaysToStart','addExposureDaysToEnd')



Loading

0 comments on commit 5bee09b

Please sign in to comment.