ep.eye_process_subject: Read and process a single .edf file.

View source: R/ep.eye_process_subject.R

ep.eye_process_subjectR Documentation

Read and process a single .edf file.

Description

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.

Usage

ep.eye_process_subject(edf_raw, config_path, step = NULL, ...)

Arguments

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 read_edf.R function.

file

Path to the .edf file to process.

Details

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.

Value

A fully processed ep.eye object. [DETAILS HERE]

Author(s)

Nate Hall

Examples

 ## 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)

PennStateDEPENdLab/experiment_pipeline documentation built on Sept. 4, 2024, 2:35 a.m.