<html><head><base href="x-msg://4/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Parinaz,<div><br></div><div>I'm not sure if I understood your question correctly.</div><div>Do you want to find the atlas label to a given virtual channel? Or do you want to compute a virtual channel on a given atlas label?</div><div><br></div><div>In the first case, you can simply interpolate your virtual EEG channels to the standard MRI and use source plot with an atlas to find the corresponding label.</div><div>In the second case, it's a tad more complicated, but here's how I do it:</div><div>1. Compute the virtual channels for all grid points in the cortex</div><div>2. If you have computed the virtual channels on an individual MRI, make sure that the positions correspond to the standard MRI (I think that's described in the source analysis-tutorial)</div><div>3. Build a high-resolution 3D-Grid on the standard MRI</div><div>4. Select all grid points from the grid of step 3 which belong to an atlas (see ft_volumelookup)</div><div>5. Use pythagoras to find the virtual channels from step 2 closest to the grid points from step 4.</div><div><br></div><div>I hope this helps, let me know otherwise.</div><div><br></div><div>Julian</div><div><br><div><div>Am 04.12.2015 um 20:14 schrieb Babaeeghazvini, P.:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div fpstyle="1" ocsi="0"><div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 10pt; "><div style="font-family: 'Times New Roman'; color: rgb(0, 0, 0); font-size: 16px; "><div id="divRpF893157" style="direction: ltr; "><span style="font-size: 10pt; font-family: Tahoma; ">Hello</span></div><div><div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 10pt; "><div style="direction: ltr; "><div style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 10pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 10pt; ">I want to reconstruct a source signal the same as below in page <a href="http://www.fieldtriptoolbox.org/tutorial/shared/virtual_sensors" target="_blank" style="font-size: 10pt; ">http://www.fieldtriptoolbox.org/tutorial/shared/virtual_sensors</a></div><div style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 10pt; "><pre class="code" style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; margin-top: 0px; margin-bottom: 1em; margin-left: -10px; font-size: 12px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); overflow-x: hidden; overflow-y: hidden; font-family: Consolas, 'Andale Mono', Menlo, Monaco, monospace; white-space: pre-wrap; width: 640px; text-align: justify; background-color: rgb(247, 249, 250); ">cfg = [];
cfg.method = 'lcmv';
cfg.vol = hdm;
cfg.grid.pos = sourcemodel.pos([maxcohindx maxpowindx], :);
cfg.grid.inside = 1:size(cfg.grid.pos, 1);
cfg.grid.outside = [];
cfg.keepfilter = 'yes';
source_idx = ft_sourceanalysis(cfg, tlock);</pre></div><div><span style="font-size: 10pt; ">Not from the voxel indicating maximum power (</span><span style="color: rgb(0, 0, 0); font-family: Consolas, 'Andale Mono', Menlo, Monaco, monospace; font-size: 12px; text-align: justify; white-space: pre-wrap; background-color: rgb(247, 249, 250); ">[maxval,
maxpowindx] = max(source_diff.avg.pow);</span><span style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 10pt; ">), but from the atlas area which this voxel belongs to, such as </span>Supp_Motor_Area_L. So my question is: How I can get the atlas range and atlas label belong to a voxel, and how I can use this atlas area range in this code to reconstruct a signal instead of using (<span style="font-family: Consolas, 'Andale Mono', Menlo, Monaco, monospace; font-size: 12px; text-align: justify; white-space: pre-wrap; background-color: rgb(247, 249, 250); ">cfg.grid.pos
= sourcemodel.pos([maxcohindx maxpowindx], :)</span><span style="font-size: 10pt; ">).</span></div><div><span style="font-size: 10pt; "><br></span></div><div><span style="font-size: 10pt; ">Regards,</span></div><div><span style="font-size: 10pt; ">Parinaz.</span></div></div></div></div></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></div></span></blockquote></div><br></div></body></html>