-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Package: Strategus | ||
Type: Package | ||
Title: Coordinating and Executing Analytics Using HADES Modules | ||
Version: 0.0.4 | ||
Date: 2023-03-29 | ||
Version: 0.0.5 | ||
Date: 2023-04-13 | ||
Authors@R: c( | ||
person("Martijn", "Schuemie", email = "[email protected]", role = c("aut", "cre")), | ||
person("Anthony", "Sena", email = "[email protected]", role = c("aut")), | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#Install packages required for this script --------- | ||
#install.packages("remotes") | ||
#install.packages("ParallelLogger") | ||
#remotes::install_github("OHDSI/Strategus") | ||
#remotes::install_github("OHDSI/Eunomia") | ||
#remotes::install_github("OHDSI/CohortGenerator") | ||
|
||
#Run the Eunomia study --------- | ||
# Set the folder & environment variable for module storage | ||
moduleFolder <- "C:/temp/strategus/modules" | ||
studyFolder <- "C:/temp/strategus/EunomiaTestStudy" | ||
Sys.setenv("INSTANTIATED_MODULES_FOLDER" = moduleFolder) | ||
|
||
if (!dir.exists(moduleFolder)) { | ||
dir.create(moduleFolder, recursive = TRUE) | ||
} | ||
if (!dir.exists(studyFolder)) { | ||
dir.create(studyFolder, recursive = TRUE) | ||
} | ||
|
||
# Create the execution settings for Eunomia ---------- | ||
connectionDetails <- Eunomia::getEunomiaConnectionDetails( | ||
databaseFile = file.path(studyFolder, "cdm.sqlite") | ||
) | ||
|
||
Strategus::storeConnectionDetails(connectionDetails = connectionDetails, | ||
connectionDetailsReference = "eunomia") | ||
|
||
executionSettings <- Strategus::createCdmExecutionSettings( | ||
connectionDetailsReference = "eunomia", | ||
workDatabaseSchema = "main", | ||
cdmDatabaseSchema = "main", | ||
cohortTableNames = CohortGenerator::getCohortTableNames(), | ||
workFolder = file.path(studyFolder, "work_folder"), | ||
resultsFolder = file.path(studyFolder, "results_folder"), | ||
minCellCount = 5 | ||
) | ||
|
||
ParallelLogger::saveSettingsToJson( | ||
object = executionSettings, | ||
file.path(studyFolder, "eunomiaExecutionSettings.json") | ||
) | ||
|
||
# Execute the study --------- | ||
analysisSpecifications <- ParallelLogger::loadSettingsFromJson( | ||
fileName = system.file("testdata/analysisSpecification.json", | ||
package = "Strategus") | ||
) | ||
|
||
executionSettings <- ParallelLogger::loadSettingsFromJson( | ||
fileName = file.path(studyFolder, "eunomiaExecutionSettings.json") | ||
) | ||
|
||
Strategus::execute( | ||
analysisSpecifications = analysisSpecifications, | ||
executionSettings = executionSettings, | ||
executionScriptFolder = file.path(studyFolder, "script_folder") | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
module,version,remote_repo,remote_username,module_type,main_package,main_package_tag | ||
CharacterizationModule,v0.3.0,github.com,OHDSI,cdm,Characterization,v0.1.1 | ||
CharacterizationModule,v0.3.1,github.com,OHDSI,cdm,Characterization,v0.1.1 | ||
CohortDiagnosticsModule,v0.0.7,github.com,OHDSI,cdm,CohortDiagnostics,v3.1.2 | ||
CohortGeneratorModule,v0.1.0,github.com,OHDSI,cdm,CohortGenerator,v0.8.0 | ||
CohortIncidenceModule,v0.0.6,github.com,OHDSI,cdm,CohortIncidence,v3.1.2 | ||
CohortMethodModule,v0.1.0,github.com,OHDSI,cdm,CohortMethod,74f017107e0cc1b740a2badc82879ab6ad291b23 | ||
PatientLevelPredictionModule,v0.0.8,github.com,OHDSI,cdm,PatientLevelPrediction,v6.3.1 | ||
PatientLevelPredictionModule,v0.1.0,github.com,OHDSI,cdm,PatientLevelPrediction,v6.3.1 | ||
SelfControlledCaseSeriesModule,v0.1.3,github.com,OHDSI,cdm,SelfControlledCaseSeries,15918616814b88137f82bf2aa9986e1dcdf39e74 | ||
EvidenceSynthesisModule,v0.1.3,github.com,OHDSI,results,EvidenceSynthesis,v0.4.0 |