You could also make a cortical-only version of the cifti file.
-cifti-separate will give you the cortical data, and the medial wall
excluding ROIs, which you can then use in -cifti-create-dense-scalar to
re-form them into a dscalar file. You could instead make a cortical-only
template cifti
Dear Tim,
Thank you for your reply. I wanted the subcortical data to be 0 so that it
would not interfere with some math operations I wanted to perform using
cortical data only, but I agree with your idea that this is not the optimal
approach (plus the 0's would still affect some of the math
You can use -cifti-replace-structure with the -volume-all option and a
volume file of zeroes. If you have a lot of maps (or you want to do
something similar to a long dtseries), you can make a cifti file with 1's
in the surfaces and 0's in voxels, and use -cifti-math to multiply them
together.
Dear HCP experts,
I have a dscalar file with one map of cortical and subcortical data. I would
like to transform all subcortical values to 0, and leave the cortical surface
values intact. I have explored the -cifti-stats and -volume-stats options as
well as -cifti-create-dense-scalar but cannot