<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p><br>
</p>
<br>
<p>Goodmorning,</p>
<p><br>
</p>
<p>How do you convert the simulated EEG to simulated MEG,</p>
<p>Its possible to convert the electrical potential generated at each cells to</p>
<p>magnetic potential? without modelling the MEG</p>
<p><br>
</p>
<p>Best regards</p>
<p> Saeed Zahran<br>
</p>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> fieldtrip-bounces@science.ru.nl <fieldtrip-bounces@science.ru.nl> on behalf of fieldtrip-request@science.ru.nl <fieldtrip-request@science.ru.nl><br>
<b>Sent:</b> Monday, February 6, 2017 1:00 PM<br>
<b>To:</b> fieldtrip@science.ru.nl<br>
<b>Subject:</b> fieldtrip Digest, Vol 75, Issue 7</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Send fieldtrip mailing list submissions to<br>
        fieldtrip@science.ru.nl<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a previewremoved="true" id="LPlnk125169" href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip">
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a>
<div style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;" id="LPBorder_GT_14864595608390.048583721441242234">
<table style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" id="LPContainer_14864595608290.5940501048247868" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" id="TextCell_14864595608310.37175632692399907">
<div id="LPRemovePreviewContainer_14864595608320.3082425210700488"></div>
<div style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;" id="LPTitle_14864595608320.6540203463875158">
<a target="_blank" href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="text-decoration: none;" id="LPUrlAnchor_14864595608340.626577252433389">fieldtrip Info Page - mailman.science.ru.nl</a></div>
<div style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;" id="LPMetadata_14864595608350.2741004236464488">
mailman.science.ru.nl</div>
<div style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;" id="LPDescription_14864595608370.8429897898438621">
FieldTrip is the MATLAB software toolbox for MEG and EEG analysis that is being developed by a team of researchers at the Donders Institute for Brain, Cognition and ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
or, via email, send a message with subject or body 'help' to<br>
        fieldtrip-request@science.ru.nl<br>
<br>
You can reach the person managing the list at<br>
        fieldtrip-owner@science.ru.nl<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of fieldtrip digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: Starting at ft_timelockstatistics (Danielle Farrar)<br>
   2. Re: Starting at ft_timelockstatistics (Mait? Crespo Garc?a)<br>
   3. Re: Symmetric Source Reconstruction<br>
      (Schoffelen, J.M. (Jan Mathijs))<br>
   4. Re: Error reading fif file during ft_read_headshape<br>
      (Schoffelen, J.M. (Jan Mathijs))<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sun, 5 Feb 2017 20:52:34 -0500<br>
From: Danielle Farrar <danielle.farrar@gmail.com><br>
To: fieldtrip@science.ru.nl<br>
Subject: Re: [FieldTrip] Starting at ft_timelockstatistics<br>
Message-ID:<br>
        <CAN1QL1O4-1moj846_Ni=DWLzwg39+XCwfsrrt_OXhxgF7Y_Vow@mail.gmail.com><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hello,<br>
