<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>​Hi Eric,</p>
<p><br>
</p>
<p>&nbsp;&nbsp;&nbsp; Thanks for your response. Do you get the &quot;double occupation&quot; error as well?</p>
<p><br>
</p>
<p>&nbsp;&nbsp; &nbsp;It is possible that this is all an&nbsp;error on my part. Has anyone out there successfully used --morph with mne_setup_source_space in the past several years?</p>
<p><br>
</p>
<p>&nbsp; &nbsp; I get the same thing at the 2.7.0 level of the code as well. &nbsp;I&nbsp;would be open to using a downlevel release, such as that where this functionality was originally introduced. At the moment 2.7.0 appears to be the oldest code still available.</p>
<p><br>
</p>
<p>&nbsp;&nbsp;&nbsp; Thanks again,</p>
<p><br>
</p>
<p>-Per</p>
<p><br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="width: 98%; display: inline-block;">
<div id="divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size: 11pt;"><b>From:</b> mne_analysis-bounces@nmr.mgh.harvard.edu &lt;mne_analysis-bounces@nmr.mgh.harvard.edu&gt; on behalf of Eric Larson &lt;larson.eric.d@gmail.com&gt;<br>
<b>Sent:</b> Friday, January 30, 2015 11:25 AM<br>
<b>To:</b> Discussion and support forum for the users of MNE Software<br>
<b>Subject:</b> Re: [Mne_analysis] mne_setup_source_space with --morph: double occupation error</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">I don't have much experience with the --morph option. But I can also confirm that I could not get the --morph option to work just now, despite trying a number of different source and destination subjects, and spacing options, even on the latest
 nightly.
<div><br>
</div>
<div>When porting the setup_source_space code to python, we omitted the --morph option for two reasons: 1) the additional coding complexity implementing it required, and 2) uncertainty about how often it was actually used. If you're feeling brave, we can help
 you implement it :) Either way, feel free to open an issue on the mne-python Github page requesting the feature. You might be able to nerd snipe developer with it, especially if other people show interest.</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Eric</div>
<div><br>
</div>
<div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Jan 30, 2015 at 9:54 AM, Per Arnold Lysne <span dir="ltr">
&lt;<a href="mailto:lysne@unm.edu" target="_blank">lysne@unm.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;">
Hi Martin and Jon,<br>
<br>
&nbsp; &nbsp; &nbsp;Thanks for your replies:<br>
<br>
&nbsp; &nbsp; Martin: Unfortunately I am having the same problem with the nightly build<br>
<br>
&nbsp; &nbsp; Jon: I think I have asked you about something similar in the past and I was already working from a copy of this document. I have tried morphing to another subject in the experiment, as opposed to fsaverage, but encountered the same problem. At your suggestion
 I used Freesurfer &quot;make_average_subject&quot; two create an average brain from other subjects in the experiment (ok, two subjects, including the one being morphed), but - same problem.<br>
