vox_cor: vox_cor: voxelwise correlation of 4d nifti from seed roi to...

View source: R/vox_cor.R

vox_corR Documentation

vox_cor: voxelwise correlation of 4d nifti from seed roi to target

Description

vox_cor: voxelwise correlation of 4d nifti from seed roi to target

Usage

vox_cor(tsnii, seed, trgmsk)

Arguments

tsnii

4d timeseries as file name, oronifti object, or 4d timeseries matrix

seed

1d numeric matrix or "logi" boolean matrix (seed_mask@.Data==1, see read_mask)

trgmsk

"logi" boolean matrix (trg_mask@.Data==1, see read_mask)

Examples

   # usage
   ## Not run: 
   seed <- read_mask("striatum_mask.nii.gz")
   target <- read_mask("gm_mask.nii.gz")
   target <- target & ! seed
   allcors <- vox_cor("subj_ts.nii.gz",seed,target)
   # passing seed as a vector
   # allcors_mean <- vox_cor("subj_ts.nii.gz",apply(seed,2,mean),target)
   
## End(Not run)

LabNeuroCogDevel/LNCDR documentation built on Oct. 13, 2023, 4:31 a.m.