Print

Print


Dear Andi,

during the transition from "Old Normalise" to DARTEL/Segment based  
normalisation functions, this functionality unfortunately got lost. A  
brief code review revealed that the prefixes used are hardcoded in the  
current version of SPM12. I.e. not even spm_defaults are honoured - as  
you already noticed yourself.
Although it is not relevant for the majority of SPM users, it would be  
good to have that feature back at some point in the future. I'll have  
a look whether that would be feasible.

Best,

Volkmar

Zitat von SPM Anonymous <[log in to unmask]>:

> Hello Volkmar,
> thank you for the answer.
> What do you mean with "saved batch"...? You mean within a matlab script?
>
> So it is not possible to change the output prefix with something like that:
>
>         clear matlabbatch
>         spm_get_defaults('normalise.write.prefix','a'); %try 1
>         spm('defaults','fmri');
>         spm_get_defaults('normalise.write.prefix','a'); %try 2
>         spm_jobman('initcfg');
>         spm_get_defaults('normalise.write.prefix','a'); %try 3
>         matlabbatch{1}.spm.spatial.normalise.write.subj.def =   
> {fullfile(DATA_DIR,'y_MAG.nii')};
>         matlabbatch{1}.spm.spatial.normalise.write.subj.resample = {  
>  fullfile(DATA_DIR,normdata{knormdata}) };
>         matlabbatch{1}.spm.spatial.normalise.write.woptions.bb =   
> ones(2,3)*NaN;
>         matlabbatch{1}.spm.spatial.normalise.write.woptions.vox =   
> [NaN NaN NaN];
>         matlabbatch{1}.spm.spatial.normalise.write.woptions.interp = 4;
>         spm_jobman('run',matlabbatch);
>
> => did not run... or did not give files with the prefix 'a' (should   
> it run with one of these lines?)
>
> So I need maybe to create different "spm_my_defaults.m"  for my case?
>
> Thank you
>
> Andi
>
>



-- 
Freiburg Brain Imaging
http://fbi.uniklinik-freiburg.de/
Tel. +761 270-54110
Fax. +761 270-53100