Skip to content

Commit

Permalink
Merge pull request #3 from mi-erasmusmc/develop
Browse files Browse the repository at this point in the history
Adding renv files
  • Loading branch information
solis9753 authored Nov 9, 2022
2 parents fa8f01e + 2dd3fcb commit 446c0f8
Show file tree
Hide file tree
Showing 6 changed files with 2,303 additions and 7 deletions.
10 changes: 6 additions & 4 deletions extras/CodeToRunEunomia4.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ Eunomia::createCohorts(connectionDetails = connectionDetails)
# Database details ---------
databaseDetails <- PatientLevelPrediction::createDatabaseDetails(connectionDetails = connectionDetails,
cdmDatabaseSchema = cdmDatabaseSchema,
cdmDatabaseName = cdmDatabaseName,
cdmDatabaseName = cdmDatabaseName,
cdmDatabaseId = cdmDatabaseName,
cohortDatabaseSchema = cohortDatabaseSchema,
cohortTable = cohortTable,
outcomeDatabaseSchema = outcomeDatabaseSchema,
Expand Down Expand Up @@ -173,11 +174,12 @@ analysisSettings <- list(
)

# Execute study -----
PredictiveValueFPs::execute(runExtractAtemporalData = FALSE,
runExtractTemporalData = FALSE,
PredictiveValueFPs::execute(runExtractAtemporalData = TRUE,
runExtractTemporalData = TRUE,
runPrepareData = TRUE,
runExtractFPs = TRUE,
runGenerateFPObjects = TRUE,
runGenerateFPObjects = TRUE,
runBaseline = FALSE,
runPrediction = FALSE,
runPlpSettings = runPlpSettings,
runFrequentPatternsSettings = runFrequentPatternsSettings,
Expand Down
6 changes: 3 additions & 3 deletions extras/execute_CodeToRunEunomia4.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ outcomeId = 3
outcomeName = "gi"
databaseName = "Eunomia"
rscriptLoc =file.path(getwd(), "extras/CodeToRunEunomia4.R")
inputDir = file.path(getwd(), "data", "Eunomia6")
outputDir = file.path(getwd(), "Eunomia8")
inputDir = file.path(getwd(), "data", "Eunomia8")
outputDir = file.path(getwd(), "Eunomia11")

# rscriptLoc = file.path(getwd(), "experimentation/testing_optparse.R")

# system(paste("Rscript", rscriptLoc, "-o", outcomeId, "-c", outcomeName,"-d", databaseName ,"-i", inputDir ))
system(paste("Rscript", rscriptLoc, outcomeId,outcomeName, databaseName ,inputDir, outputDir))
system(paste("Rscript", rscriptLoc, outcomeId, outcomeName, databaseName ,inputDir, outputDir))


Loading

0 comments on commit 446c0f8

Please sign in to comment.