<div dir="ltr">Sorry, the last line should be <span style="font-family:arial,sans-serif;font-size:13px">read and write &lt;*-<b>trans</b>.fif&gt; file in matlab?</span></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Mar 28, 2014 at 2:14 PM, peng <span dir="ltr">&lt;<a href="mailto:prion.w@gmail.com" target="_blank">prion.w@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Thank you Martin for the help.<div>1. I re-run the command &quot;mne_setup_forward_model&quot; and it seemed working this time (maybe I did not set the environment correctly). Sorry for the confusion.</div>
<div>
2. I tried with MNE_analyze GUI and it was not easy for me. But I saved results from one subject successfully and it could be load by MNE_analyze. However I wanted to read it in matlab to check the real contents (which I assume is a structure with the transformation matrix). I failed with &quot;x = fiff_read_mri(fname, 0). It complained &quot;Could not find MRI data&quot;... Would please let me know the function name to read and write *-src.fif file in matlab?</div>

<div><br></div>
</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 26, 2014 at 9:28 PM, Martin Luessi <span dir="ltr">&lt;<a href="mailto:mluessi@nmr.mgh.harvard.edu" target="_blank">mluessi@nmr.mgh.harvard.edu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 03/26/14 16:00, peng wrote:<br>
&gt; Thank you for the answers.<br>
&gt; 1. Surprisingly I did not find any files were generated/saved after<br>
&gt; running mne_setup_forward_model.<br>
<br>
</div>I assume there was an error, can you post the program output?<br>
<div><br>
&gt; 2. I don&#39;t have a -trans.fif file. I tried to do it in GUI of<br>
&gt; MNE_analyze, it was quite complicated. If I have a co-registered mri<br>
&gt; file (generated by CTF software with .mri extension), can it be<br>
&gt; converted to fif format? If not, I can read the 4x4 head2mri matrix via<br>
&gt; matlab, can this information be written to fif format with certain tools<br>
&gt; in MNE?<br>
<br>
</div>There is also a coreg GUI in MNE-Python, have a look here<br>
<br>
<a href="http://www.slideshare.net/mne-python/mnepython-coregistration" target="_blank">http://www.slideshare.net/mne-python/mnepython-coregistration</a><br>
<br>
You could write a .fif file with the transform in Matlab, but it seems<br>
to me that this wouldn&#39;t be easier than using the coregistration tools<br>
in mne_analyze or MNE-Python.<br>
<br>
HTH,<br>
<br>
Martin<br>
<div><br>
<br>
&gt; Thanks again!<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Mar 25, 2014 at 11:39 PM, Alexandre Gramfort<br>
&gt; &lt;<a href="mailto:alexandre.gramfort@telecom-paristech.fr" target="_blank">alexandre.gramfort@telecom-paristech.fr</a><br>
</div><div>&gt; &lt;mailto:<a href="mailto:alexandre.gramfort@telecom-paristech.fr" target="_blank">alexandre.gramfort@telecom-paristech.fr</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     hi,<br>
&gt;<br>
&gt;     &gt;  Some additional questions.<br>
&gt;     &gt; 1 After I ran mne_setup_forward_model, I have no feedback from the<br>
&gt;     command<br>
&gt;     &gt; line, is it normal?<br>
&gt;<br>
&gt;     it should print that it saved a file to disk<br>
&gt;<br>
&gt;     &gt; 2 I am using CTF data, thus I converted the .ds folder from CTF to fif<br>
&gt;     &gt; format with mne_ctf2fiff command, with option --infoonly. Here I<br>
&gt;     only want<br>
&gt;     &gt; to get the Leadfield thus I suppose data is not necessary. However<br>
&gt;     when I<br>
&gt;     &gt; try mne_do_forward_solution, it asked for mri description file,<br>
&gt;     which I<br>
&gt;     &gt; haven&#39;t. I have only a series of dicom files or the .mri file<br>
&gt;     generated by<br>
&gt;     &gt; ctf software from them. Can I still move on?<br>
&gt;<br>
&gt;     you need to do the coregistration and get a -trans.fif file.<br>
&gt;<br>
&gt;     A<br>
&gt;     _______________________________________________<br>
&gt;     Mne_analysis mailing list<br>
&gt;     <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
</div>&gt;     &lt;mailto:<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a>&gt;<br>
<div><div>&gt;     <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>
&gt;<br>
&gt;<br>
&gt;     The information in this e-mail is intended only for the person to<br>
&gt;     whom it is<br>
&gt;     addressed. If you believe this e-mail was sent to you in error and<br>
&gt;     the e-mail<br>
&gt;     contains patient information, please contact the Partners Compliance<br>
&gt;     HelpLine at<br>
&gt;     <a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to<br>
&gt;     you in error<br>
&gt;     but does not contain patient information, please contact the sender<br>
&gt;     and properly<br>
&gt;     dispose of the e-mail.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Mne_analysis mailing list<br>
&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt; <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>
&gt;<br>
<br>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">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>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>