Dear Karina,
My understanding of the error message is that the missing file
"con_0002.nii" is not an output of your model estimation but one of the
input images. Are you running a second level model?
The following command will return the full path of the files SPM is
trying to read:
>> char(SPM.xY.VY.fname)
Time series extraction requires access to the (raw) input images (and
not just the files from the directory containing the SPM.mat file) so it
won't work if you moved or deleted them.
Best regards,
Guillaume.
On 31/07/18 23:00, Karina Quevedo wrote:
> Dear SPMers,
>
> We have been able to do extractions using the eigenvariate function
> before (yesterday) from the highest coordinate of activity in an F test
> using SPM12 (v6906) and Matlab2017b. However, it throws an error today
> when we are trying to run extractions (with the exact same SPM.mat and
> files). We were just doing it yesterday and it went well.
>
> However, this error does not happen when we use files derived from spm_8
> (img. and hdr.). and the same versions of SPM12 (v6906) and Matlab
> Matlab2017b.
>
> There were 2 of us trying to do extractions with the same SPM12
> (v6906) but the errors only happen when we use SPM12 (v6906) and
> Matlab2017b and image files (e.g. ess_0001.nii) generated with SPM12
> (v6906) which pertains to the F test results.
>
> We tried to update the version of SPM12(v7219) and used it with but we
> still got the same error.
>
>
> Below is the example of error that we got (/Do note that there is no
> actual con_0002.nii file as contrast 2 is a F-test. The file for
> contrast 2 is named ess_0002.nii/) :
>
> *Error with file con_0002.nii*
> *Error using spm_sample_vol*
> *Cant open image file.*
> *
> *
> *Error in spm_get_data (line 44)*
> * Y(i,:) = spm_sample_vol(V(i),XYZ(1,:),XYZ(2,:),XYZ(3,:),0);*
> *
> *
> *Error in spm_data_read (line 48)*
> * Y = spm_get_data(V,varargin{2});*
> *
> *
> *Error in spm_regions (line 181)*
> *y = spm_data_read(SPM.xY.VY,'xyz',xSPM.XYZ(:,Q));*
> * *
> *Error while evaluating UIControl Callback.*
>
> Please let me know if anyone had encountered this before or know what is
> going on.
>
> Thank you.
>
> Best,
> Yuan and Karina
>
> --
> Karina Quevedo, Ph.D., L.P.
> Assistant Professor. Division of Child and Adolescent Psychiatry
> Room F260
> University of Minnesota. Department of Psychiatry
> 2450 Riverside Avenue, Mpls, MN 55454
> 612-273-9761 Fax: 612-273-9779
> [log in to unmask] <mailto:[log in to unmask]>
>
--
Guillaume Flandin, PhD
Wellcome Centre for Human Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|