<br>
Just a quick question to follow up on this. I've gotten a bit further on<br>
this question, but now am stuck because ft_timelockstatistics requires a<br>
cfg.design field.  I was wondering how to construct this field?  I haven't<br>
been able to find an example in the documentation.<br>
<br>
Thanks,<br>
Danielle<br>
<br>
On Tue, Jan 31, 2017 at 11:40 AM, Danielle Farrar <danielle.farrar@gmail.com<br>
> wrote:<br>
<br>
> Hello,<br>
><br>
> My apologies if this has been covered before, I just joined the list and<br>
> am having trouble searching the archives.<br>
><br>
> I have a set of EEG data that was recorded from a Biosemi apparatus using<br>
> a 128-channel cap. The dataset is in text files, is post-processed and is<br>
> the result of filtering, epoching, and averaging, and has been imported<br>
> into matlab.  I created trial structs out of the datasets.  It is a dataset<br>
> of 21 subjects with two conditions.  I'm trying to do some non-parametric<br>
> clustering statistics on the dataset and I don't have access to the<br>
> original bdf files.<br>
><br>
> I have the electrode names and coordinates saved in matlab matrices.  Now,<br>
> I'd like to do clustering analysis using a monte carlo simulation to<br>
> determine areas of significant differences between the two conditions, but<br>
> am having trouble ensuring that my datasets are structured appropriately<br>
> for input. It seems that the tutorials mostly assume that the data is in a<br>
> raw output format from one of the systems.<br>
><br>
> I know that for ft_timelockstatistics, the data is supposed to be output<br>
> from the ft_timelockanalysis. I was trying to use ft_timelockanalysis as an<br>
> entry point  However, I am having trouble constructing the data struct<br>
> appropriate for the timelock function.  Can this be done?  Should I be<br>
> starting further upstream? I'm attaching some of the code. I'm know the<br>
> data struct needs additional information but am not sure how to go about<br>
> using it.<br>
><br>
> The error I get when I run the following code is "Error using ft_checkdata<br>
> (line 480). This function requires raw+comp or raw data as input."<br>
><br>
> Thanks!<br>
> Danielle<br>
><br>
> ********************************<br>
><br>
> for i=size(CD_condition.data,3),<br>
>       CD_trial{i} = CD_condition.data(:,:,i);<br>
> end<br>
><br>
> CD.trial = CD_trial;<br>
><br>
> cfg.channel = 'all';<br>
> cfg.trials = 'all';<br>
> cfg.covariance = 'yes';<br>
> cfg.covariancewindow = 'prestim';<br>
> cfg.removemean = 'yes';<br>
> cfg.vartrllength = 0;<br>
><br>
> CD.type = 'raw+comp';<br>
> ft_timelockanalysis(cfg,CD);<br>
><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a previewremoved="true" id="LPlnk432815" href="http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20170205/36b69b08/attachment-0001.html">http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20170205/36b69b08/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Mon, 6 Feb 2017 08:28:31 +0000 (UTC)<br>
From: Mait? Crespo Garc?a <maity_winky@yahoo.es><br>
To: FieldTrip discussion list <fieldtrip@science.ru.nl><br>
Subject: Re: [FieldTrip] Starting at ft_timelockstatistics<br>
Message-ID: <264055019.2734773.1486369711622@mail.yahoo.com><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hello Danielle,<br>
the links below may help you to configure the design field. <br>
<br>
Best wishes,Mait?<br>
<br>
<a previewremoved="true" id="LPlnk451898" href="http://www.fieldtriptoolbox.org/development/designhttp://www.fieldtriptoolbox.org/walkthrough#paired_comparison">http://www.fieldtriptoolbox.org/development/designhttp://www.fieldtriptoolbox.org/walkthrough#paired_comparison</a><br>
<br>
<br>
<br>
 <br>
<br>
    El Lunes 6 de febrero de 2017 3:10, Danielle Farrar <danielle.farrar@gmail.com> escribi?:<br>
 <br>
<br>
 Hello,<br>
Just a quick question to follow up on this. I've gotten a bit further on this question, but now am stuck because ft_timelockstatistics requires a cfg.design field.? I was wondering how to construct this field?? I haven't been able to find an example in the
 documentation.<br>
Thanks,Danielle<br>
On Tue, Jan 31, 2017 at 11:40 AM, Danielle Farrar <danielle.farrar@gmail.com> wrote:<br>
<br>
Hello,<br>
My apologies if this has been covered before, I just joined the list and am having trouble searching the archives.<br>
I have a set of EEG data that was recorded from a Biosemi apparatus using a 128-channel cap. The dataset is in text files, is post-processed and is the result of filtering, epoching, and averaging, and has been imported into matlab.? I created trial structs
 out of the datasets.? It is a dataset of 21 subjects with two conditions.? I'm trying to do some non-parametric clustering statistics on the dataset and I don't have access to the original bdf files.<br>
