Once you have done it once (or if you already have another cifti file that has the correct setup), you can use -cifti-create-dense-from-template to do this to another file in one step.
Tim On Thu, Feb 8, 2018 at 7:53 PM, Glasser, Matthew <[email protected]> wrote: > You need to export the ROIs with -cifti-separate and then use them with > -cifti-create to account for the medial wall. > > Peace, > > Matt. > > From: <[email protected]> on behalf of Xavier Guell > Paradis <[email protected]> > Date: Thursday, February 8, 2018 at 6:13 PM > To: "[email protected]" <[email protected]> > Subject: [HCP-Users] Restrict dscalar to only CORTEX_LEFT+CORTEX_RIGHT > > Dear HCP experts, > I have a dscalar file (myfile.dscalar.nii), and I would like to restrict > this file so that it only contains data for CORTEX_LEFT and CORTEX_RIGHT. > If I do this right, CORTEX_LEFT and CORTEX_RIGHT should be a total number > of 59412 data points. > > I have tried this, which has not worked: > -cifti-separate myfile.dscalar.nii COLUMN -metric CORTEX_LEFT > myfile_onlycortexleft.func.gii > -cifti-separate myfile.dscalar.nii COLUMN -metric CORTEX_RIGHT > myfile_onlycortexright.func.gii > -cifti-create-dense-scalar myfile_leftandrightcortex.dscalar.nii > -left-metric myfile_onlycortexleft.func.gii -right-metric > myfile_onlycortexright.func.gii > > However, when I open the file myfile_leftandrightcortex.dscalar.nii with > Python, it has 64984 data points instead of 59412 (it should have 59412 if > it truly only has data points for CORTEX_LEFT and CORTEX_RIGHT). > > Is there another way to do this? > > Thank you very much, > Xavier. > > _______________________________________________ > HCP-Users mailing list > [email protected] > http://lists.humanconnectome.org/mailman/listinfo/hcp-users > > _______________________________________________ > HCP-Users mailing list > [email protected] > http://lists.humanconnectome.org/mailman/listinfo/hcp-users > _______________________________________________ HCP-Users mailing list [email protected] http://lists.humanconnectome.org/mailman/listinfo/hcp-users
