Skip to contents

R parity of morie.entheo_dmt.load_fmri_subject. Reads LongS{NN}{DMT|PCB}.mat and extracts the BOLD_AAL matrix (112 AAL regions x 840 TRs).

Usage

morie_entheo_load_fmri_subject(subject_id, condition = "DMT")

Arguments

subject_id

integer subject ID (e.g. 1, 2, 14).

condition

character: "DMT" (default) or "PCB".

Value

numeric matrix of shape (112, 840).

Examples

# \donttest{
root <- Sys.getenv("MORIE_DMT_IMAGING_ROOT", file.path(morie_cache_dir(), "DMT_Imaging"))
if (dir.exists(root)) {
  morie_entheo_load_fmri_subject(1L, "DMT")
} 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
# }