Skip to content

About

A network study to externally validate an existing glaucoma screening model

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Predicting Risk of Glaucoma Using Systemic Health EHR: An OHDSI Network Study

Study Status: Repo Created

[Description (single paragraph)]

[You can add other text at this point]

Code to run study

# first install the package
remotes::install_github('ohdsi-studies/GlaucomaPrescreeningPrediction')

# set up python environment to use 
reticulate::virtualenv_create("glaucoma-screen", requirements = system.file('requirements.txt', package = 'GlaucomaPrescreeningPrediction'))
reticulate::use_virtualenv("glaucoma-screen")

# Specify the connection stuff 
cohortTable <- 'glau_screen_cohort'
cdmDatabaseSchema <- '<add schema with OMOP CDM data>'
cohortDatabaseSchema <- '<add schema with read/write access>'
tempEmulationSchema <- Sys.getenv("DATABRICKS_SCRATCH_SCHEMA")
options(sqlRenderTempEmulationSchema = tempEmulationSchema)


# get data
connectionDetails <- <add connection details>

# run all analyses
GlaucomaPrescreeningPrediction::executeGlaucoma(
  connectionDetails = connectionDetails,
  cdmDatabaseSchema = cdmDatabaseSchema,
  cohortDatabaseSchema = cohortDatabaseSchema,
  cohortTable  = cohortTable,
  tempEmulationSchema = tempEmulationSchema,
    outputFolder = file.path(getwd(),'GlaucomaPrescreeningPredictionAll'),
    minCellCount = 5,
    runCohortGeneration = TRUE,
    runCharacterization = TRUE,
    runValidation = TRUE,
    runFineTune = TRUE,
    runModelDevelopment = TRUE,
    sampleSize = 1000000 # can make this bigger if you have time to run
)

About

A network study to externally validate an existing glaucoma screening model

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages