Dear Lillian,
The best advice, as stated by James, would be to re-analyse your data
with SPM12. There has been so many changes and improvements since SPM2
that it is definitely worth the effort.
Using the SPM2 version from the GitHub repository mentioned by James, I
could specify and estimate a GLM using MATLAB R2010a, so this is an
option for you if you just want to review results that were found long
time ago with SPM2.
Out of curiosity, I opened the SPM2 results I just obtained in SPM12 and
got the same error than you. If you make a backup of the SPM.mat file
and then run the following:
load SPM.mat
SPM.Vbeta = spm_vol(strvcat(SPM.Vbeta.fname));
SPM.VResMS = spm_vol(SPM.VResMS.fname);
SPM.VM = spm_vol(SPM.VM.fname);
for i=1:numel(SPM.xCon)
if ~isempty(SPM.xCon(i).Vspm)
SPM.xCon(i).Vcon = spm_vol(SPM.xCon(i).Vcon.fname);
SPM.xCon(i).Vspm = spm_vol(SPM.xCon(i).Vspm.fname);
end
end
save SPM.mat SPM -v6
you should be able to review the results again. There might be a number
of very good reasons why you might observe slightly different values
compared with SPM2.
Best regards,
Guillaume.
On 18/08/2021 16:41, James Lee wrote:
> Lillian,
>
> I will also mention another possibility: there is an effort to re-write
> spm2 code so it works with more current matlab versions. I don't know if
> this code will give you exactly the same result as the original spm2,
> but if you want to look the website is: https://github.com/spm/spm2
>
> Jim
>
> On Wed, Aug 18, 2021 at 9:31 AM Lillian Chang <[log in to unmask]
> <mailto:[log in to unmask]>> wrote:
>
> Dear James,
>
> That's a bummer to hear, but I suppose that's just a downside to
> using old data. An easy enough solution at least. Thank you!
>
> Best,
> Lillian
>
> On Tue, Aug 17, 2021 at 5:25 PM James Lee <[log in to unmask]
> <mailto:[log in to unmask]>> wrote:
>
> Dear Lillian,
>
> You will be pleased to know that when I use spm12 on data
> processed with spm2 I get the same error!
>
> Line 622 of spm_getSPM.m in SPM12 calls spm_data_read at , while
> the corresponding line in SPM2 calls spm_get_data, so the
> software is very different between the two versions.
>
> I think the simplest fix would be to re-calculate the
> first-level statistics in spm12.
>
> Very best!
>
> Jim
>
> On Mon, Aug 16, 2021 at 6:08 PM Lillian Chang
> <[log in to unmask] <mailto:[log in to unmask]>> wrote:
>
> Dear SPM experts,
>
> I am trying to look at some first level results that had
> been computed in the past using SPM2. Everything seems to
> work when I click "Results" and select my initial contrast
> of interest. However, after the selection phase for "apply
> masking", "uncorrected mask p-value", and "nature of mask",
> I receive this error:
>
> Error using spm_data_read (line 81)
> Unknown data type.
>
> Error in spm_getSPM (line 622)
> Z = min(Z,spm_data_read(xCon(i).Vspm,'xyz',XYZ));
>
> Error in spm_results_ui (line 261)
> [SPM,xSPM] = spm_getSPM;
>
> Error while evaluating UIControl Callback.
>
>
> I am unsure how to interpret this error message. Could this
> be due to an incompatibility viewing results from SPM2 on SPM12?
>
> Best,
> Lillian
>
> --
> Lillian Chang
>
> Ph.D Candidate, Computational Cognitive Neuroscience Lab
> Interdisciplinary Program in Neuroscience
> Georgetown University
>
>
>
> --
> Lillian Chang
>
> Ph.D Candidate, Computational Cognitive Neuroscience Lab
> Interdisciplinary Program in Neuroscience
> Georgetown University
>
--
Guillaume Flandin, PhD
Wellcome Centre for Human Neuroimaging
UCL Queen Square Institute of Neurology
London WC1N 3BG
|