<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="">
Just one addition to Tzvetan’s reply, just for future reference:
<div class=""><br class="">
</div>
<div class="">ft_preproc_standardize is a rather ‘low-level’ function, and not recommended unless you know what you’re doing.</div>
<div class="">For your purpose you probably want to use ft_channelnormalise or ft_denoise_prewhiten. Which of the two depends on what you think is happening in Brainstorm. Note that the former (i.e. ft_channelnormalise) only scales the data (and the resulting
power spectra if you proceed with spectral analysis), so it is not really clear what you intend to achieve.</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 28 Mar 2021, at 15:52, mubeen afzal <<a href="mailto:mubafzal@hotmail.com" class="">mubafzal@hotmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="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; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">
Ahh perfect Tzvetan. Thanks alot for the quick reply. This function is good to transform the time series data. </div>
<div style="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; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">
<br class="">
</div>
<div style="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; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">
Regards,</div>
<div style="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; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">
Mubeen</div>
<div 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="">
<div id="appendonsend" class=""></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">
<br class="">
</div>
<hr tabindex="-1" style="display: inline-block; width: 1635.609375px;" class="">
<div id="divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>fieldtrip <<a href="mailto:fieldtrip-bounces@science.ru.nl" class="">fieldtrip-bounces@science.ru.nl</a>>
on behalf of Tzvetan Popov <<a href="mailto:tzvetan.popov@uni-konstanz.de" class="">tzvetan.popov@uni-konstanz.de</a>><br class="">
<b class="">Sent:</b><span class="Apple-converted-space"> </span>Sunday, March 28, 2021 10:48 AM<br class="">
<b class="">To:</b><span class="Apple-converted-space"> </span>FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>><br class="">
<b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [FieldTrip] baseline normalizing</font>
<div class=""> </div>
</div>
<div dir="auto" class="">
<div dir="ltr" class="">Dear Mubeen,</div>
<div dir="ltr" class="">The function you intend to use requires time dimension. What you provide is only power spectrum. </div>
<div dir="ltr" class="">You could use <a href="https://www.fieldtriptoolbox.org/reference/ft_preproc_standardize/" class="">https://www.fieldtriptoolbox.org/reference/ft_preproc_standardize/</a> prior to your freqanalysis if standardized z-scores is what you
need. </div>
<div dir="ltr" class=""><br class="">
</div>
<div dir="ltr" class="">Good luck,</div>
<div dir="ltr" class="">Tzvetan</div>
<div dir="ltr" class=""><br class="">
</div>
<div dir="ltr" class=""><br class="">
<blockquote type="cite" class="">Am 3/28/21 um 07:16 schrieb mubeen afzal <<a href="mailto:mubafzal@hotmail.com" class="">mubafzal@hotmail.com</a>>:<br class="">
<br class="">
</blockquote>
</div>
<blockquote type="cite" class="">
<div dir="ltr" class="">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">
<pre class="">Hi all,</pre>
<pre class=""><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">In brainstorm there is option of baseline normalizing (zscore or db or other methods) the timeseries epochs/trials of interest before frequency analysis allowing visual comparisons and further frequency analysis of the normalized epochs</span><br class=""></pre>
<pre class="">The normalization function function [freq] = ft_freqbaseline(cfg, freq) doesnt allow normalizing a freq output dimord structure with chan_freq derived using 'mtmfft' method</pre>
<pre class=""></pre>
I get this error message - </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">
<i class=""><br class="">
</i></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">
<i class="">"the call to "ft_freqanalysis" took 1 seconds</i>
<div class=""><i class="">the input is freq data with 21 channels, 191 frequencybins and no timebins</i></div>
<div class=""><i class="">Error using ft_freqbaseline (line 146)</i></div>
<i class="">unsupported data dimensions: chan_freq"</i></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">
<br class="">
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">
Is there a way around this?</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">
<br class="">
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">
Thanks all.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">
<br class="">
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">
Mubeen</div>
<span class="">_______________________________________________</span><br class="">
<span class="">fieldtrip mailing list</span><br class="">
<span class=""><a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></span><br class="">
<span class=""><a href="https://doi.org/10.1371/journal.pcbi.1002202" class="">https://doi.org/10.1371/journal.pcbi.1002202</a></span><br class="">
</div>
</blockquote>
</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="">
<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=""><a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></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=""><a href="https://doi.org/10.1371/journal.pcbi.1002202" class="">https://doi.org/10.1371/journal.pcbi.1002202</a></span></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>