<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>
<div dir="auto" style="direction:ltr; margin:0; padding:0; font-family:sans-serif; font-size:11pt; color:black">
Hi Alex,<br>
<br>
</div>
<div dir="auto" style="direction:ltr; margin:0; padding:0; font-family:sans-serif; font-size:11pt; color:black">
I am trying to compare the forward models and signal changes among control vs patients, I only have the T1 scans. I have to make assumed locations for all the channels. I have done recon all, I need something like raw.info and trans file to get it done. If
 you have any suggestions, I would appreciate it a lot.<br>
<br>
</div>
<div dir="auto" style="direction:ltr; margin:0; padding:0; font-family:sans-serif; font-size:11pt; color:black">
Best,<br>
</div>
<div dir="auto" style="direction:ltr; margin:0; padding:0; font-family:sans-serif; font-size:11pt; color:black">
Feng<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Alexandre Gramfort &lt;alexandre.gramfort@inria.fr&gt;<br>
<b>Sent:</b> Friday, December 7, 2018 6:59:10 AM<br>
<b>To:</b> Liu, Feng<br>
<b>Cc:</b> Discussion and support forum for the users of MNE Software<br>
<b>Subject:</b> Re: [Mne_analysis] Convert brainstorm channel .xyz file or sfp file into mne raw fif</font>
<div>&nbsp;</div>
</div>
</div>
<font size="2"><span style="font-size:11pt;">
<div class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
<br>
what are you trying to do?<br>
<br>
it seems that you use the sample dataset info for your EEG data which<br>
should not be necessary.<br>
<br>
Alex<br>
On Fri, Dec 7, 2018 at 3:13 AM Liu, Feng &lt;FLIU0@mgh.harvard.edu&gt; wrote:<br>
&gt;<br>
&gt; Sorry that I think it is more helpful to post the error message.<br>
&gt;<br>
&gt;<br>
&gt; montage = mne.channels.read_montage( '/home/scratch/brainstorm_db/Protocol01/data/106a_recon/BioSemi_128_A01.sfp')<br>
&gt; raw.set_montage(montage=montage)<br>
&gt;<br>
&gt; ValueError: None of the sensors defined in the montage were found in the info structure. Check the channel names.<br>
&gt;<br>
&gt;<br>
&gt; This is the structure of raw.info:<br>
&gt;<br>
&gt; &lt;Info | 19 non-empty fields<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; bads : list | MEG 2443, EEG 053<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; ch_names : list | MEG 0113, MEG 0112, MEG 0111, MEG 0122, MEG 0123, ...<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; chs : list | 376 items (GRAD: 204, MAG: 102, STIM: 9, EEG: 60, EOG: 1)<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; comps : list | 0 items<br>
&gt;<br>
&gt;<br>
&gt; I think when I use setup_montage, it will check the original channel names, it will assign the value only if the name under montage match the name under raw.info['ch_names']. So do I need to delete all the raw.info['ch_names'] and re-assign channels names?<br>
&gt;<br>
&gt;<br>
&gt; Best,<br>
&gt;<br>
&gt; Feng Liu<br>
&gt;<br>
&gt; ________________________________<br>
&gt; From: mne_analysis-bounces@nmr.mgh.harvard.edu &lt;mne_analysis-bounces@nmr.mgh.harvard.edu&gt; on behalf of Liu, Feng &lt;feng.liu@mavs.uta.edu&gt;<br>
&gt; Sent: Thursday, December 6, 2018 8:55:39 PM<br>
&gt; To: Alexandre Gramfort; Discussion and support forum for the users of MNE Software<br>
&gt; Subject: Re: [Mne_analysis] Convert brainstorm channel .xyz file or sfp file into mne raw fif<br>
&gt;<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; External Email - Use Caution<br>
&gt;<br>
&gt; Hi Alex,<br>
&gt;<br>
&gt; Thank you for your reply.&nbsp; I can read sfp files using raw.set_montage, do you know should I manually replace the raw.info with the montage information, in the end, I want to build the forward model using mne.make_forward_solution(), as you know this function
 requires raw.info as a mandatory input. I thought there should be a link from montage to raw.info.<br>
