<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Hi Eelke,</p>
<p><br>
</p>
<p>Thank you for helping. I am applying the High-Pass filter during my initial pre-processing (6 min resting state EEG data), here is my code for that:</p>
<p></p>
<div></div>
<p></p>
<div>cfg = [];<br>
cfg.dataset = file;<br>
cfg.padding = 0;<br>
cfg.channel = 'all'<br>
cfg.padtype = 'data';<br>
cfg.continuous   = 'yes'<br>
 cfg.hpfilter = 'yes'<br>
 cfg.hpfreq = '1' <br>
cfg.trialdef.triallength = 1<br>
cfg = ft_definetrial(cfg);<br>
data_segmented_preproc= ft_preprocessing(cfg);</div>
<p><br>
</p>
<p><br>
</p>
<p>here is code for my plotting:</p>
<p></p>
<div>%%% PLOT TEST%%%%<br>
<br>
cfg = [];<br>
cfg.channel   = 'eeg 014'<br>
ft_singleplotER(cfg,freqfourier)<br>
</div>
<p></p>
<p><br>
</p>
<p>Figs are attached.</p>
<p><br>
</p>
<p>Thanks again,</p>
<p>Patrick<br>
</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> fieldtrip <fieldtrip-bounces@science.ru.nl> on behalf of Eelke Spaak <e.spaak@donders.ru.nl><br>
<b>Sent:</b> Thursday, April 25, 2019 2:27:24 AM<br>
<b>To:</b> FieldTrip discussion list<br>
<b>Subject:</b> Re: [FieldTrip] problem with combing high_pass filter and log transform</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi Patrick,<br>
<br>
Could you provide some more details? First, how are you applying the<br>
high-pass filter? Also, could you give the code you use for plotting<br>
and post the resulting figures?<br>
<br>
Best,<br>
Eelke<br>
<br>
On Sat, 20 Apr 2019 at 04:53, John Begnoche <jbegnoche@sralab.org> wrote:<br>
><br>
> Hello,<br>
><br>
><br>
> I am plotting outcomes from a frequency analysis of resting state sensor space EEG data, for the analysis I use the code below, and then plot with singleplotER, if I first high pass filter my data at 1Hz during a prepocessing step, my plotting shows no activity
 until 35Hz then it spikes to a plateau for the rest of he higher frequencies, after a log transform I get a sine wave like shape. With no HP filter the data look like normal power spectrum data, why is the HP filter changing my data in this way?<br>
><br>
><br>
>     cfg = [];<br>
>     cfg.output = 'pow' ;<br>
>     cfg.method = 'mtmfft';<br>
>     cfg.pad = 'nextpow2';<br>
>     cfg.taper  = 'hanning';<br>
>     cfg.foilim = [3 50]; %change for appropriate range of frequencies<br>
> %     cfg.tapsmofrq = [2] ;<br>
>     cfg.keeptrials = 'no';<br>
>     %EEG_freq_segmented{i_run} = ft_freqanalysis(cfg, data_segmented_no_artifacts);<br>
>     %EEG_freq_segmented{i_run} = ft_freqanalysis(cfg, data_segmented);<br>
>   % freqfourier{i_run} = ft_freqanalysis(cfg, data_segmented_preproc_ICArm_no_artifacts);<br>
>     freqfourier= ft_freqanalysis(cfg, data_segmented_no_artifacts);<br>
>      %%%%%%log transform%%%%%%%%%%%%%<br>
>     cfg           = [];<br>
>     cfg.parameter = 'powspctrm';<br>
>     cfg.operation = 'log10';<br>
>     freqfourier    = ft_math(cfg, freqfourier);<br>
><br>
> Thank you,<br>
> Patrick<br>
><br>
> Confidentiality Notice: This message and any attachments are only for the intended recipient(s) and may contain confidential, privileged and/or protected health information. If you are not the intended recipient of this message, please: 1) be advised that
 unauthorized review, use, copying, disclosure, or distribution is strictly prohibited and may be unlawful; 2) notify the sender of the delivery by reply e-mail or contact Shirley Ryan AbilityLab's Privacy Officer at 312.238.0766 or privacyofficer@sralab.org;
 and 3) delete and destroy all copies of the message and its attachments. Thank you.<br>
><br>
> _______________________________________________<br>
> fieldtrip mailing list<br>
> <a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
> <a href="https://doi.org/10.1371/journal.pcbi.1002202">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</div>
</span></font>
<p><span style="font-size:11px;font-family: Calibri, Arial, Helvetica, sans-serif;"><span style="color: rgb(128, 128, 128);"><tt><em>Confidentiality Notice: This message and any attachments are only for the intended recipient(s) and may contain confidential,
 privileged and/or protected health information. If you are not the intended recipient of this message, please: 1) be advised that unauthorized review, use, copying, disclosure, or distribution is strictly prohibited and may be unlawful; 2) notify the sender
 of the delivery by reply e-mail or contact Shirley Ryan AbilityLab's Privacy Officer at 312.238.0766 or
</em></tt></span><tt><em><a href="mailto:privacyofficer@sralab.org"><span style="color: rgb(128, 128, 128);">privacyofficer@sralab.org</span></a></em></tt><span style="color: rgb(128, 128, 128);"><tt><em>; and 3) delete and destroy all copies of the message
 and its attachments. Thank you.</em></tt></span></span></p>
</body>
</html>