<br>
&nbsp; &nbsp; I had thought I might try the Python option mne.setup_source_space, but it does not appear to support a morphing option.<br>
<br>
&nbsp; &nbsp; Are there any other ideas out there? Thanks for everyone's help,<br>
<br>
-Per<br>
<br>
________________________________________<br>
From: <a href="mailto:mne_analysis-bounces@nmr.mgh.harvard.edu">mne_analysis-bounces@nmr.mgh.harvard.edu</a> &lt;<a href="mailto:mne_analysis-bounces@nmr.mgh.harvard.edu">mne_analysis-bounces@nmr.mgh.harvard.edu</a>&gt; on behalf of Martin Luessi &lt;<a href="mailto:mluessi@nmr.mgh.harvard.edu">mluessi@nmr.mgh.harvard.edu</a>&gt;<br>
Sent: Thursday, January 29, 2015 11:24 AM<br>
To: <a href="mailto:mne_analysis@nmr.mgh.harvard.edu">mne_analysis@nmr.mgh.harvard.edu</a><br>
Subject: Re: [Mne_analysis] mne_setup_source_space with --morph: double occupation error<br>
<div class="HOEnZb">
<div class="h5"><br>
Hi Per,<br>
<br>
You could also try using the nightly version of MNE. If I remember<br>
correctly, this error happens due to numerical precision and we changed<br>
so things to use double precision to prevent it.<br>
<br>
Best,<br>
<br>
Martin<br>
<br>
<br>
On 01/29/15 13:19, Jon Houck wrote:<br>
&gt; Hi Per,<br>
&gt;<br>
&gt; If the inversion would happen in the common space, rather than morphing<br>
&gt; the source space you might try the pipeline Matti posted awhile ago for<br>
&gt; using fsaverage as a surrogate (attached).&nbsp; You could use some other<br>
&gt; brain as the template (say, an average brain created from your sample).<br>
&gt; This is obviously a bit of a kludge, but would help you to avoid this<br>
&gt; specific error (while also causing other less obvious problems).<br>
&gt;<br>
&gt; Jon<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Jan 28, 2015 at 3:56 PM, Per Arnold Lysne &lt;<a href="mailto:lysne@unm.edu">lysne@unm.edu</a><br>
&gt; &lt;mailto:<a href="mailto:lysne@unm.edu">lysne@unm.edu</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp;​Hello All,<br>
&gt;<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;My apologies for posting about an issue which has already<br>
&gt;&nbsp; &nbsp; &nbsp;received considerable coverage. I am trying to use<br>
&gt;&nbsp; &nbsp; &nbsp;mne_setup_source_space with the --morph option. I am doing this<br>
&gt;&nbsp; &nbsp; &nbsp;because I am working on an analysis which requires all subjects to<br>
&gt;&nbsp; &nbsp; &nbsp;be in a common vertex space early on (so mne_make_movie is too late).<br>
&gt;<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;For example:<br>
&gt;<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp;mne_setup_source_space --subject &lt;subject_id&gt; --morph fsaverage<br>
&gt;<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;I am receiving the &quot;double occupation&quot; error which is mentioned<br>
&gt;&nbsp; &nbsp; &nbsp;numerous times in this forum:<br>
&gt;<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp;Source space vertex moved from 158588 to 112571 because of double<br>
&gt;&nbsp; &nbsp; &nbsp;occupation.<br>
&gt;&nbsp; &nbsp; &nbsp;Source space vertex moved from 39211 to 158591 because of double<br>
&gt;&nbsp; &nbsp; &nbsp;occupation.<br>
&gt;&nbsp; &nbsp; &nbsp;Source space vertex moved from 158587 to 126593 because of double<br>
&gt;&nbsp; &nbsp; &nbsp;occupation.<br>
&gt;&nbsp; &nbsp; &nbsp;Source space vertex moved from 126593 to 126594 because of double<br>
&gt;&nbsp; &nbsp; &nbsp;occupation.<br>
&gt;&nbsp; &nbsp; &nbsp;Source space vertex moved from 126593 to 126592 because of double<br>
&gt;&nbsp; &nbsp; &nbsp;occupation.<br>
&gt;&nbsp; &nbsp; &nbsp;Source space vertex moved from 126594 to 126595 because of double<br>
&gt;&nbsp; &nbsp; &nbsp;occupation.<br>
&gt;&nbsp; &nbsp; &nbsp;Source space vertex moved from 158590 to 87784 because of double<br>
&gt;&nbsp; &nbsp; &nbsp;occupation.<br>
&gt;&nbsp; &nbsp; &nbsp;Source space vertex moved from 87782 to 112573 because of double<br>
&gt;&nbsp; &nbsp; &nbsp;occupation.<br>
&gt;&nbsp; &nbsp; &nbsp;vertex 27923 would be used multiple times.<br>
&gt;&nbsp; &nbsp; &nbsp;Source space creation failed<br>
&gt;&nbsp; &nbsp; &nbsp;Temporary files removed.<br>
&gt;<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;My understanding from the previous posts is that this error can<br>
&gt;&nbsp; &nbsp; &nbsp;be avoided by either using --spacing with any distance given, or<br>
&gt;&nbsp; &nbsp; &nbsp;with --ico and a relatively small number of vertices (according to<br>
&gt;&nbsp; &nbsp; &nbsp;table 3.1 of the 2.7.3 manual, this means smaller absolute integer<br>
&gt;&nbsp; &nbsp; &nbsp;values, such as --ico 3 or --ico -4). Unfortunately I am still<br>
&gt;&nbsp; &nbsp; &nbsp;getting this error regardless of what I give to --spacing (1-21 have<br>
&gt;&nbsp; &nbsp; &nbsp;been tried) or with both larger and smaller values for --ico (1-7<br>
&gt;&nbsp; &nbsp; &nbsp;both positive and negative).<br>
&gt;<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;This problem does not appear to be limited to any particular<br>
&gt;&nbsp; &nbsp; &nbsp;subject in my analysis, nor to the fsaverage brain. I am working<br>
&gt;&nbsp; &nbsp; &nbsp;under Ubuntu 13.10, and my version of mne_make_source_space is as<br>
&gt;&nbsp; &nbsp; &nbsp;follows:<br>
&gt;<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp;mne_make_source_space version 2.5 compiled at Jan&nbsp; 6 2011 02:25:18<br>
&gt;<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Am I understanding the previous posts correctly? Is there any<br>
&gt;&nbsp; &nbsp; &nbsp;new progress on this issue? Are there other ways to avoid it? (I see<br>
&gt;&nbsp; &nbsp; &nbsp;there is a setup_source_space in the Python code - should I try that?)<br>
&gt;<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Thanks again,<br>
&gt;<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp;Per Lysne<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp;University of New Mexico<br>
&gt;<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp;_______________________________________________<br>
&gt;&nbsp; &nbsp; &nbsp;Mne_analysis mailing list<br>
&gt;&nbsp; &nbsp; &nbsp;<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt;&nbsp; &nbsp; &nbsp;&lt;mailto:<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a>&gt;<br>
&gt;&nbsp; &nbsp; &nbsp;<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;&nbsp; &nbsp; &nbsp;The information in this e-mail is intended only for the person to<br>
&gt;&nbsp; &nbsp; &nbsp;whom it is<br>
&gt;&nbsp; &nbsp; &nbsp;addressed. If you believe this e-mail was sent to you in error and<br>
&gt;&nbsp; &nbsp; &nbsp;the e-mail<br>
&gt;&nbsp; &nbsp; &nbsp;contains patient information, please contact the Partners Compliance<br>
&gt;&nbsp; &nbsp; &nbsp;HelpLine at<br>
&gt;&nbsp; &nbsp; &nbsp;<a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to<br>
&gt;&nbsp; &nbsp; &nbsp;you in error<br>
&gt;&nbsp; &nbsp; &nbsp;but does not contain patient information, please contact the sender<br>
&gt;&nbsp; &nbsp; &nbsp;and properly<br>
&gt;&nbsp; &nbsp; &nbsp;dispose of the e-mail.<br>
&gt;<br>
&gt;<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">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>
--<br>
Martin Luessi, Ph.D.<br>
<br>
Research Fellow<br>
<br>
Department of Radiology<br>
Athinoula A. Martinos Center for Biomedical Imaging<br>
Massachusetts General Hospital<br>
Harvard Medical School<br>
149 13th Street<br>
Charlestown, MA 02129<br>
<br>
Fax: <a href="tel:%2B1%20617%20726-7422" value="&#43;16177267422">&#43;1 617 726-7422</a><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>
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></div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>