Dear Giles,
You seem to be using a very old version of SPM12 (r6225): any chance you
could update to r7487?
When writing the header of the mask.nii file, SPM actually checks
whether such a file exists (it shouldn't as model estimation deletes any
already existing files) and reads its header if that is indeed the case.
Given that you end up in debug mode in @nifti\private\read_hdr_raw.m,
can you check where hname points to and what the size of that file is?
Best regards,
Guillaume.
On 27/11/2018 17:07, Story, Giles wrote:
> Dear SPM community,
>
> I would very much value your advice on a warning I encounter when
> running either first or second level analyses. The warning is as follows:
>
> Warning: Cannot recognise format. Trying Analyze
> In @nifti\private\read_hdr_raw at 50
> In @nifti\private\read_hdr at 30
> In nifti.nifti at 26
> In spm_create_vol>create_vol at 88
> In spm_create_vol at 13
> In spm_data_hdr_write at 14
> In spm_spm at 463
> In spm_run_fmri_est at 33
> In matlabbatch\private\cfg_run_cm at 29
> In cfg_util>local_runcj at 1688
> In cfg_util at 959
> In spm_jobman>fill_run_job at 471
> In spm_jobman at 246
> In secondlevel2 at 25
>
> I gather it's something to do with checking the number of bits in the
> header of the image file to determine its format. This should be Nifti-1
> but somehow it doesn’t pass the checks so SPM proceeds as if it's the
> earlier Analyze format.
>
> When I run it in debug mode (dbstop if warning) it seems to happen when
> it tries to read the header of the file mask.nii.
>
> Anyway just wondered if you've heard of this before or have any clue as
> to where the problem lies (if indeed it is a problem)?
>
> Best wishes,
>
> Giles Story
>
> -------------
> Dr G Story PhD MRCPsych
> Max Planck –UCL Centre for Computational Psychiatry and Ageing
> www.gilesstory.com
--
Guillaume Flandin, PhD
Wellcome Centre for Human Neuroimaging
UCL Queen Square Institute of Neurology
London WC1N 3BG
|