<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks a lot for your answer.<div>The original format of my eeg data was .txt . I used the Rawarray and create_info.py functions in order to transform them into fif files. Also, I used the read_montage, and apply_montage python functions to insert the 32 electrodes' spherical coordination to my fif files. As a result I do not have a MEG-&gt;head transformation. Is there any way to overcome this and compute the forward solution ?</div><div>Best regards,</div><div>ata</div><div><br><br><div><hr id="stopSpelling">From: msh@nmr.mgh.harvard.edu<br>Date: Sat, 18 Apr 2015 16:34:56 -0400<br>To: mne_analysis@nmr.mgh.harvard.edu<br>Subject: Re: [Mne_analysis] forward solution only eeg data [MEG -&gt; head        coordinate transformation not found]<br><br><div><br></div>How did you create the EEG data file? It should contain a unit MEG -&gt; head transformation for the forward solution computation to work. - Matti<br><div><br><div><blockquote><div>On Apr 18, 2015, at 4:27 PM, Eric Larson &lt;<a href="mailto:larson.eric.d@gmail.com">larson.eric.d@gmail.com</a>&gt; wrote:</div><br class="ecxApple-interchange-newline"><div><div dir="ltr">You might need to use `mne_forward_solution` instead of the convenience script `mne_do_forward_solution`, and specify --eeg (and not --meg) on the command line:<div><br></div><div><a href="http://martinos.org/mne/dev/manual/forward.html#purpose" target="_blank">http://martinos.org/mne/dev/manual/forward.html#purpose</a><br></div><div><br></div><div>Cheers,</div><div>Eric</div><div><br></div></div><div class="ecxgmail_extra"><br><div class="ecxgmail_quote">On Sat, Apr 18, 2015 at 1:10 PM, Atalanti Mastakouri <span dir="ltr">&lt;<a href="mailto:atalantim@hotmail.com" target="_blank">atalantim@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;"><div class="ecxHOEnZb"><div class="h5">


