unravel.voxel_stats.whole_to_LR_avg module#

Use vstats_whole_to_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.

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 with utils_prepend, and perform voxel-wise stats with vstats.

Usage:#

vstats_whole_to_avg [-i ‘<asterisk>.nii.gz’] [–kernel 0] [–axis 2] [–shift 0] [–parallel] [–atlas_mask path/atlas_mask.nii.gz] [-v]

unravel.voxel_stats.whole_to_LR_avg.parse_args()[source]#
unravel.voxel_stats.whole_to_LR_avg.whole_to_LR_avg(file, kernel=0, axis=0, shift=2, atlas_mask=None)[source]#
unravel.voxel_stats.whole_to_LR_avg.main()[source]#