This guide walks you through how to process new data files and run the Shiny dashboard.
- Place new
.matfiles in the data directory configured viapath_to_mat_files. - Run the main script:
source("ExtractSaveData.R")This will:
- Identify new (unprocessed)
.matfiles - Convert them to
.rdsusingConvertToRDS.R - Extract metadata with
ReadBcontrolData.RorReadBpodData.R - Append results to
shiny_app/TRAINING.csv
Already-processed files are skipped automatically.
From within R or RStudio:
setwd("shiny_app")
shiny::runApp()The app loads TRAINING.csv, applies cleaning and reshaping (via load_data.R), and generates interactive plots.
- The pipeline uses parallel processing to speed up file conversion.
shiny_app/full_TRAINING.csvcan be used to accumulate data across sessions or datasets.- Only sessions not already listed in the CSV will be added.
- You can rerun
ExtractSaveData.Rsafely without duplicating entries.
- If the Shiny app fails to launch, check for formatting issues in
TRAINING.csv(e.g., broken rows). - Ensure that all required packages are installed:
tidyverse,R.matlab,shiny,ggpubr,ggrepel,parallel.