<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Mushfa<div><br></div><div>In principle it can be made to work, but you'll have to do a little bit of  work outside fieldtrip. You would start with</div><div><div>1) ft_prepare_headmodel and ft_prepare_leadfield for the MEG part</div></div><div><div>2) ft_prepare_headmodel and ft_prepare_leadfield for the EEG part</div></div><div>Subsequently you would (manually) concatenate the leadfields of the MEG and EEG. Here you have to make sure that the channel order is consistent with that in your combined data.</div><div>The resulting structure with combined leadfields can be passed into ft_sourceanalysis as cfg.grid.</div><div><br></div><div>However, I foresee a problem with the scaling. At this moment FieldTrip is not (yet) very precise in maintaining the correct units throughout. Consequently you might get different units for the EEG and MEG contribution to each dipole, causing weird cancelation effects. You'll just have to check carefully that the leadfield units and the data units consistently scaled between megmag, megplanar and eeg. </div><div><br></div><div>This brings me to another known problem for the combined vectorview magnetometer and planar gradiometer channels: at this moment the forward computation computes both in T (or fT), whereas the data is represented as T for the magnetometers and T/m for the gradiometers. So the gradiometer leadfields are off by a factor "1/baseline", which is approximately 1/70 if I recall correctly. Many neuromag users use only the planar channels, and therefore don't notice. We are working on fixing the neuromag channel/gradiometer units. That is not as simple as it appears, because conversions of the geometrical dimensions from m to cm or mm also affect the gradiometer baseline. So converting the data from m to mm should result in the planar channel data getting 1000 times smaller, whereas the magnetometer channels shoudl stay the same. See <a href="http://bugzilla.fcdonders.nl/show_bug.cgi?id=963">http://bugzilla.fcdonders.nl/show_bug.cgi?id=963</a> and <a href="http://bugzilla.fcdonders.nl/show_bug.cgi?id=963">http://bugzilla.fcdonders.nl/show_bug.cgi?id=963</a> if you want to follow this.</div><div><br></div><div>best regards</div><div>Robert</div><div><br></div><div><br></div><div><div><br><div><div>On 28 Jan 2013, at 20:20, Mushfa Yousuf wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><pre style="white-space:normal;background-color:rgb(255,255,255);line-height:21px;color:rgb(68,68,68);font-size:15px">Hello Fieldtrippers,<br><br>I am currently doing source analysis using beamformer method in fieldtrip.<br>
The data i work on is a simultaneous measurement of MEG (306) with EEG<br>(128) on PD patients.<br><br>I was successful in calculating the sources for both the modalities alone.<br><br>I tried according the tutorial "Combined EEG and MEG source reconstruction" and was successful till the estimation<br>
of the lead field. But, then when i want to use the created vol for the<br>source analysis i have two structures one for EEG and the second one for<br>MEG. Now, i can only define only one to estimate the sources. How to use<br>
this for both the modalities? Any help would be appreciated.<br><br>With regards<font color="#888888"><br>Mushfa</font></pre>
_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</blockquote></div><br></div></div></body></html>