OHDSI Large-Scale Population-Level Evidence Generation study
This study aims to generate population-level evidence on treatments used for major depressive disorder.
Detailed information and protocol is available on the OHDSI Wiki.
How to run
Make sure that you have Java installed. If you don't have Java already intalled on your computed (on most computers it already is installed), go to java.com to get the latest version. (If you have trouble building with rJava below, be sure on Windows that your Path variable includes the path to jvm.dll (Windows Button --> type "path" --> Edit Environmental Variables --> Edit PATH variable, add to end ;C:/Program Files/Java/jre/bin/server) or wherever it is on your system.)
In R, use the following code to install the study package and its dependencies:
install.packages("devtools") library(devtools) install_github("ohdsi/OhdsiRTools") install_github("ohdsi/DatabaseConnector") install_github("ohdsi/FeatureExtraction") install_github("ohdsi/CohortMethod", ref = "develop") install_github("ohdsi/OhdsiSharing") install_github("ohdsi/MethodEvaluation") install_github("ohdsi/StudyProtocols/LargeScalePopEst")
Once installed, you can execute the study by modifying and using the following code:
library(LargeScalePopEst) connectionDetails <- createConnectionDetails(dbms = "postgresql", user = "joe", password = "secret", server = "myserver") # Optional: options(fftempdir = "R:/fftemp") execute(connectionDetails = connectionDetails, cdmDatabaseSchema = "cdm_data", oracleTempSchema = NULL, workDatabaseSchema = "scratch", studyCohortTable = "ohdsi_depression_cohorts", exposureCohortSummaryTable = "ohdsi_depression_exposure_summary", workFolder = "c:/temp/LargeScalePopEst", maxCores = 4, createCohorts = TRUE, fetchAllDataFromServer = TRUE, injectSignals = TRUE, generateAllCohortMethodDataObjects = TRUE, runCohortMethod = TRUE) calibrateEstimatesAndPvalues("c:/temp/LargeScalePopEst")
- For details on how to configure
createConnectionDetailsin your environment type this for help:
fftempdircan be used to specify a path to a folder on the local file system where temporary files are stored. Be sure to use forward slashes (/). Please make sure at least 100GB of space is available. If fftempdir is not specified, a temp folder will be created in the system temp folder.
cdmDatabaseSchemashould specify the schema name where your patient-level data in OMOP CDM format resides. Note that for SQL Server, this should include both the database and schema name, for example 'cdm_data.dbo'.
oracleTempSchemashould be used in Oracle to specify a schema where the user has write priviliges for storing temporary tables.
workDatabaseSchemashould specify the schema name where intermediate results are stored on the server. You should have create and write priviliges in this schema. Note that for SQL Server, this should include both the database and schema name, for example 'scratch.dbo'.
studyCohortTableshould specify the name of the table that will be created in the workDatabaseSchema to hold the study-specific cohorts.
exposureCohortSummaryTableshould specify the name of the table that will be created in the workDatabaseSchema to hold summary information on the exposure cohorts.
workFoldershould be the path to a folder on the local file system where intermediate and result files are stored. Be sure to use forward slashes (/). Please make sure at least 250GB of space is available.
maxCoresspecifies the maximum number of cores to be used. Allocating more cores will speed up the process.
runCohortMethodcan be used to run only parts of the analysis. Note that none of the steps can be skipped unless already comleted in a previous run.
- For details on how to configure
- Package manual: LargeScalePopEst.pdf
- Developer questions/comments/feedback: OHDSI Forum
- We use the GitHub issue tracker for all bugs/issues/enhancements
The LargeScalePopEst package is licensed under Apache License 2.0
LargeScalePopEst was developed in R Studio.
Under active development.