unravel.voxel_stats.whole_to_LR_avg module#
Use vstats_whole_to_avg
(lr_avg
) from UNRAVEL to average an image with its mirrored version for voxel-wise stats. This can also smooth the image with a kernel and apply a mask.
- Prereqs:
- Input images from
vstats_prep
. These may be z-scored with
vstats_z_score
.
- Input images from
- Inputs:
*.nii.gz images in the current directory.
- Output:
input_img_LRavg.nii.gz for each input image.
- Next steps:
Run
vstats
to perform voxel-wise stats.
- Next commands for voxel-wise stats:
Prepend condition names with
utils_prepend
.Check images in FSLeyes and run
vstats
to perform voxel-wise stats.
- Next commands for voxel-wise stats:
Preprocess atlas space IF images
vstats_z_score
, prepend condition names withutils_prepend
, and perform voxel-wise stats withvstats
.
Usage:#
vstats_whole_to_avg [-i ‘<asterisk>.nii.gz’] [–kernel 0] [–axis 2] [–shift 0] [–parallel] [–atlas_mask path/atlas_mask.nii.gz] [-v]