I have the electrode names and coordinates saved in matlab matrices.? Now, I'd like to do clustering analysis using a monte carlo simulation to determine areas of significant differences between the two conditions, but am having trouble ensuring that my datasets
 are structured appropriately for input. It seems that the tutorials mostly assume that the data is in a raw output format from one of the systems. ?<br>
I know that for ft_timelockstatistics, the data is supposed to be output from the ft_timelockanalysis. I was trying to use ft_timelockanalysis as an entry point ?However, I am having trouble constructing the data struct appropriate for the timelock function.?
 Can this be done?? Should I be starting further upstream? I'm attaching some of the code. I'm know the data struct needs additional information but am not sure how to go about using it. ?<br>
The error I get when I run the following code is "Error using ft_checkdata (line 480). This function requires raw+comp or raw data as input."<br>
Thanks!Danielle<br>
****************************** **<br>
for i=size(CD_condition.data,3),? ? ? CD_trial{i} = CD_condition.data(:,:,i);end<br>
CD.trial = CD_trial;<br>
cfg.channel = 'all';cfg.trials = 'all';cfg.covariance = 'yes';cfg.covariancewindow = 'prestim';cfg.removemean = 'yes';cfg.vartrllength = 0;<br>
CD.type = 'raw+comp';ft_timelockanalysis(cfg,CD);<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
fieldtrip@donders.ru.nl<br>
<a previewremoved="true" id="LPlnk396048" href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a>
<div style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;" id="LPBorder_GT_14864596118130.5900142527518518">
<table style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" id="LPContainer_14864596118040.13373204166682406" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" id="TextCell_14864596118070.5963128920026676">
<div id="LPRemovePreviewContainer_14864596118070.5943740617205607"></div>
<div style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;" id="LPTitle_14864596118070.48570319056845623">
<a target="_blank" href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="text-decoration: none;" id="LPUrlAnchor_14864596118090.8772384305449434">fieldtrip Info Page - mailman.science.ru.nl</a></div>
<div style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;" id="LPMetadata_14864596118100.6008167320775254">
mailman.science.ru.nl</div>
<div style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;" id="LPDescription_14864596118110.06272721352371402">
FieldTrip is the MATLAB software toolbox for MEG and EEG analysis that is being developed by a team of researchers at the Donders Institute for Brain, Cognition and ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
   <br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a previewremoved="true" id="LPlnk159231" href="http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20170206/ed22e953/attachment-0001.html">http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20170206/ed22e953/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Mon, 6 Feb 2017 08:40:04 +0000<br>
