Collection of R functions for processing Pupillary Light Reflex (PLR) recordings.
Available as it is, not yet ready as usable package, coming with some glitches still.
TODO! Make a package, and easy to use
See the Prerequisites for R and Github if R and Git(hub) are new beasts to you
Go to the folder on your local machine where you want this repository to be placed, and open terminal there (Command propmpt in Windows, Terminal in Linux/Mac
git clone --recurse-submodules https://github.com/petteriTeikari/R-PLR
Go to the directory on your command window / Git Bash / Git-Cola / etc:
git pull
If you have edited some of your files after your last pull, and you are trying to pull "on top of it" (i.e. replacing the contents of your changes), the Git will stop and warn about a conflict a there is no way to automatically do conflict resolving. You can delete for example that single conflicting file from your local folder if you do not care about your own changes and just want the latest version.
Note! Even an extra space or a line change is considered a change
git submodule update --recursive --remote
Clean single PLR recordings, i.e. remove artifacts, resample to same length, impute the missing values, denoise the recordings, and decompose for data augmentation purposes
Statistical analysis for the PLR Recordings, i.e. plot your density and box plots, and the averaged PLR traces.