View source: R/ep.eye_process_subject.R
ep.eye_process_subject | R Documentation |
This is the main worker function that processes a single subject through the ep.eye preprocessing pipeline. It takes as arguments the paths to an .edf file and corresponding configuration YAML file and exports a preprocessed ep.eye object for a single subject.
ep.eye_process_subject(edf_raw, config_path, step = NULL, ...)
config_path |
Path to corresponding .yml configuration file with processing instructions. Instructions on how to effectively set up a configuration file can be found [HERE]. |
step |
complete preprocessing up to which step? |
... |
Optional arguments to pass to |
file |
Path to the .edf file to process. |
This function is ideally used within the ep_batch_process_eye.R
data.table notes: one annoying challenge is making sure that data.table has openMP support enabled. See https://github.com/Rdatatable/data.table/issues/5419#issuecomment-1465023581 and https://stackoverflow.com/questions/76374014/use-openmp-on-m2-mac-with-r-and-data-table. You will need to download a few packages and update Makevars and your bashrc file.
A fully processed ep.eye object. [DETAILS HERE]
Nate Hall
## Not run:
file <- "/proj/mnhallqlab/studies/NeuroMAP/s3_data/Neighborhood_PSU/Eye/004_AZ_Neighborhood_Eye.edf"
config_path <- "/proj/mnhallqlab/studies/NeuroMAP/s3_data_ep_specs/yaml/Neighborhood_PSU.yaml"
ep.eye <- read_process_eye(file, config_path)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.