The -label-to-border command requires gifti label files, as it does one surface at a time - there is not a cifti version of this command (because border files are surface only and single hemisphere, and there is no equivalent volume operation). So, first -cifti-separate to get gifti label files:
wb_command -cifti-separate melodic_IC_ftb.dlabel.nii -label CORTEX_LEFT test.L.label.gii -label CORTEX_RIGHT test.R.label.gii Then you can use -label-to-border: wb_command -label-to-border Q1-Q6_R440.L.inflated.32k_fs_LR.surf.gii test.L.label.gii test.L.border wb_command -label-to-border Q1-Q6_R440.R.inflated.32k_fs_LR.surf.gii test.R.label.gii test.R.border Note that cifti files generally can only be used with operations that begin with -cifti (there are some exceptions, like -nifti-information, -file-information, -set-map-names, -add-to-spec-file, -file-convert, ...) Tim On Mon, Nov 30, 2015 at 3:34 PM, Yizhou Ma <[email protected]> wrote: > Dear HCP experts, > > I am trying to create borders based on HCP's .dlabel files. I am working > on the FTB labels in the ICA PTN results. The reference surface I use is > the R440 template, inflated surface. Here's the command I used: > > wb_command -label-to-border Q1-Q6_R440.L.inflated.32k_fs_LR.surf.gii > melodic_IC_ftb.dlabel.nii test.border > > I got the following error message: > > ERROR: Parse Error while reading melodic_IC_ftb.dlabel.nii: error occurred > while parsing element line number: 1 column number: 1 > > Could somebody please help me with this? > > Thank you very much, > Cherry > > _______________________________________________ > 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
