as a temporary workaround you could also use "move/delete files" from
BasicIO to rename the files right after normalisation (assuming that
you are working with different parameter sets sequentially, not in
parallel).
Zitat von [log in to unmask]:
> Dear Volkmar,
>
> thank you for clarification and the clear answer.
>
> So I will change my file structure to process my data in different
> directories (instead of only changing the fileprefix).
>
>
> Thank you for your help
>
> Andi
>
>
>
> ----- Original Nachricht ----
> Von: Volkmar Glauche <[log in to unmask]>
> An: SPM Anonymous <[log in to unmask]>
> Datum: 29.09.2015 15:01
> Betreff: Re: change filename prefix of "spm.spatial.normalise"
>
>> 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
>>
>>
>>
>
--
Freiburg Brain Imaging
http://fbi.uniklinik-freiburg.de/
Tel. +761 270-54110
Fax. +761 270-53100
|