Dear John,
Try the 'prepare' functionality on the GUI or the object method fidudials where you may be able get/set fidudial labels.
Best wishes
Martin
On 25 Jul 2012, at 10:30, "John D. Griffiths" <[log in to unmask]> wrote:
> Dear List,
>
> I've come up against an error when running an meg analysis using scripts and function calls rather than the batch manager: the fiducials are not listed in the same order in every subject (some subs it is 'Nasion', 'LPA', 'RPA', some it is 'LPA', 'Nasion', 'RPA'). When I then try to do a grandmean on the coregistered average subject I get the error:
>
> ??? Error using ==> ft_average_sens at 178
> all fiducials should have the same labels for averaging
>
> Which I assume is because they are in a different order, since the labels themselves are identical.
>
> The D object won't let me manually change the elements of the D.fiducials.fid structure. The batch and gui are definitely doing this somehow as they change order after coregistration done this way (hence no problems with averaging); could you tell me how to do this manually?
>
> (FYI: the script I am using is a modification of the head model + coregistration parts of this one:
> http://imaging.mrc-cbu.cam.ac.uk/meg/SPM8SourceEstimation)
>
>
> Thanks,
> John
|