<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Ciao Chiara,
<div class=""><br class="">
</div>
<div class="">I think that you’re almost there. </div>
<div class=""><br class="">
</div>
<div class="">Please have a look at the functionality of ft_sourcedescriptives (and in particular the ‘projectmom’ option), and (assuming your data has been estimated on a dipolar cortical sheet, with a ’tri’ field) at ft_sourceplot_interactive.</div>
<div class=""><br class="">
</div>
<div class="">Best wishes and happy computing,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 21 Mar 2022, at 15:43, Chiara Spaccasassi via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-GB" class="">Dear Fieldtrip community,<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-GB" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-GB" class="">I am using Fieldtrip to run a source localization of TMS evoked potentials (TEPs) on EEG data. I decided to use the MNE method following the online tutorial (<a href="https://urldefense.com/v3/__https://www.fieldtriptoolbox.org/tutorial/minimumnormestimate/__;!!HJOPV4FYYWzcc1jazlU!4rKzf1yeK21Y0DAAzl6KuzAQijVkm0MHoin5XCUx9TJNg4-2JUgL8kBxm_SBLBgHxPJE-v2WZtNkQJg8W_1M-wIFjaIpW8CG5fsm8A$" style="color: blue; text-decoration: underline;" class="">https://www.fieldtriptoolbox.org/tutorial/minimumnormestimate/</a>).
 I was able to reproduce the analysis using my data and create the source localization figure. However, I noticed that the plot is representing the power of the data (avg.pow), which is not exactly what I was aiming for. Is there a way to create and plot the
 amplitude rather than the power of the signal - which I suppose is stored in the ‘moment‘ (.mom) field?<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-GB" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-GB" class="">From what I saw, it does not seem possible to compute such operation using the Fieldtrip functions showed in the tutorial. The problem seems to be that the structure of .mom is not equal to the pow’s one. Specifically, avg.pow is
 a 20484x3000 matrix of N source points x N time points. The .mom field contains instead a 20484x1 cell array and each cell is a 3x3000 matrix with the three rows supposed to be the three coordinates x,y and z of the source vector and the columns representing
 the time points. I was able to obtain a data structure similar to pow (20484x3) by using custom-made scripts to compute the<span class="Apple-converted-space"> </span><b class="">average</b><span class="Apple-converted-space"> </span>of the three axes (x,
 y, z) for each time point (3000) and source (20484). Is this method correct? Is there a better way to extrapolate the amplitude for each time x source point and to plot it?<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-GB" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-GB" class="">Thanks in advance!</span><o:p class=""></o:p></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; text-align: justify; line-height: 22px;" class="">
*******************************************************<o:p class=""></o:p></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; text-align: justify; line-height: 22px;" class="">
<i class=""><span lang="EN-GB" style="font-family: "Times New Roman", serif;" class="">Chiara Spaccasassi<o:p class=""></o:p></span></i></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; text-align: justify; line-height: 22px;" class="">
<i class=""><span lang="EN-GB" style="font-family: "Times New Roman", serif;" class="">Post-doctoral Researcher<o:p class=""></o:p></span></i></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; text-align: justify; line-height: 22px;" class="">
<i class=""><span lang="EN-GB" style="font-family: "Times New Roman", serif;" class="">Centre for studies and research in Cognitive Neuroscience (CsrNC)<o:p class=""></o:p></span></i></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; text-align: justify; line-height: 22px;" class="">
<i class=""><span lang="EN-GB" style="font-family: "Times New Roman", serif;" class="">Department of Psychology, University of Bologna<o:p class=""></o:p></span></i></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; text-align: justify; line-height: 22px;" class="">
<i class=""><span style="font-family: "Times New Roman", serif;" class="">Via Rasi e Spinelli, 176, 47521, Cesena, Italy<o:p class=""></o:p></span></i></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; text-align: justify; line-height: 22px;" class="">
<span style="font-family: "Times New Roman", serif;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Inviato da<span class="Apple-converted-space"> </span><a href="https://urldefense.com/v3/__https://go.microsoft.com/fwlink/?LinkId=550986__;!!HJOPV4FYYWzcc1jazlU!4rKzf1yeK21Y0DAAzl6KuzAQijVkm0MHoin5XCUx9TJNg4-2JUgL8kBxm_SBLBgHxPJE-v2WZtNkQJg8W_1M-wIFjaIpW8CpI8d-yg$" style="color: blue; text-decoration: underline;" class="">Posta</a><span class="Apple-converted-space"> </span>per
 Windows 10<o:p class=""></o:p></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
</div>
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">fieldtrip
 mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="color: blue; text-decoration: underline; font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<a href="https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!4rKzf1yeK21Y0DAAzl6KuzAQijVkm0MHoin5XCUx9TJNg4-2JUgL8kBxm_SBLBgHxPJE-v2WZtNkQJg8W_1M-wIFjaIpW8CFympHcQ$" style="color: blue; text-decoration: underline; font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!4rKzf1yeK21Y0DAAzl6KuzAQijVkm0MHoin5XCUx9TJNg4-2JUgL8kBxm_SBLBgHxPJE-v2WZtNkQJg8W_1M-wIFjaIpW8CFympHcQ$</a><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""></span></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>