Dear HCP experts,

I am experiencing difficulties reading cifti into matlab.

For the ICA maps (melodic_IC.dscalar.nii). I used:

cifti=ft_read_cifti('melodic_IC.dscalar.nii')

The error I got was:
Error using read_nifti2_hdr (line 56)
cannot open melodic_IC.dscalar.nii as nifti file, hdr size = 1684628319,
should be 348 or 540

I also tried:
cifti=ciftiopen('melodic_IC.dscalar.nii','wb_command')

and I got
ERROR: error reading NIfTI file
/workbench/bin_rh_linux64/melodic_IC.dscalar.nii:
/workbench/bin_rh_linux64/melodic_IC.dscalar.nii is not a valid NIfTI file
wb_command -cifti-convert -to-gifti-ext melodic_IC.dscalar.nii
/tmp/tpe16b84a6_70fd_4d0b_80c7_1daf1d5c79b7.gii: Signal 127
Error using read_gifti_file (line 17)
[GIFTI] Loading of XML file /tmp/tpe16b84a6_70fd_4d0b_80c7_1daf1d5c79b7.gii
failed.

Error in gifti (line 71)
                this = read_gifti_file(varargin{1},giftistruct);

Error in ciftiopen (line 31)
cifti = gifti([tmpfile '.gii']);

Errors when opening other cifti files are different, for example

cifti=ciftiopen('rfMRI_REST1_LR_Atlas_hp2000_clean.dtseries.nii','wb_command')
Undefined function 'file_array' for input arguments of type 'char'.

I run all commands in workbench's bin. My workbench is v1.0. My gifti
library was just downloaded so no reason to believe that it is not
up-to-date.

Any help is appreciated.

Best,
Cherry

_______________________________________________
HCP-Users mailing list
[email protected]
http://lists.humanconnectome.org/mailman/listinfo/hcp-users

Reply via email to