Dear Vladimir,
Thanks for your response. You are right, 2D locations are preserved. At
least if I type: coor2D(D), I get the same locations before and after
cropping. Interestingly, if I want to look at the topology using the GUI,
the message still appears. I tried to look in the code and I think it has
something to do with in spm_eeg_review_callbacks (line 209: pos(:,1) =
[D.channels(I).X_plot2D]';). Even though I do not really understand what
happens there, I think it is strange that in the uncropped case the variable
pos is about the size of the number of channels, while in the cropped case
it is 277 times as large.
This happens for any dataset that I tried. If you still cannot replicate the
error please let me know. In that case I will try to send you one example
dataset.
Best,
Anette
-----Original Message-----
From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]] On
Behalf Of Vladimir Litvak
Sent: Friday, November 11, 2011 12:35 PM
To: [log in to unmask]
Subject: Re: [SPM] MEEG: grand mean and crop
Dear Anette,
The crop tool should preserve the 2D locations. It is in the code and I've
just checked on my example and there was no problem. Perhaps send me your
dataset before cropping and which channel you removed and I'll look at it.
You can also try to use 'Prepare' to re-create the 2D locations and see if
it helps (don't forget 'apply' and 'save').
Best,
Vladimir
On Fri, Nov 11, 2011 at 9:13 AM, Anette Giani
<[log in to unmask]> wrote:
> Dear all,
>
> For the analysis of my MEG data, I would like to calculate the grand
> mean over all subjects. However, for technical reasons, data of one
> subject contains 1 channel less than the data of the others. Is there
> a way to choose the channels for which the grand mean should be
> calculated? I tried to crop the data of the remaining subjects.
> However, after cropping it seems like 2d channel positions are lost.
> Hence, if I want to look at the topology of the cropped data a message
> appears: "Get 2d positions for these channels!".
>
> Looking forward to your suggestions!
> Anette
>
|