Skip to content

Predicting PO-SCORAD severity score for eczema using EczemaPred

License

Notifications You must be signed in to change notification settings

Tanaka-Group/EczemaPredPOSCORAD

 
 

Repository files navigation

Predicting PO-SCORAD severity score using EczemaPred

R-CMD-check

This repository contains the code developed for the article by Hurault et al. (2022), "EczemaPred: A computational framework for personalised prediction of eczema severity dynamics", published in Clinical and Translational Allergy.

The code is written in the R language for statistical computing and the probabilistic programming language Stan for the models.

Reproducibility

This repository is organized as an R package/research compendium, providing functions for our analysis. Nevertheless, this package has been written explicitly for this project and may not yet be suitable for more general purpose use.

The package can be installed with (the dependency argument will make sure to install all the packages required for the analysis):

devtools::install_github("ghurault/EczemaPredPOSCORAD", dependencies = TRUE)`

This project notably depends on three packages:

  • EczemaPred, which contains the different Stan models, including the reference models.
  • HuraultMisc, my personal package containing various data analysis functions.
  • TanakaData, a proprietary package containing loading the datasets used in this study. This package includes the raw files as well as data processing functions.

The analysis was performed with EczemaPred v0.1.0 and HuraultMisc version v1.1.1.

In the code, "Dataset 1" correspond to the "Derexyl" dataset and "Dataset 2" to the "PFDC" datasets. "Dataset 1" is not available due to our data sharing agreement, and "Dataset 2" will be made available shortly. Moreover, fake data similar to the datasets used in this study has been simulated to check the code. The data is generated in data-raw/generate_fakedata.R and can be loaded with EczemaPredPOSCORAD::FakeData, load_dataset("Fake") and used in the analysis by setting the script-level parameter dataset = "Fake".

File structure

Functions specific to this project are located in R/, and can be accessed by loading the package in R:

library(EczemaPredPOSCORAD)
help(package = "EczemaPredPOSCORAD")

The analysis code is located in the analysis/ directory:

In addition, generate_reports.R renders reports from 03_check_fit.Rmd and 05_check_performance.Rmd for all models and severity items/scores. view_reports.R create an HTML document to easily browse these reports.

Finally, data-raw/ contains the code for the exported data available in data/:

  • posterior and prior summary statistics of the EczemaPred models: EczemaPredPOSCORAD::par_POSCORAD
  • fake PO-SCORAD dataset: EczemaPredPOSCORAD::FakeData

License

The open source version of this project is licensed under the GPLv3 license, which can be seen in the LICENSE file.

About

Predicting PO-SCORAD severity score for eczema using EczemaPred

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%