I download a part of connectome fmri data related to working memory. I visualize it with connectome workbench, but how can I get the fmri signal with SPM8, there are so many files with suffix .nii the SPM8 tool didn't recognize any of them.
As a wild guess, I'm wondering if the Connectome files are NIfTI-2 format... The release notes for SPM12b mention that there's preliminary support for that, so I'd second Matthew's suggestion to try SPM12b.
Previously you just used spm_vol, and didn't get an error when reading the headers, so I would try that again, rather than using spm_vol_nifti, which seems to give you an error immediately. You should then be able to use spm_type as I mentioned before.
Another thing to try would be (again without semi-colon, so we can see output)
Hi Osama, sorry for the slow reply. These files do indeed appear to be NIfTI-2 (the header size is 540, as described here http://nifti.nimh.nih.gov/pub/dist/doc/nifti2.h, which you can check with f=fopen('file'); fread(f,1,'int') in matlab).
SPM12b can read them, though it warns that "code 4 is not an option for units". It seems that the files are one-dimensional (i.e. not images, but perhaps individual time-series), with length 91282. E.g. the following works for me in SPM12b:
N = nifti('cope1.dtseries.nii')
N.dat.dim % [1 1 1 1 91282]
plot(squeeze(N.dat(1,1,1,1,:)))
I've checked that SPM12b is happy with one of the NIfTI-2 test images from here: http://nifti.nimh.nih.gov/pub/dist/data/nifti2/ and it does seem to be, so if you were not expecting these files to be 1D, then you might need to investigate further in the connectome workbench (I can't help you with that I'm afraid).