Analysis: Meghan Hutch & Dr. Charlene Ong
To evaluate the temporal relationships between intracranial pressure (ICP) and pupil reactivity in critically ill patients.
Leveraging data from two intensive care units in the Boston area, this study evaluates trends in ICP and pupil metrics in patients with traumatic brain injuries, intraparenchymal hemorrhage, and aneurysmal subarachnoid hemorrhage. Pupil data was recorded using Quantitative Pupillometers from NeurOptics.
The scripts in this repository clean and aggreagte ICP and pupillometry data in order to facilitate statistical analysis of the trends of these two physiological biomarkers and associated patient health outcomes.
Currently, raw data is stored privately in the Ong Lab. If to have access to the data, this respository can be copied and run locally.
Clone this repository to your local system by pasting the following into your terminal/shell:
git clone https://github.com/meghutch/ICP-NPI.git
Alternatively, follow these helpful instructions for setting up git in Rstudio
├── README.md <- You are here
|
├── .gitignore <- file indicating the folders not to upload to the repo (data confidentiality purposes)
|
├── analysis/
│ ├── NPi_and_ICP_Analysis.Rmd <- Primary script to run the analysis
| ├── Table1.Rmd <- Format Table1
|
├── data_processing/ <- Scripts to process data
| ├── 1_Clean_ICP_Pupils_Data.Rmd <- Clean ICP and Pupillometry data
| ├── 2_Merge_Pupil_ICP_Data.Rmd <- Merge cleaned ICP and Pupillometry data within structured time intervals
| ├── 3_EVD_Drainage.Rmd <- Processed EVD drainage
| ├── 4_Demographics.Rmd <- Process REDCap demographics data
| ├── 5_NPI_ICP_Burden.Rmd <- Calculate burden of NPi and ICP
|
|── R/ <- Functions to perform the analysis
| ├── time_sensitivity_funcs.Rmd <- Functions to perform the NPi_and_ICP_Analysis.Rmd
To run the analysis:
-
First, in the root project directory, create two empty folders: 1) processed_data and 2) results
-
Next, pre-process the data using scripts 1-5 in the data_processing/ folder. Scripts should be run in numerical order.
-
In the analysis folder, first run Table1.Rmd
-
Lastly, run NPi_and_ICP_Analysis.Rmd to run the preliminary analysis. Knit to generate the markdown file.