<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Stephan<div><br></div><div>In fieldtrip/rpivate/clusterstat around line 194 you can see</div><div><div>      posclusobs = findcluster(reshape(postailobs, [cfg.dim,1]),channeighbstructmat,cfg.minnbchan);</div></div><div>that is the section that should get used (the present code still thinks that source is always a 3d regular grid, which is not the case for a surface grid)</div><div><br></div><div>Furthermore, in ft_prepare_neighbours there is the subfunction "compneighbstructfromtri" that is of relevance. </div><div><br></div><div>This is a section of the code that needs to be cleaned up and the clustering along the sheet should become a standard feature instead of something that can be managed by a hack. Concrete code suggestions (evt. through <a href="http://bugzilla.fcdonders.nl">bugzilla.fcdonders.nl</a>) are welcome.</div><div><br></div><div>best</div><div>Robert</div><div><br></div><div><br></div><div><br></div><div><br><div><div>On 31 Jan 2012, at 20:48, <a href="mailto:smoratti@psi.ucm.es">smoratti@psi.ucm.es</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Robert,<div><br></div><div>To do clustering on a 3D source surface I always had to "trick" field trip and squeezed the 3D source surface data into a ERF structure treating the 3D surface points as sensors. Then by triangulation I found the neighbors. However, if there is a more elegant method implemented in ft_sourcestatistc, I would be very interested to know how to do it. Where can I find some hints on that?</div><div><br></div><div>Best,</div><div><br></div><div>Stephan</div><div><br></div><div><div>
<div><div>________________________________________________________</div><div>Stephan Moratti, PhD<br><br></div><div>see also: <a href="http://web.me.com/smoratti/">http://web.me.com/smoratti/</a><br><br></div><div>Universidad Complutense de Madrid</div><div>Facultad de Psicología</div><div>Departamento de Psicología Básica I</div><div>Campus de Somosaguas</div><div>28223 Pozuelo de Alarcón (Madrid)</div><div>Spain</div><div><br></div><div>and</div><div><br></div><div>Center for Biomedical Technology</div><div>Laboratory for Cognitive and Computational Neuroscience</div><div>Parque Científico y Tecnológico de la Universidad Politecnica de Madrid<br>Campus Montegancedo</div><div>28223 Pozuelo de Alarcón (Madrid)</div><div>Spain<br><br><br>email: <a href="mailto:smoratti@psi.ucm.es">smoratti@psi.ucm.es</a><br>Tel.:    +34 679219982</div></div>
</div>
<br><div><div>El 31/01/2012, a las 15:37, Robert Oostenveld escribió:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Ulrich<div><br></div><div>If your source locations are defined on a regular 3D grid that can be represented as volume, then the neighbours are trivial to find and you do not have to specify a structure for the neighbours. </div><div><br></div><div>If you have done source reconstruction on a 3D folded cortical sheet that is defined by a triangulated surface, then it is also possible to cluster along the surface. I don't know the details for the cortical sheet clustering from the top of my head, if you are interested please let me know and I'll look them up.  </div><div><br></div><div>best</div><div>Robert</div><div><br></div><div><br></div><div><br></div><div><br><div><div>On 30 Jan 2012, at 16:58, Pomper, Ulrich wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Dear Jörn,<br>Thanks for you reply. I did mean source-level, so like you said, I am trying to define the neighbouring voxels for each voxel.<br>As far as I understand, leaving cfg.neighbours blank means that the clustering is done over the time and frequency dimensions only, not over space.<span class="Apple-converted-space"> </span><br>The FT help reads:<span class="Apple-converted-space"> </span><br>%If you specify an empty neighbourhood structure, clustering will only be done in frequency and time (if available) and not over neighbouring channels.<br><br>Has anybody done clustering in source space using all three dimensions and could explain how this works?<br>Cheers,<span class="Apple-converted-space"> </span><br>Ulrich<br><br></blockquote></div><br></div></div>_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br><a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></blockquote></div><br></div></div>_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</blockquote></div><br></div></body></html>