<div><div dir="ltr">Dear mne users,<div><br></div><div>I am facing a problem trying to compute the forward solution with mne_do_forward_solution . I have only eeg data and the locations of my 32 electrodes (no mri).</div><div>I have computed my trans file both in .txt and trans.fif format.&nbsp;</div><div>However using both ways I get error messages&nbsp;</div><div><br></div><div><div>When I use this command<br><br></div><div>mne_do_forward_solution --mindist 5 --spacing oct-6 --meas subj1data_raw.fif --src sample-oct-6-src.fif &nbsp;--trans sub-trans.txt --bem sub1-5120-5120-5120-bem-sol --fwd sub1-eeg-oct-6-fwd.fif</div></div><div><br></div><div>I get this error:</div><div><br></div><div><div><div>mne_forward_solution version 2.10 compiled at Oct 26 2014 04:18:53</div><div><br></div><div>Source space &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : /home/atakoulini/Documents/mne-python/sub1/bem/sample-oct-6-src.fif</div><div>MRI -&gt; head transform source : sub-trans.txt</div><div>Measurement data &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : subj1data_raw.fif</div><div>BEM model &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: /home/atakoulini/Documents/mne-python/sub1/bem/sub1-5120-5120-5120-bem.fif</div><div>Accurate field computations</div><div>Do computations in head coordinates.</div><div>Free source orientations</div><div>Destination for the solution : sub1-eeg-oct-6-fwd.fif</div><div><br></div><div>Reading /home/atakoulini/Documents/mne-python/sub1/bem/sample-oct-6-src.fif...</div><div>Read 2 source spaces a total of 8196 active source locations</div><div><br></div><div>Coordinate transformation: MRI (surface RAS) -&gt; head</div><div><span style="white-space:pre-wrap;">        </span> 0.999310 &nbsp;0.009985 -0.035787<span style="white-space:pre-wrap;">        </span> &nbsp;-0.00 mm</div><div><span style="white-space:pre-wrap;">        </span> 0.012759 &nbsp;0.812405 &nbsp;0.582954<span style="white-space:pre-wrap;">        </span> &nbsp; 0.01 mm</div><div><span style="white-space:pre-wrap;">        </span> 0.034894 -0.583009 &nbsp;0.811716<span style="white-space:pre-wrap;">        </span> &nbsp; 0.03 mm</div><div><span style="white-space:pre-wrap;">        </span> 0.000000 &nbsp;0.000000 &nbsp;0.000000 &nbsp; &nbsp; 1.00</div><div><br></div><div>MEG -&gt; head coordinate transformation not found.</div><div>Forward computation failed (see above)</div></div></div><div><br></div><div><div><div>When I use this command<br><br></div><div>mne_do_forward_solution --mindist 5 --spacing oct-6 --meas subj1data_raw.fif --src sample-oct-6-src.fif &nbsp;--trans sub1_raw-trans.fif --bem sub1-5120-5120-5120-bem-sol --fwd sub1-eeg-oct-6-fwd.fif</div></div><div><br></div><div>I get this error:</div></div><div><br></div><div><div>mne_forward_solution version 2.10 compiled at Oct 26 2014 04:18:53</div><div><br></div><div>Source space &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : /home/atakoulini/Documents/mne-python/sub1/bem/sample-oct-6-src.fif</div><div>MRI -&gt; head transform source : sub1_raw-trans.fif</div><div>Measurement data &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : subj1data_raw.fif</div><div>BEM model &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: /home/atakoulini/Documents/mne-python/sub1/bem/sub1-5120-5120-5120-bem.fif</div><div>Accurate field computations</div><div>Do computations in head coordinates.</div><div>Free source orientations</div><div>Destination for the solution : sub1-eeg-oct-6-fwd.fif</div><div><br></div><div>Reading /home/atakoulini/Documents/mne-python/sub1/bem/sample-oct-6-src.fif...</div><div>Read 2 source spaces a total of 8196 active source locations</div><div><br></div><div>Cannot read the coordinate transformation</div><div>Forward computation failed (see above)</div></div><div><br></div><div>Finally, when I do not give the trans file at all as a parameter,&nbsp;</div><div><br></div><div>mne_do_forward_solution --mindist 5 --spacing oct-6 --meas subj1data_raw.fif --src sample-oct-6-src.fif --bem sub1-5120-5120-5120-bem-sol --fwd sub1-eeg-oct-6-fwd.fif</div><div><br></div><div>I get this error:</div><div><br></div><div>mne_forward_solution version 2.10 compiled at Oct 26 2014 04:18:53</div><div><br></div><div>Source space &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : /home/atakoulini/Documents/mne-python/sub1/bem/sample-oct-6-src.fif</div><div>MRI -&gt; head transform source : ./sub1_raw-trans.fif</div><div>Measurement data &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : subj1data_raw.fif</div><div>BEM model &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: /home/atakoulini/Documents/mne-python/sub1/bem/sub1-5120-5120-5120-bem.fif</div><div>Accurate field computations</div><div>Do computations in head coordinates.</div><div>Free source orientations</div><div>Destination for the solution : sub1-eeg-oct-6-fwd.fif</div><div><br></div><div>Reading /home/atakoulini/Documents/mne-python/sub1/bem/sample-oct-6-src.fif...</div><div>Read 2 source spaces a total of 8196 active source locations</div><div><br></div><div>Coordinate transformation: MRI (surface RAS) -&gt; head</div><div><span style="white-space:pre-wrap;">        </span> 0.999310 &nbsp;0.009985 -0.035787<span style="white-space:pre-wrap;">        </span> &nbsp;-3.17 mm</div><div><span style="white-space:pre-wrap;">        </span> 0.012759 &nbsp;0.812405 &nbsp;0.582954<span style="white-space:pre-wrap;">        </span> &nbsp; 6.86 mm</div><div><span style="white-space:pre-wrap;">        </span> 0.034894 -0.583009 &nbsp;0.811716<span style="white-space:pre-wrap;">        </span> &nbsp;28.88 mm</div><div><span style="white-space:pre-wrap;">        </span> 0.000000 &nbsp;0.000000 &nbsp;0.000000 &nbsp; &nbsp; 1.00</div><div><br></div><div>MEG -&gt; head coordinate transformation not found.</div><div>Forward computation failed (see above)</div><div><br></div><div><br></div><div><br></div><div>I do not have MEG data, so I cannot understand where the error comes from.</div><div><br></div><div>Could you please help me computing the forward solution?</div><div><br></div><div>Thanks a lot in advance,</div><div>ata</div><div><br></div><div><br></div><div><br></div><div><br></div>                                               </div></div>
</div></div><br>_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br></blockquote></div><br></div>
_______________________________________________<br>Mne_analysis mailing list<br><a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</div></blockquote></div><br></div><br>_______________________________________________
Mne_analysis mailing list
Mne_analysis@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.</div></div>                                               </div></body>
</html>