OCD Patients DATA 550 Final
data/contains the dataset for the projectcode/will contain codes that produces tables and plotsoutput/will contain output that successfully run
data/load_ocddata.R
- Run all the codes in this Rscript to load the data.
code/01_make_output.R
- Generates the table that provides insights into the education level, and marital status, reported by individuals of different ethnicities within the OCD patient dataset
- Run all the codes in this script
- Generates the required figure using
gtsummary - Saves the table as
.rdsobject in theoutput/folder - Check in
output/to ensure that the tables/graphs are saved
code/02_make_output.R
- Analyzes the relationship between demographic factors, duration of symptoms, OCD types, and severity
- Generates the required figure using
ggplot2 - Renders the final report using
report.Rmd - Check in
output/to ensure that the tables/graphs are saved
-
Demographics_Table.csv: This file contains the table that provides insights into the marital status and education level reported by individuals of different ethnicities within the OCD patient dataset, generated bycode/01_make_output.R. -
gplot_data.png: This file contains the figure that visualizes the relationship between demographic factors, duration of symptoms and genderscode/02_make_output.R. -
obsession_severity.png: This file contains the figure that visualizes the relationship between obsession type and Obsession Severity Scorecode/02_make_output.R. -
compulsion_severity.png: This file contains the figure that visualizes the relationship between compulsion type and Compulsion Severity Scorecode/02_make_output.R. -
obsession_duration.png: This file contains the figure that visualizes the relationship between obsession type and Obsession durationcode/02_make_output.R. -
compulsion_duration.png: This file contains the figure that visualizes the relationship between compulsion type and compulsion durationcode/02_make_output.R.
report.Rmd
- Reads the tables and figures generated by
code/01_make_output.Randcode/02_make_output.R - Integrates the analysis, tables, and figures into the final report
- run all the codes and save the file
- reproduce the report using
makecommand on terminal
Dockerfile
The folder dockerimage containes the images created.
Execute this command in terminal docker build -t ocd-patients-report .
Link to Dockerhub: https://hub.docker.com/repository/docker/ngunmen/project/general
Clone the repository.
Run make project to build the Docker image.
Run make final_report/report.html to generate the report.
project: Builds the Docker image.final_report/report.html: Generates the report.
Find the generated report in the final_report directory.
Clone the repository and navigate to the repository directory.
Build the Docker image using the following command:
docker build -t project .
Run the Docker container with the following command:
`docker run -v $(pwd)/final_report:/finalproject/final_report ngunmen/project:latest`