Skip to content

Commit

Permalink
Release v0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonysena authored Apr 13, 2023
2 parents a12dee1 + a7d4ef8 commit 676fde0
Show file tree
Hide file tree
Showing 37 changed files with 158 additions and 88 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
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")),
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Strategus 0.0.5
===============

- Required metadata tables check fails with DatabaseConnector < 6.0 (#61)
- Update module references and add script to run Strategus on Eunomia in `extras/ExecuteStrategusOnEunomia.R` (#66)

Strategus 0.0.4
===============

Expand Down
2 changes: 1 addition & 1 deletion R/DatabaseMetaData.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ createDatabaseMetaData <- function(executionSettings, keyringName = NULL) {
connection = connection,
databaseSchema = executionSettings$cdmDatabaseSchema
)

cdmTableList <- tolower(cdmTableList)

if (!length(cdmTableList[which(x = cdmTableList %in% requiredTables)]) == length(requiredTables)) {
missingCdmTables <- requiredTables[!(requiredTables %in% cdmTableList)]
Expand Down
2 changes: 1 addition & 1 deletion docs/404.html

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

106 changes: 53 additions & 53 deletions docs/articles/CreatingAnalysisSpecification.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/articles/CreatingModules.html

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

4 changes: 2 additions & 2 deletions docs/articles/ExecuteStrategus.html

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

4 changes: 2 additions & 2 deletions docs/articles/IntroductionToStrategus.html

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

2 changes: 1 addition & 1 deletion docs/articles/index.html

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

2 changes: 1 addition & 1 deletion docs/authors.html

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

2 changes: 1 addition & 1 deletion docs/index.html

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

7 changes: 6 additions & 1 deletion docs/news/index.html

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

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ articles:
CreatingModules: CreatingModules.html
ExecuteStrategus: ExecuteStrategus.html
IntroductionToStrategus: IntroductionToStrategus.html
last_built: 2023-03-29T18:18Z
last_built: 2023-04-13T19:10Z

2 changes: 1 addition & 1 deletion docs/pull_request_template.html

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

2 changes: 1 addition & 1 deletion docs/reference/Strategus-package.html

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

2 changes: 1 addition & 1 deletion docs/reference/addModuleSpecifications.html

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

2 changes: 1 addition & 1 deletion docs/reference/addSharedResources.html

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

2 changes: 1 addition & 1 deletion docs/reference/createCdmExecutionSettings.html

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

2 changes: 1 addition & 1 deletion docs/reference/createEmptyAnalysisSpecificiations.html

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

2 changes: 1 addition & 1 deletion docs/reference/createResultsExecutionSettings.html

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

2 changes: 1 addition & 1 deletion docs/reference/ensureAllModulesInstantiated.html

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

2 changes: 1 addition & 1 deletion docs/reference/execute.html

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

2 changes: 1 addition & 1 deletion docs/reference/getModuleList.html

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

2 changes: 1 addition & 1 deletion docs/reference/index.html

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

2 changes: 1 addition & 1 deletion docs/reference/retrieveConnectionDetails.html

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

2 changes: 1 addition & 1 deletion docs/reference/storeConnectionDetails.html

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

2 changes: 1 addition & 1 deletion docs/reference/unlockKeyring.html

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

58 changes: 58 additions & 0 deletions extras/ExecuteStrategusOnEunomia.R
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")
)
1 change: 1 addition & 0 deletions extras/PackageMaintenance.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ devtools::spell_check()

# Update the module version information based on updates found on GitHub
library(dplyr)
# httr::set_config(httr::config(ssl_verifypeer = FALSE))
updateModuleVersionInfo <- function() {
modules <- CohortGenerator::readCsv(file = "inst/csv/modules.csv")
modules <- modules %>%
Expand Down
Binary file modified extras/Strategus.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions inst/csv/modules.csv
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
Binary file modified inst/doc/CreatingAnalysisSpecification.pdf
Binary file not shown.
Binary file modified inst/doc/CreatingModules.pdf
Binary file not shown.
Binary file modified inst/doc/ExecuteStrategus.pdf
Binary file not shown.
Binary file modified inst/doc/IntroductionToStrategus.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions inst/testdata/analysisSpecification.json
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@
},
{
"module": "CharacterizationModule",
"version": "0.2.3",
"version": "0.3.1",
"remoteRepo": "github.com",
"remoteUsername": "ohdsi",
"settings": {
Expand Down Expand Up @@ -2360,7 +2360,7 @@
},
{
"module": "PatientLevelPredictionModule",
"version": "0.0.7",
"version": "0.1.0",
"remoteRepo": "github.com",
"remoteUsername": "ohdsi",
"settings": [
Expand Down
4 changes: 2 additions & 2 deletions vignettes/CreatingAnalysisSpecification.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ The following code creates the `characterizationModuleSpecifications` to perform


```{r eval=FALSE}
source("https://raw.githubusercontent.com/OHDSI/CharacterizationModule/v0.3.0/SettingsFunctions.R")
source("https://raw.githubusercontent.com/OHDSI/CharacterizationModule/v0.3.1/SettingsFunctions.R")
characterizationModuleSpecifications <- createCharacterizationModuleSpecifications(
targetIds = c(1, 2),
outcomeIds = 3,
Expand Down Expand Up @@ -421,7 +421,7 @@ sccsModuleSpecifications <- creatSelfControlledCaseSeriesModuleSpecifications(
The following code creates the `plpModuleSpecifications` to perform a self-controlled case series analysis for this study.

```{r eval=FALSE}
source("https://raw.githubusercontent.com/OHDSI/PatientLevelPredictionModule/v0.0.8/SettingsFunctions.R")
source("https://raw.githubusercontent.com/OHDSI/PatientLevelPredictionModule/v0.1.0/SettingsFunctions.R")
makeModelDesignSettings <- function(targetId, outcomeId, popSettings, covarSettings) {
invisible(PatientLevelPrediction::createModelDesign(
Expand Down

0 comments on commit 676fde0

Please sign in to comment.