PreprocessingΒΆ
Preprocessing for the intonation project consists of extracting the high-gamma analytic amplitude over the entire recording block and manually marking bad channels and bad time segments.
Inspect raw ECoG for artifacts and large spikes. Mark bad time segments.
Find bad channels (channels with no activity or continuous spiking) and save to a MATLAB variable
bcs(use 0 indexing, because analysis then goes to Python)Output Hilbert (Chang lab recipe with 8 bands)
Get
ECxx_Bxxx_hg_100Hzby taking the average of 8 bands and downsampling to 100HzGet
ECxx_Bxxx_log_hg_100Hzby first taking the log of the each of the 8 bands, averaging, and then downsampling.- Save
ECxx_Bxxx.matfile with: ECxx_Bxxx_hg_100HzECxx_Bxxx_log_hg_100HzbcsbadTimeSegments(loaded from GUI-generated Artifacts/badTimeSegments.mat)
- Save