Skip to contents

R parity of morie.entheo_dmt.load_eeg_region. Reads RegressorsInterpscrubbedIRASA_<region>.mat and returns the DMT, PCB, and difference regressor cubes.

Usage

morie_entheo_load_eeg_region(region)

Arguments

region

character. One of Central, Frontal, Occipital, Parietal, Temporal.

Value

named list with elements regDMT, regPCB, regdiff; each is a 3-D array of shape (14 subj, 840 TRs, 5 bands).

Examples

# \donttest{
root <- Sys.getenv("MORIE_DMT_IMAGING_ROOT", file.path(morie_cache_dir(), "DMT_Imaging"))
if (dir.exists(root)) {
  morie_entheo_load_eeg_region("Frontal")
} else {
  message("needs the DMT_Imaging data: git clone https://github.com/timmer500/DMT_Imaging.git ", root)
}
#> needs the DMT_Imaging data: git clone https://github.com/timmer500/DMT_Imaging.git /home/runner/.cache/R/morie/DMT_Imaging
# }