oxford-pharmacoepi / THIN_incidence_prevalence_colorectal_cancer

0 stars 0 forks source link

Incidence, Prevalence and Characterisation of Colorectal Cancer across Europe

Study Status: Started

Repository organisation

This repo is organized as follows:

Download the repository

1) Download this entire repository (you can download as a zip folder using Code -> Download ZIP, or you can use GitHub Desktop).

Running the cohort diagnostics using PhenotypeR

1) Navigate to PhenotypeR in the 1_Diagnostics folder. Open the project PhenotypeR.Rproj in RStudio (when inside the project, you will see its name on the top-right of your RStudio session) in 1_Diagnostics/PhenotypeR 2) Open and work though the CodeToRun.R file which should be the only file that you need to interact with. Run the lines in the file, adding your database specific information and so on (see comments within the file for instructions). The last line of this file will run the study (source(here("RunStudy.R")).
3) After running you should then have a zip folder with results to share in your output folder.

Running the main study

1) Open the folder 2_Study and then the project THINCancerIncidencePrevalence.Rproj in RStudio (when inside the project, you will see its name on the top-right of your RStudio session) 2) Open and work though the CodeToRun.R file which should be the only file that you need to interact with. Run the lines in the file, adding your database specific information and so on (see comments within the file for instructions). The last line of this file will run the study (source(here("RunStudy.R")).
3) After running you should then have a zip folder with results to share in your output folder.

Running the reporting shiny

1) Open the 3_Reporting folder and open the project Shiny.Rproj 2) Place the results from the main study into the data file of the shiny 3) Run app and your results will be available to review locally