<html xmlns:v="urn:schemas-microsoft-com:vml" 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;}
@font-face
        {font-family:Aptos;}
@font-face
        {font-family:"Helvetica Neue";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:12.0pt;
        font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#467886;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        font-size:10.0pt;
        font-family:"Courier New";}
p.gmail-p1, li.gmail-p1, div.gmail-p1
        {mso-style-name:gmail-p1;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Aptos",sans-serif;}
p.gmail-p2, li.gmail-p2, div.gmail-p2
        {mso-style-name:gmail-p2;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Aptos",sans-serif;}
span.gmail-apple-converted-space
        {mso-style-name:gmail-apple-converted-space;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Aptos",sans-serif;
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        mso-ligatures:none;
        mso-fareast-language:EN-GB;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:11.0pt;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<p>Dear Sarah,<o:p></o:p></p>
<p>I would first recommend verifying that the coordinate systems and units of your atlas and template MRI are consistent. However, this does not appear to be the issue in your case.<o:p></o:p></p>
<p>The likely cause of the discrepancy is that out of the <span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">
6871 </span>dipoles marked as “inside” the brain , there are regions such as the brain ventricles and the brainstem. These regions are not part of the 116 AAL ROIs, as depicted in Figure 2 of
<a href="https://www.researchgate.net/publication/350967572_A_Deep_Learning_Approach_to_Predict_Autism_Spectrum_Disorder_Using_Multisite_Resting-State_fMRI" target="_new">
this paper</a> (<a href="https://www.researchgate.net/publication/350967572_A_Deep_Learning_Approach_to_Predict_Autism_Spectrum_Disorder_Using_Multisite_Resting-State_fMRI">https://www.researchgate.net/publication/350967572_A_Deep_Learning_Approach_to_Predict_Autism_Spectrum_Disorder_Using_Multisite_Resting-State_fMRI</a>).
 Furthermore, your 7.5 mm source model is relatively coarse, and the boundary between "inside" and "outside" is not well-defined, leading to points that are “inside” the brain not assigned to any AAL ROI.<o:p></o:p></p>
<p>To visualize this better, you can plot the atlas-interpolated source model using the following code:<o:p></o:p></p>
<pre><code>cfg = [];<o:p></o:p></code></pre>
<pre><code>cfg.funparameter = 'tissue';<o:p></o:p></code></pre>
<pre><code>cfg.funcolormap = 'jet';<o:p></o:p></code></pre>
<pre><code>ft_sourceplot(cfg, sourcemodel2);<o:p></o:p></code></pre>
<p>Additionally, by specifying <code><span style="font-size:10.0pt">cfg.method = 'surface';</span></code>, you can check the brain surface. You will observe that some boundary points are not assigned to any AAL ROI (e.g., note the dark blue spots on the occipital
 lobe):<o:p></o:p></p>
<pre><code>cfg = [];<o:p></o:p></code></pre>
<pre><code>cfg.method = 'surface';<o:p></o:p></code></pre>
<pre><code>cfg.funparameter = 'tissue';<o:p></o:p></code></pre>
<pre><code>cfg.funcolormap = 'jet';<o:p></o:p></code></pre>
<pre><code>ft_sourceplot(cfg, sourcemodel2);<o:p></o:p></code></pre>
<p><o:p> </o:p></p>
<p>Best regards,<o:p></o:p></p>
<p>Konstantinos Tsilimparis<o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> fieldtrip <fieldtrip-bounces@science.ru.nl>
<b>On Behalf Of </b>Sarah via fieldtrip<br>
<b>Sent:</b> Wednesday, July 3, 2024 11:13 PM<br>
<b>To:</b> fieldtrip@science.ru.nl<br>
<b>Cc:</b> Sarah <s83728498@gmail.com><br>
<b>Subject:</b> [FieldTrip] Source Point Count & Atlas Point Count Discrepancy<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="gmail-p1" style="margin:0cm"><span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">Hi all, <o:p></o:p></span></p>
<p class="gmail-p2" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;min-height:15px">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif"><o:p> </o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">I have a question about mapping source points to atlas ROIs.<span class="gmail-apple-converted-space"> </span><o:p></o:p></span></p>
<p class="gmail-p2" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;min-height:15px">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif"><o:p> </o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">I have computed my source analysis using FT’s 3D grid of 7.5mm. I have also interpolated the FT shipped AAL atlas (ROI_MNI_V4.nii) onto this 7.5mm template grid.<o:p></o:p></span></p>
<p class="gmail-p2" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;min-height:15px">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif"><o:p> </o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">I have now been mapping only some relevant source points to the atlas to determine which ROI they exist in. However, I noticed that many of my source points didn’t “exist” within the atlas. In
 fact, the # of my subject’s source points that exist inside/outside are reported as: 6871 dipoles inside, 6791 dipoles outside brain, whereas I notice the atlas interpolated source model only has 3475 points total.<span class="gmail-apple-converted-space"> </span><o:p></o:p></span></p>
<p class="gmail-p2" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;min-height:15px">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif"><o:p> </o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">I was wondering how to handle this apparent discrepancy (as I assume the atlas point count should at least be somewhat closer to the total of source points marked as inside the brain).<span class="gmail-apple-converted-space"> </span><o:p></o:p></span></p>
<p class="gmail-p2" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;min-height:15px">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif"><o:p> </o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">Thanks,<o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">Sarah<o:p></o:p></span></p>
<p class="gmail-p2" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;min-height:15px">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif"><o:p> </o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">P.S. I included some of my relevant code below to produce this, but it is simply the code of the FT tutorials.<o:p></o:p></span></p>
<p class="gmail-p2" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;min-height:15px">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif"><o:p> </o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">Subject Sourcemodel Code:<o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">cfg <span class="gmail-apple-converted-space">
          </span>= [];<o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">cfg.method<span class="gmail-apple-converted-space">   
</span>='basedonmni';<o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">cfg.template<span class="gmail-apple-converted-space"> 
</span>= template_grid;<o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">cfg.nonlinear = 'yes';<o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">cfg.mri <span class="gmail-apple-converted-space">
      </span>= mri;<o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">cfg.unit<span class="gmail-apple-converted-space">     
</span>='mm';<o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">grid<span class="gmail-apple-converted-space">         
</span>= ft_prepare_sourcemodel(cfg);<o:p></o:p></span></p>
<p class="gmail-p2" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;min-height:15px">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif"><o:p> </o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">Interpolate Atlas Code:<span class="gmail-apple-converted-space"> </span><o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">cfg = [];<o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">cfg.interpmethod = 'nearest';<o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">cfg.parameter = 'tissue';<o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">sourcemodel2 = ft_sourceinterpolate(cfg, atlas, template_grid);<o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0cm;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:10.0pt;font-family:"Helvetica Neue",serif">sourcemodel2 = ft_convert_units(sourcemodel2, 'mm');<o:p></o:p></span></p>
</div>
</div>
</body>
</html>