<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Dear FieldTrip Users: <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I am trying to apply the Network Analysis tutorial to my own data, and I have hit a stumbling block with the atlas and parcellation steps.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Briefly, I am using a mesh exported from Brainstorm with 15002 vertices, so at the end of all steps through ft_connectivityanalysis I have a connectivity structure with pos = 15002. The atlas has pos = 8004.
I tried to use ft_sourceinterpolate to make my connectivity structure match the atlas, but it is only seems to be interpolating the first dimension of the source data as shown below.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">My question: How can I make ft_sourceinterpolate apply to both dimensions of my cohspctrm parameter rather than only the first dimension? <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">RESULTS from ft_connectivityanalysis:
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">source_conn = <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> struct with fields:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> inside: [15002×1 logical]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> pos: [15002×3 double]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> tri: [29989×3 double]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> cohspctrm: [15002×15002 double]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> dimord: 'pos_pos_freq'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> freq: 9.9340<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> cfg: [1×1 struct]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">INTERPOLATION commands: <o:p>
</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">cfg = [];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">cfg.parameter = 'cohspctrm';<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">cfg.interpmethod = 'nearest';<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">source_conn_interp = ft_sourceinterpolate(cfg, source_conn, atlas);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">RESULTS from ft_sourceinterpolate:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">source_conn_interp = <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> struct with fields:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> freq: 9.9340<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> pos: [8004×3 double]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> tri: [16000×3 double]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> unit: 'mm'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> inside: [8004×1 logical]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> cohspctrm: [8004×15002 double]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> cfg: [1×1 struct]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Notice that the cohspctrm is interpolated from a [15002×15002 double] to a [8004×15002 double]. This then translates to the parcellation step where only the first dimension can be parcellated using the atlas.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I’m sure I am missing something obvious and appreciate your thoughts and patience,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Josh<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">-- <o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Joshua Bear, MD, MA<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Neuroscience Institute, Children’s Hospital Colorado<o:p></o:p></span></p>
</div>
</div>
<font size="3" face="Times New Roman">
</font><div style="margin: 0in 0in 0pt; text-align: left;" class="MsoNormal" align="center"><span style='font-family: "Times New Roman","serif"; font-size: 12pt; mso-fareast-font-family: "Times New Roman";'>
<hr align="center" SIZE="2" width="100%">
</span>
CONFIDENTIALITY NOTICE: This e-mail, including any attachments, is for the sole use of the intended recipient and may contain confidential and privileged information. If you are not an intended recipient, or the person responsible for delivering this message to an intended recipient, you are hereby notified that reading, copying, using or distributing this message is prohibited. If you are not an intended recipient, please contact the sender by reply email and destroy all copies of the original message from your computer system. <br>
<font size="3" face="Times New Roman">
</font></div><div style="margin: 0in 0in 0pt; text-align: center;" class="MsoNormal" align="center"><span style='font-family: "Times New Roman","serif"; font-size: 12pt; mso-fareast-font-family: "Times New Roman";'>
<hr align="center" SIZE="2" width="100%">
</span></div><font size="3" face="Times New Roman">
</font></body>
</html>