Hi gang,
I'm trying to regress one set of images (arranged in 4D) onto another set of images (same size and dimensions confirmed by fslinfo):
fsl_glm -i Set1_AllSs.nii.gz --demean -d Set2_AllSs.nii.gz -m MNI152_T1_2mm_brain_mask.nii.gz --out_z=Z_RECNfcOnPPI.nii.gz -o Betas_RECNfcOnPPI.nii.gz
The output images get created but they aren't working as actual Nifti images.
I tried simplifying to:
fsl_glm -i Set1_AllSs.nii.gz -d Set2_AllSs.nii.gz -o TryMe.nii.gz
When I do fslinfo TryMe.nii.gz, this is the error msg:
** ERROR: nifti_convert_nhdr2nim: bad dim[0]
** ERROR (nifti_image_read): cannot create nifti image from header 'TryMe.nii.gz'
** ERROR: nifti_image_open(TryMe): bad header info
ERROR: failed to open file TryMe
ERROR: Could not open file
[doathes@chead NC_PPIrest]$ fslinfo TryMe.nii.gz
** ERROR: nifti_convert_nhdr2nim: bad dim[0]
** ERROR (nifti_image_read): cannot create nifti image from header 'TryMe.nii.gz'
** ERROR: nifti_image_open(TryMe): bad header info
ERROR: failed to open file TryMe
ERROR: Could not open file
In case it is relevant, these are 1st level stats images and the 4th dimension is subject.
Thanks in advance for any tips!
Desmond
|