&gt;<br>
&gt; Best regards,<br>
&gt; Feng<br>
&gt; ________________________________<br>
&gt; From: mne_analysis-bounces@nmr.mgh.harvard.edu &lt;mne_analysis-bounces@nmr.mgh.harvard.edu&gt; on behalf of Alexandre Gramfort &lt;alexandre.gramfort@inria.fr&gt;<br>
&gt; Sent: Thursday, December 6, 2018 1:31 PM<br>
&gt; To: Discussion and support forum for the users of MNE Software<br>
&gt; Subject: Re: [Mne_analysis] Convert brainstorm channel .xyz file or sfp file into mne raw fif<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; External Email - Use Caution<br>
&gt;<br>
&gt; see:<br>
&gt;<br>
&gt; <a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmartinos.org%2Fmne%2Fdev%2Fgenerated%2Fmne.channels.read_montage.html&amp;amp;data=02%7C01%7Cfeng.liu%40mavs.uta.edu%7Ccb95432d21b947f4d5ba08d65bb16de0%7C5cdc5b43d7be4caa8173729e3b0a62d9%7C0%7C0%7C636797214942900171&amp;amp;sdata=j6ayJB%2BsHBO8nHke9L2vXXa5s3GH%2Ba%2B%2BWGOerPRZmdQ%3D&amp;amp;reserved=0">
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmartinos.org%2Fmne%2Fdev%2Fgenerated%2Fmne.channels.read_montage.html&amp;amp;data=02%7C01%7Cfeng.liu%40mavs.uta.edu%7Ccb95432d21b947f4d5ba08d65bb16de0%7C5cdc5b43d7be4caa8173729e3b0a62d9%7C0%7C0%7C636797214942900171&amp;amp;sdata=j6ayJB%2BsHBO8nHke9L2vXXa5s3GH%2Ba%2B%2BWGOerPRZmdQ%3D&amp;amp;reserved=0</a><br>
&gt;<br>
&gt; and then<br>
&gt;<br>
&gt; raw.set_montage<br>
&gt;<br>
&gt; should do the job.<br>
&gt;<br>
&gt; HTH<br>
&gt; Alex<br>
&gt; On Thu, Dec 6, 2018 at 6:04 PM Liu, Feng &lt;feng.liu@mavs.uta.edu&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; External Email - Use Caution<br>
&gt; &gt;<br>
&gt; &gt; Dear MNE community,<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; I want to use a set of electrode channel locations for my subjects. I have channel location files in format of .xyz and .sfp generated from brainstorm (already coregistered), does anyone know how to convert to fif file? I can setup montage by reading sfp
 files, but I don't know how to replace the&nbsp; raw.info using the montage information. Also how to get the trans.fif file?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Thank you very much for your time<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Best,<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Feng Liu<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Mne_analysis mailing list<br>
&gt; &gt; Mne_analysis@nmr.mgh.harvard.edu<br>
&gt; &gt; <a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis&amp;amp;data=02%7C01%7Cfeng.liu%40mavs.uta.edu%7Ccb95432d21b947f4d5ba08d65bb16de0%7C5cdc5b43d7be4caa8173729e3b0a62d9%7C0%7C0%7C636797214942900171&amp;amp;sdata=ue0eTdONtUeNHUGowMrYXPGO%2Fu3QZKCvVk3UeJjChfs%3D&amp;amp;reserved=0">
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis&amp;amp;data=02%7C01%7Cfeng.liu%40mavs.uta.edu%7Ccb95432d21b947f4d5ba08d65bb16de0%7C5cdc5b43d7be4caa8173729e3b0a62d9%7C0%7C0%7C636797214942900171&amp;amp;sdata=ue0eTdONtUeNHUGowMrYXPGO%2Fu3QZKCvVk3UeJjChfs%3D&amp;amp;reserved=0</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Mne_analysis mailing list<br>
&gt; Mne_analysis@nmr.mgh.harvard.edu<br>
&gt; <a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis&amp;amp;data=02%7C01%7Cfeng.liu%40mavs.uta.edu%7Ccb95432d21b947f4d5ba08d65bb16de0%7C5cdc5b43d7be4caa8173729e3b0a62d9%7C0%7C0%7C636797214942900171&amp;amp;sdata=ue0eTdONtUeNHUGowMrYXPGO%2Fu3QZKCvVk3UeJjChfs%3D&amp;amp;reserved=0">
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis&amp;amp;data=02%7C01%7Cfeng.liu%40mavs.uta.edu%7Ccb95432d21b947f4d5ba08d65bb16de0%7C5cdc5b43d7be4caa8173729e3b0a62d9%7C0%7C0%7C636797214942900171&amp;amp;sdata=ue0eTdONtUeNHUGowMrYXPGO%2Fu3QZKCvVk3UeJjChfs%3D&amp;amp;reserved=0</a><br>
</div>
</span></font>
</body>
</html>