run

Import in python using from mcutils.scripts.mask_dlabel import run

mcutils.scripts.mask_dlabel.run(label_fn, scalar_fn, out_fn, discard=False, keep_outside_mask=False)[source]

Masks out part of a dlabel file using a dscalar file

Parameters
  • label_fn – CIFTI dlabel file with labels

  • scalar_fn – CIFTI dscalar file with mask

  • out_fn – output dlabel filename

  • discard – if True discard any unmasked voxels/vertices from the output CIFTI files rather than assigning them a new mask

  • keep_outside_mask – if True included all voxels/vertices in the scalar mask, even if they are non-zero