<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p style="">Hello fieldtrip experts,<br>
</p>
<p style=""><br>
</p>
<p style="">I just have a question about source interpolation and sourceplot.<br>
</p>
<p style=""><br>
</p>
<p style="">For some reason or another, my data appears to generate a lot of power at  cerebellar regions</p>
<p style=""><span style="font-size: 12pt;">and some that </span><span style="font-size: 12pt;">dont correspond to any brain regions at all.</span></p>
<p style=""><br>
</p>
<p style="">So what I tried was to NaN the power that correspond to the cerebellar regions too see if other</p>
<p style="">brain regions would light up and I still <span style="font-size: 12pt;">appear to get power at those positions in sourceplot.</span></p>
<p style=""><span style="font-size: 12pt;"><br>
</span></p>
<p style=""><span style="font-size: 12pt;">Ive made sure that all variables are the same coordinate system and have the same units (spm, mm).</span></p>
<p style=""><br>
</p>
<p style="">My code is as follows:<br>
</p>
<p style=""><br>
</p>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<p style="">% read in mri file</p>
<div>template_mri = ft_read_mri( fullfile( matlabrootpath, 'Matlab', 'fieldtrip', ...</div>
<div>    'template', 'headmodel', 'standard_mri.mat'));</div>
<div>template_mri = ft_convert_coordsys( template_mri, 'spm');</div>
<div>template_mri = ft_volumenormalise( [], template_mri);</div>
<div style="">template_mri = ft_volumereslice( [], template_mri); </div>
<p style=""><br>
</p>
<div>% map beamformer source locations onto an anatomical label in an atlas</div>
<div>cfg = [];</div>
<div style="">cfg.interpmethod = 'nearest';<br>
</div>
<div>cfg.parameter = 'tissue';</div>
<div>sourcemodel2 = ft_sourceinterpolate( cfg, atlas, sourcemodel);</div>
<div><br>
</div>
<div>% NaN power at cerebellar regions</div>
<div>temp_source = source;</div>
<div>label = lower( atlas.tissuelabel);</div>
<div style="">for iii = 91:numel( label),</div>
<div>    atlas_sources = find( sourcemodel2.tissue == iii);</div>
<div>    temp_source.avg.pow( atlas_sources) = NaN;</div>
<div>end</div>
<div><br>
</div>
<div>% interpolate source to mri</div>
<div>parameter = 'avg.pow';</div>
<div>cfg            = [];</div>
<div>% cfg.voxelcoord = 'no';</div>
<div>cfg.downsample = 2;</div>
<div>cfg.parameter = parameter;</div>
<div>cfg.interpmethod = 'nearest';</div>
<div style="">sourceInt  = ft_sourceinterpolate( cfg, temp_source, template_mri);</div>
<div style=""><br>
</div>
<div>
<div>% Plot interpolated data</div>
</div>
<div>
<div>plot_method = 'slice'; </div>
</div>
<div>
<div>cfg              = [];</div>
</div>
<div>
<div>cfg.method       = plot_method; % slice ortho surface</div>
</div>
<div>
<div style="">cfg.funparameter = parameter;<br>
</div>
</div>
<div>
<div style=""><span style="font-size: 12pt;">cfg.atlas = atlas;</span></div>
</div>
<div>
<div>cfg.crosshair = 'yes';</div>
</div>
<div>
<div style=""><span style="font-size: 12pt;">ft_sourceplot( cfg, sourceInt);</span></div>
</div>
</blockquote>
<div>
<div style=""><br>
</div>
</div>
<p style="">Attached is the sourceplot figure that results<br>
</p>
<p style=""><br>
</p>
<p style="">Kind regards,<br>
</p>
<p style=""><br>
</p>
<p style="">Tyler<br>
</p>
<p style=""><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-size:13px">*************************
<div style="font-family: Tahoma;"><br>
</div>
<div><font face="Arial"><i>Tyler Grummett ( BBSc, BSc(Hons I))</i></font></div>
<div><font face="Arial"><i>PhD Candidate</i></font></div>
<div><font face="Arial"><i>Brain Signals Laboratory</i></font></div>
<div><font face="Arial"><i>Flinders University</i></font></div>
<div><font face="Arial"><i>Rm 5A301</i></font></div>
<div><font face="Arial"><i>Ext 66124</i></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>