<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Computing MNE is apparently not something many people want to do with fieldtrip so it seems the implementation is still far from streamlined.</div><div><br></div><div>For the time being, you could try a hack, which transforms your output into one which fieldtrip may swallow.</div><div>I would suggest something like this:</div><div><br></div><div>nvox = size(source.pos,1);</div><div>mom = cell(1,nvox);</div><div>for k = 1:length(source.inside)</div><div>  indx = source.inside(k);</div><div>  mom{indx} = source.avg.pow(xx,:); %I don't know whether avg.pow contains only the inside voxels, so xx could be either indx, or k.</div><div>end</div><div>source.avg.mom = mom;</div><div>source.avg = rmfield(source.avg, 'pow');</div><div><br></div><div>I wonder whether it works after this...</div><div><br></div><div>Best,</div><div><br></div><div>JM</div><div><br></div><div>PS: I would actually opt for improving fieldtrip's implementation and handling with MNE-estimates. Perhaps we could do this together? We can do this offline (not through the discussion list). Would it be possible to post some fieldtrip data-structure, along with the necessary accessories (grids, vols etc), as well as your script?</div><div><br></div><div><br></div><div><br></div><div><div><div>On Jan 11, 2010, at 3:55 PM, Christine Gruetzner wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Dear Fieldtrippers,<br><br>I still have this problem with performing source analysis (minimum norm estimate) on timelockdata. As already mentioned, the main problem occurs in sourcegrandaverage, probably because the output data from source analysis (using cfg.method = 'mne' on timelock data) contain an avg.pow field with the dimensions 4560x211 for each subject, where 211 is the number of time samples.<br> <br>I have tried several things to avoid the problem with sourcegrandaverage, but there are always new problems; for example, when I put the source data directly into sourcestatistics, without using sourcegrandaverage, there is a problem with checkdata, saying that the function requires source or volume data as input. Computing the timelockdata only for a single latency results in a problem in source analysis ('error in minimumnormestimate at 143, mom = w*dat).<br> <br>Does anyone have a script for computing MNE on timelockdata that works?! I would be very glad if someone could help me out with this problem!<br><br>Thanks and Best<br>Christine<br><br clear="all"><br>-- <br>Christine Grützner, geb.Tillmann<br> Max-Planck-Institut für Hirnforschung<br>Abt. Neurophysiologie<br>Deutschordenstr. 46<br>60528 Frankfurt am Main<br>Germany<br><br>Phone: +49 (0)69/6301-83225<br>E-Mail: <a href="mailto:tillmann@mpih-frankfurt.mpg.de">tillmann@mpih-frankfurt.mpg.de</a><br> <a href="http://www.mpih-frankfurt.mpg.de/global/Np/Staff/tillmann.htm">http://www.mpih-frankfurt.mpg.de/global/Np/Staff/tillmann.htm</a><br><br><br><p>----------------------------------</p><p>The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p><p>  <a href="http://listserv.surfnet.nl/archives/fieldtrip.html">http://listserv.surfnet.nl/archives/fieldtrip.html</a></p><p>  <a href="http://www.ru.nl/fcdonders/fieldtrip/">http://www.ru.nl/fcdonders/fieldtrip/</a></p> </blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Dr. J.M. (Jan-Mathijs) Schoffelen </div><div>Donders Institute for Brain, Cognition and Behaviour, <br>Centre for Cognitive Neuroimaging,<br>Radboud University Nijmegen, The Netherlands</div><div><a href="mailto:J.Schoffelen@donders.ru.nl">J.Schoffelen@donders.ru.nl</a></div><div>Telephone: 0031-24-3668063</div></div></span> </div><br></div></body></html><p>----------------------------------</p>
<p>The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p>
<p>  http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p>  http://www.ru.nl/fcdonders/fieldtrip/</p>