From: "Schoffelen, J.M. (Jan Mathijs)" <jan.schoffelen@donders.ru.nl><br>
To: FieldTrip discussion list <fieldtrip@science.ru.nl><br>
Subject: Re: [FieldTrip] Symmetric Source Reconstruction<br>
Message-ID: <3E18DBC0-CAA4-4C3D-8F6C-AFAC5AB5A21D@donders.ru.nl><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Hi Behzad,<br>
<br>
You could try to do the following, before calling ft_sourceinterpolate:<br>
<br>
sourceC.pos = sourceC.pos(:,1:3);<br>
<br>
Best,<br>
Jan-Mathijs<br>
<br>
<br>
<br>
<br>
J.M.Schoffelen, MD PhD<br>
Senior Researcher, VIDI-fellow<br>
Telephone: +31-24-3614793<br>
Physical location: room 00.028<br>
Donders Centre for Cognitive Neuroimaging, Nijmegen, The Netherlands<br>
<br>
<br>
<br>
<br>
<br>
> On 26 Jan 2017, at 17:36, Behzad Iravani <behzadiravani@gmail.com> wrote:<br>
> <br>
> <br>
> Dear FieldTrip experts ,<br>
> <br>
> I'm interested to perform symmetric source reconstruction on time lock data. However I encountered an error. here is my code:<br>
> <br>
> cfg                         = [];<br>
> cfg.grid.unit            = 'mm';<br>
> cfg.grid.resolution   = 5;<br>
> cfg.grid.tight           = 'yes';<br>
> cfg.inwardshift        = -2;<br>
> cfg.headmodel        = vol;<br>
> cfg.symmetric        ='y';  % symmetric sources<br>
> <br>
> grid                = ft_prepare_sourcemodel(cfg);<br>
> <br>
> <br>
> % timelock data for two conditions<br>
> <br>
> load timelockA     %co-variance computed<br>
> load timelockB     %co-variance computed<br>
> load timeloackAB %co-variance computed<br>
> <br>
> load elecfile.mat   % sensor positions<br>
> load vol.mat         % pre-compute head model<br>
> <br>
> cfg                     = [];<br>
> cfg.method         = 'lcmv';     <br>
> cfg.grid               = grid;       <br>
> cfg.headmodel     = vol;       <br>
> cfg.elec               = elecfile;<br>
> cfg.keepfilter        = 'yes';<br>
> source                = ft_sourceanalysis(timeloackAB); % compute common filter<br>
> <br>
> cfg.keepfilter        = 'no';<br>
> cfg.grid.filter         =source.avg.filter<br>
> sourceA               = ft_sourceanalysis(timeloackA); % compute common filter<br>
> <br>
> sourceB               = ft_sourceanalysis(timeloackA); % compute common filter<br>
> <br>
> <br>
> % Contrast Condition A versus B<br>
> cfg           = [];<br>
> cfg.parameter = 'pow';<br>
> cfg.operation = '(x1./x2-1)';<br>
> SourceC= ft_math(cfg,sourceA ,sourceB);<br>
> <br>
> load mri.mat       % load anatomical image<br>
> <br>
> cfg            = [];<br>
> cfg.parameter  = 'pow';<br>
> sourcePostInt  = ft_sourceinterpolate(cfg,  SourceC ,mri);<br>
> <br>
> here I get error in ft_warp_apply because the grid.pos is 6*n which it is supposed to be 3*n, since I chose the symmetric option it turned to 6*n.<br>
> <br>
> How can I solve this problem?<br>
> <br>
> Thanks in advance<br>
> Best<br>
> <br>
> Behzad<br>
> <br>
> <br>
>   <br>
> <br>
> _______________________________________________<br>
> fieldtrip mailing list<br>
> fieldtrip@donders.ru.nl<br>
> <a previewremoved="true" id="LPlnk510701" href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip">
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a>
<div style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;" id="LPBorder_GT_14864596730530.5678045215628164">
<table style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" id="LPContainer_14864596730430.016536143547173143" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" id="TextCell_14864596730460.5641628148851964">
<div id="LPRemovePreviewContainer_14864596730460.1538688776884507"></div>
<div style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;" id="LPTitle_14864596730470.603774410205199">
<a target="_blank" href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="text-decoration: none;" id="LPUrlAnchor_14864596730480.8313497952234739">fieldtrip Info Page - mailman.science.ru.nl</a></div>
<div style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;" id="LPMetadata_14864596730490.14599877402588735">
mailman.science.ru.nl</div>
<div style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;" id="LPDescription_14864596730510.4909591002506988">
FieldTrip is the MATLAB software toolbox for MEG and EEG analysis that is being developed by a team of researchers at the Donders Institute for Brain, Cognition and ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Mon, 6 Feb 2017 08:57:13 +0000<br>
From: "Schoffelen, J.M. (Jan Mathijs)" <jan.schoffelen@donders.ru.nl><br>
To: FieldTrip discussion list <fieldtrip@science.ru.nl><br>
Subject: Re: [FieldTrip] Error reading fif file during<br>
        ft_read_headshape<br>
