Hi Alex,<br><br>Thanks for your suggestion. Yes, I meant mne_do_forward_solution, sorry about that!<br><br>Explicitly passing the good trans.fif file would definitely be the easiest option for me. But are you sure --mricoord is the option for that? When I checked the manual it said this is just an option that can be turned on to do computations in the MRI coordinate system (rather than a parameter that I can pass a filename to). Just in case, I tried it out, but still got the error (in this, &quot;subj006&quot; is my bad file and &quot;subj006_auditory&quot; is the good run from the same subject):<br>
<br>mne_do_forward_solution --mindist 5 --meas $SAMPLE/MEG/subj006/subj006_ave.fif --bem subj006-5120-bem-sol.fif --megonly --mricoord subj006_auditory_raw-trans.fif<br><br>I also tried passing the good trans.fif in using the --trans option:<br>
<br>mne_do_forward_solution --mindist 5 --meas 
$SAMPLE/MEG/subj006/subj006_ave.fif --bem subj006-5120-bem-sol.fif 
--megonly --trans subj006_auditory_raw-trans.fif<br><br>which also didn&#39;t work--according to the manual --trans expects a text file containing a 4x4 matrix, and I don&#39;t think that&#39;s what&#39;s in the trans.file? I tried making my own text file by just typing in the values from the rotation matrix that I see when manually doing the MEG-MRI coordinate alignment, but that didn&#39;t work either. <br>
<br>Do you have any other ideas how to pass the good trans.fif file in? I assume I must be missing something obvious :)<br><br>Best,<br>Steve<br><br><br><div class="gmail_quote">On Fri, Mar 9, 2012 at 2:26 PM, Alexandre Gramfort <span dir="ltr">&lt;<a href="mailto:gramfort@nmr.mgh.harvard.edu">gramfort@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">hi steve,<br>
<div class="im"><br>
&gt; Thanks for the suggestions. I was indeed able to find another run of this<br>
&gt; same participant that still has the digitization data. I imported the raw<br>
&gt; data into MNE and then used that, rather than my original .fif file, for<br>
&gt; loading digitization points when I did co-registration; then I saved the<br>
&gt; co-registration, renamed it so that it matched what it would have been if I<br>
&gt; used the original file (subj006_raw-trans.fif), and then tried doing forward<br>
&gt; and inverse solutions. At mne_setup_forward_solution I got the following<br>
&gt; error:<br>
&gt;<br>
&gt; MEG -&gt; head coordinate transformation not found<br>
<br>
</div>I assume you mean mne_do_forward_solution<br>
<br>
if it&#39;s the case then you can explicitly pass the trans.fif file with<br>
the --mricoord option.<br>
<br>
let me know if it works. Otherwise you can the dig points to the raw<br>
file with Python.<br>
<br>
Alex<br>
<div class="HOEnZb"><div class="h5"><br>
&gt; I haven&#39;t gotten that error with other subjects so I assume it must have<br>
&gt; something to do with my messing around with the filenames? I tried changing<br>
&gt; the filenames at several different stages but still keep getting the error.<br>
&gt; Is there a better way to do this? (For instance, Alexandre, if I understand<br>
&gt; your suggestion right, should I be adding the digitization points from the<br>
&gt; good .fif file directly into the bad _raw.fif file and then using that one<br>
&gt; to load digitization data when I do coregistration?)<br>
&gt;<br>
&gt; Thanks again,<br>
&gt; Steve<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Mar 8, 2012 at 10:55 AM, Alexandre Gramfort<br>
&gt; &lt;<a href="mailto:gramfort@nmr.mgh.harvard.edu">gramfort@nmr.mgh.harvard.edu</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi Stephen,<br>
&gt;&gt;<br>
&gt;&gt; if you have the digitization points in one of the fif files for this<br>
&gt;&gt; particular subject than we can add them to a raw file or you can load<br>
&gt;&gt; them directly in mne_analyze. Otherwise I&#39;m afraid you&#39;ll have to  do<br>
&gt;&gt; the coregistration only using the 3 fiducials which is fairly<br>
&gt;&gt; imprecise.<br>
&gt;&gt;<br>
&gt;&gt; Alex<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Mar 8, 2012 at 4:25 PM, Stephen Politzer-Ahles<br>
&gt;&gt; &lt;<a href="mailto:politzerahless@gmail.com">politzerahless@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Hi Donald,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks for the suggestion. I was able to do this using mne_show_fiff and<br>
&gt;&gt; &gt; there are indeed differences in the tags. I&#39;ve attached text copies of<br>
&gt;&gt; &gt; the<br>
&gt;&gt; &gt; output of mne_show_fiff for the subject I&#39;m getting the error for<br>
&gt;&gt; &gt; (subj006)<br>
&gt;&gt; &gt; and a good one (subj023). The difference seems to be that the bad<br>
&gt;&gt; &gt; subject&#39;s<br>
&gt;&gt; &gt; fiff is missing these tags that are present in other subjects&#39; files:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;        104 = {    107 = isotrak<br>
&gt;&gt; &gt;           213 = dig. point [5]<br>
&gt;&gt; &gt;        105 = }    107 = isotrak<br>
&gt;&gt; &gt;        104 = {    109 = HPI result<br>
&gt;&gt; &gt;           213 = dig. point [3]<br>
&gt;&gt; &gt;           222 = transform [2]<br>
&gt;&gt; &gt;        105 = }    109 = HPI result<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Is there a way to add these tags into the .fif file for that subject? I<br>
&gt;&gt; &gt; don&#39;t know why they&#39;re missing (but I have e-mailed the person who runs<br>
&gt;&gt; &gt; our<br>
&gt;&gt; &gt; MEG machine to see if she can tell).<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks again,<br>
&gt;&gt; &gt; Steve<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Tue, Mar 6, 2012 at 2:54 PM, Krieger, Donald N. &lt;<a href="mailto:kriegerd@upmc.edu">kriegerd@upmc.edu</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Hi Steve,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; You might just look at the tags in the file using the Elekta tool:<br>
&gt;&gt; &gt;&gt; show_fiff .  There&#39;s probably an mne or mne matlab toolbox tool which<br>
&gt;&gt; &gt;&gt; enables this too.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Don<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Don Krieger, Ph.D., D.ABNM<br>
&gt;&gt; &gt;&gt; Department of Neurological Surgery<br>
&gt;&gt; &gt;&gt; University of Pittsburgh<br>
&gt;&gt; &gt;&gt; <a href="tel:%28412%29648-9654" value="+14126489654">(412)648-9654</a><br>
&gt;&gt; &gt;&gt; ________________________________<br>
&gt;&gt; &gt;&gt; From: <a href="mailto:mne_analysis-bounces@nmr.mgh.harvard.edu">mne_analysis-bounces@nmr.mgh.harvard.edu</a><br>
&gt;&gt; &gt;&gt; [<a href="mailto:mne_analysis-bounces@nmr.mgh.harvard.edu">mne_analysis-bounces@nmr.mgh.harvard.edu</a>] on behalf of Stephen<br>
&gt;&gt; &gt;&gt; Politzer-Ahles [<a href="mailto:politzerahless@gmail.com">politzerahless@gmail.com</a>]<br>
&gt;&gt; &gt;&gt; Sent: Tuesday, March 06, 2012 3:51 PM<br>
&gt;&gt; &gt;&gt; To: <a href="mailto:mne_analysis@nmr.mgh.harvard.edu">mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt;&gt; &gt;&gt; Subject: [Mne_analysis] No Isotrak data found in (raw .fif file)<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Hello MNEers,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; While doing MRI-MEG co-registration, for one particular subject when I<br>
&gt;&gt; &gt;&gt; open mne_analyze and try to Load Digitizer Data from the raw .fif file,<br>
&gt;&gt; &gt;&gt; I<br>
&gt;&gt; &gt;&gt; get this error:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; No Isotrak data found in (the name of the .fif file)<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; I haven&#39;t gotten this error for any of my other subjects, and I<br>
&gt;&gt; &gt;&gt; processed<br>
&gt;&gt; &gt;&gt; them all the same way using a batch. Just now I tried re-doing some of<br>
&gt;&gt; &gt;&gt; the<br>
&gt;&gt; &gt;&gt; processing for this subject (epoching, artifact rejection, and<br>
&gt;&gt; &gt;&gt; filtering had<br>
&gt;&gt; &gt;&gt; already been done in CTF, but I redid the import to .fif, averaging,<br>
&gt;&gt; &gt;&gt; and<br>
&gt;&gt; &gt;&gt; noise covariance matrix), and still got the same problem.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Does anyone have any idea what might be causing this error and how to<br>
&gt;&gt; &gt;&gt; fix<br>
&gt;&gt; &gt;&gt; it?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Best,<br>
&gt;&gt; &gt;&gt; Steve Politzer-Ahles<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; Stephen Politzer-Ahles<br>
&gt;&gt; &gt;&gt; University of Kansas<br>
&gt;&gt; &gt;&gt; Linguistics Department<br>
&gt;&gt; &gt;&gt; <a href="http://www.linguistics.ku.edu/" target="_blank">http://www.linguistics.ku.edu/</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; Mne_analysis mailing list<br>
&gt;&gt; &gt;&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt;&gt; &gt;&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;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; The information in this e-mail is intended only for the person to whom<br>
&gt;&gt; &gt;&gt; it<br>
&gt;&gt; &gt;&gt; is<br>
&gt;&gt; &gt;&gt; addressed. If you believe this e-mail was sent to you in error and the<br>
&gt;&gt; &gt;&gt; e-mail<br>
&gt;&gt; &gt;&gt; contains patient information, please contact the Partners Compliance<br>
&gt;&gt; &gt;&gt; HelpLine at<br>
&gt;&gt; &gt;&gt; <a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you<br>
&gt;&gt; &gt;&gt; in<br>
&gt;&gt; &gt;&gt; error<br>
&gt;&gt; &gt;&gt; but does not contain patient information, please contact the sender and<br>
&gt;&gt; &gt;&gt; properly<br>
&gt;&gt; &gt;&gt; dispose of the e-mail.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; Stephen Politzer-Ahles<br>
&gt;&gt; &gt; University of Kansas<br>
&gt;&gt; &gt; Linguistics Department<br>
&gt;&gt; &gt; <a href="http://www.linguistics.ku.edu/" target="_blank">http://www.linguistics.ku.edu/</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Mne_analysis mailing list<br>
&gt;&gt; &gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt;&gt; &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;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; The information in this e-mail is intended only for the person to whom<br>
&gt;&gt; &gt; it is<br>
&gt;&gt; &gt; addressed. If you believe this e-mail was sent to you in error and the<br>
&gt;&gt; &gt; e-mail<br>
&gt;&gt; &gt; contains patient information, please contact the Partners Compliance<br>
&gt;&gt; &gt; HelpLine at<br>
&gt;&gt; &gt; <a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you<br>
&gt;&gt; &gt; in<br>
&gt;&gt; &gt; error<br>
&gt;&gt; &gt; but does not contain patient information, please contact the sender and<br>
&gt;&gt; &gt; properly<br>
&gt;&gt; &gt; dispose of the e-mail.<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Stephen Politzer-Ahles<br>
&gt; University of Kansas<br>
&gt; Linguistics Department<br>
&gt; <a href="http://www.linguistics.ku.edu/" target="_blank">http://www.linguistics.ku.edu/</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Stephen Politzer-Ahles<br>University of Kansas<br>Linguistics Department<br><a href="http://www.linguistics.ku.edu/">http://www.linguistics.ku.edu/</a><br>