Message-ID: <AA46DD2B-E204-4283-ADAE-41610B9A2DAD@donders.ru.nl><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Alba,<br>
<br>
The first error that you report is a low-level reading error, that may have nothing to do with fieldtrip. You may want to check which version of the mne-matlab software you are using.<br>
<br>
The workaround you tried out is not going to work, because ft_volumedownsample only works on data that is defined on a volumetric grid of dipole positions, not on a cortical sheet.<br>
<br>
Best,<br>
Jan-Mathijs<br>
<br>
<br>
J.M.Schoffelen, MD PhD<br>
Senior Researcher, VIDI-fellow<br>
Telephone: +31-24-3614793<br>
Physical location: room 00.028<br>
Donders Centre for Cognitive Neuroimaging, Nijmegen, The Netherlands<br>
<br>
<br>
<br>
<br>
On 30 Jan 2017, at 22:53, Alba Xifra Porxas, Ms <alba.xifraporxas@mail.mcgill.ca<mailto:alba.xifraporxas@mail.mcgill.ca>> wrote:<br>
<br>
<br>
Dear FieldTrippers,<br>
<br>
My name is Alba Xifra Porxas and I am working in the Biosignals and Systems Analysis Lab at McGill University. Currently I am analyzing MEG data from a motor-task paradigm from young and elderly subjects. I am following the tutorial: Source reconstruction of
 event-related fields using minimum-norm estimate (<a previewremoved="true" id="LPlnk460501" href="http://fieldtrip.fcdonders.nl/tutorial/minimumnormestimate">http://fieldtrip.fcdonders.nl/tutorial/minimumnormestimate</a>).
<div style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;" id="LPBorder_GT_14864596751180.3095388250962403">
<table style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" id="LPContainer_14864596751050.5346404676529928" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td colspan="1" style="width: 250px; position: relative; display: table-cell; padding-right: 20px;" id="ImageCell_14864596751070.5509286186483375">
<div style="background-color: rgb(255, 255, 255); height: 150px; position: relative; margin: auto; display: table; width: 150px;" id="LPImageContainer_14864596751080.7096689243479952">
<a target="_blank" href="http://fieldtrip.fcdonders.nl/tutorial/minimumnormestimate" style="display: table-cell; text-align: center;" id="LPImageAnchor_14864596751100.844219470059751"><img id="LPThumbnailImageID_14864596751110.9916371644091758" aria-label="Preview image with link selected. Double-tap to open the link." style="display: inline-block; max-width: 250px; max-height: 250px; height: 150px; width: 150px; border-width: 0px; vertical-align: bottom;" height="150" width="150" src="http://www.fieldtriptoolbox.org/_media/logo-share.png"></a></div>
</td>
<td colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" id="TextCell_14864596751110.23012362917138596">
<div id="LPRemovePreviewContainer_14864596751120.6267730608712941"></div>
<div style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;" id="LPTitle_14864596751120.3254955834639913">
<a target="_blank" href="http://fieldtrip.fcdonders.nl/tutorial/minimumnormestimate" style="text-decoration: none;" id="LPUrlAnchor_14864596751150.38368917362797816">tutorial:minimumnormestimate – FieldTrip</a></div>
<div style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;" id="LPMetadata_14864596751160.7950628500519888">
fieldtrip.fcdonders.nl</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
I am having problems reading the downsampled mesh from MNE suite. When I call FT_READ_HEADSHAPE, I receive the following error message:<br>
<br>
>> sourcespace = ft_read_headshape('s003-oct-6-src.fif', 'format', 'mne_source');<br>
<br>
Error using fiff_read_tag (line 178)<br>
<br>
Only two and three dimensional matrices are supported at this time<br>
<br>
Error in mne_read_source_spaces/read_source_space/find_tag (line 288)<br>
<br>
                    tag = fiff_read_tag(fid,node.dir(p).pos);<br>
<br>
Error in mne_read_source_spaces/read_source_space (line 254)<br>
<br>
        tag2 = find_tag(this,FIFF.FIFF_MNE_SOURCE_SPACE_NEAREST_DIST);<br>
<br>
Error in mne_read_source_spaces (line 111)<br>
<br>
    this = read_source_space(spaces(k));<br>
<br>
Error in ft_read_headshape (line 391)<br>
<br>
    src = mne_read_source_spaces(filename, 1);<br>
<br>
However, I can visualize it correctly in MNE. The command I used to create the source space is:  mne_setup_source_space --ico -6.<br>
<br>
Since I have the meshes from FreeSurfer, I tried a workaround. I call FT_READ_HEADSHAPE using lh.orig and rh.orig, which works. I successfully coregister the source space with the sensor-space and compute source reconstruction using minimum-norm estimation.
 However, when I try to downsample the output of FT_SOURCEANALYSIS calling FT_VOLUMEDOWNSAMPLE before parcellation, I receive the following error:<br>
<br>
Reference to non-existent field 'dim'.<br>
<br>
Error in ft_volumedownsample (line 100)<br>
<br>
xsel = 1:cfg.downsample:source.dim(1);<br>
<br>
Even if I manually introduce this missing field ?dim?, it seems the number of vertices is too big:<br>
<br>
>> source.dim(1) = length(source.pos);source.dim(2) = length(source.pos);source.dim(3) = length(source.pos);<br>
<br>
>> cfg = [];cfg.downsample = 4;source_down = ft_volumedownsample(cfg,source);<br>
<br>
Error using repmat<br>
<br>
Maximum variable size allowed by the program is exceeded.<br>
<br>
Error in ndgrid (line 73)<br>
<br>
        varargout{i} = repmat(x,s);<br>
<br>
Error in pos2transform (line 25)<br>
<br>
[X,Y,Z] = ndgrid(x, y, z);<br>
<br>
Error in ft_checkdata>source2volume (line 1286)<br>
<br>
  data.transform = pos2transform(data.pos, data.dim);<br>
<br>
Error in ft_checkdata (line 350)<br>
<br>
      data = source2volume(data);<br>
<br>
Error in ft_volumedownsample (line 69)<br>
<br>
source = ft_checkdata(source, 'datatype', 'volume', 'feedback', 'no');<br>
<br>
The source I use is as follows:<br>
<br>
>> display(source)<br>
<br>
source =<br>
<br>
      time: [1x3900 double]<br>
<br>
    inside: [255462x1 logical]<br>
<br>
       pos: [255462x3 double]<br>
<br>
    method: 'average'<br>
<br>
       avg: [1x1 struct]<br>
<br>
       cfg: [1x1 struct]<br>
<br>
       dim: [255462 255462 255462]<br>
<br>
Therefore, I am back to where I started. I need to read the fif file from MNE suite.<br>
<br>
I uploaded my fif file in Dropbox. Here is the link: <a previewremoved="true" id="LPlnk645143" href="https://www.dropbox.com/sh/uq181l76353hd8q/AACjTu8KI_rGaXlaDMyw-Diba?dl=0">
https://www.dropbox.com/sh/uq181l76353hd8q/AACjTu8KI_rGaXlaDMyw-Diba?dl=0</a>
<div style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;" id="LPBorder_GT_14864596743500.24025772442157056">
<table style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" id="LPContainer_14864596743360.6644996386323572" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td colspan="1" style="width: 250px; position: relative; display: table-cell; padding-right: 20px;" id="ImageCell_14864596743380.23922991034148922">
<div style="background-color: rgb(255, 255, 255); height: 128px; position: relative; margin: auto; display: table; width: 128px;" id="LPImageContainer_14864596743380.9898146048913354">
<a target="_blank" href="https://www.dropbox.com/sh/uq181l76353hd8q/AACjTu8KI_rGaXlaDMyw-Diba?dl=0" style="display: table-cell; text-align: center;" id="LPImageAnchor_14864596743400.9991997680973377"><img id="LPThumbnailImageID_14864596743430.12825618994751553" aria-label="Preview image with link selected. Double-tap to open the link." style="display: inline-block; max-width: 250px; max-height: 250px; height: 128px; width: 128px; border-width: 0px; vertical-align: bottom;" height="128" width="128" src="https://cfl.dropboxstatic.com/static/images/icons128/folder_dropbox.png"></a></div>
</td>
<td colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" id="TextCell_14864596743440.05925408175349012">
<div id="LPRemovePreviewContainer_14864596743450.4104625754058737"></div>
<div style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;" id="LPTitle_14864596743450.942421671540875">
<a target="_blank" href="https://www.dropbox.com/sh/uq181l76353hd8q/AACjTu8KI_rGaXlaDMyw-Diba?dl=0" style="text-decoration: none;" id="LPUrlAnchor_14864596743470.9871499528587891">fieldtrip_data</a></div>
<div style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;" id="LPMetadata_14864596743470.881217611072508">
www.dropbox.com</div>
<div style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;" id="LPDescription_14864596743490.8890718903006773">
Shared with Dropbox</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
Could someone tell me if there is something wrong with the file or with my workaround? Any help would be really appreciated. I am using Fieldtrip version 20170118.<br>
<br>
Best,<br>
<br>
Alba Xifra Porxas<br>
PhD student, Biosignals and Systems Analysis Lab<br>
McGill University, Montr?al, Canada<br>
_______________________________________________<br>
fieldtrip mailing list<br>
fieldtrip@donders.ru.nl<mailto:fieldtrip@donders.ru.nl><br>
<a previewremoved="true" id="LPlnk201236" href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a>
<div style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;" id="LPBorder_GT_14864597343800.8607561519992978">
<table style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" id="LPContainer_14864597343720.1771326990152985" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" id="TextCell_14864597343740.983639402618841">
<div id="LPRemovePreviewContainer_14864597343740.8640420009956318"></div>
<div style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;" id="LPTitle_14864597343750.04593244690971354">
<a target="_blank" href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="text-decoration: none;" id="LPUrlAnchor_14864597343760.9589004897885185">fieldtrip Info Page - mailman.science.ru.nl</a></div>
<div style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;" id="LPMetadata_14864597343770.4586598965235348">
mailman.science.ru.nl</div>
<div style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;" id="LPDescription_14864597343780.07157440658132652">
FieldTrip is the MATLAB software toolbox for MEG and EEG analysis that is being developed by a team of researchers at the Donders Institute for Brain, Cognition and ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a previewremoved="true" id="LPlnk276514" href="http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20170206/c9545e00/attachment-0001.html">http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20170206/c9545e00/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
fieldtrip@donders.ru.nl<br>
<a previewremoved="true" id="LPlnk706844" href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a>
<div style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;" id="LPBorder_GT_14864597337890.31777745853877226">
<table style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" id="LPContainer_14864597337820.9164683243990641" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" id="TextCell_14864597337840.23098459826635898">
<div id="LPRemovePreviewContainer_14864597337840.9536331100686556"></div>
<div style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;" id="LPTitle_14864597337840.10249078133714651">
<a target="_blank" href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="text-decoration: none;" id="LPUrlAnchor_14864597337850.029484712428470505">fieldtrip Info Page - mailman.science.ru.nl</a></div>
<div style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;" id="LPMetadata_14864597337860.4093605169719343">
mailman.science.ru.nl</div>
<div style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;" id="LPDescription_14864597337870.105244250048244">
FieldTrip is the MATLAB software toolbox for MEG and EEG analysis that is being developed by a team of researchers at the Donders Institute for Brain, Cognition and ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
End of fieldtrip Digest, Vol 75, Issue 7<br>
****************************************<br>
</div>
</span></font></div>
</div>
</body>
</html>