Initialize NeuroAnalyzer
using NeuroAnalyzer
using Random
NeuroAnalyzer.progress_bar = false
eeg = import_edf("files/eeg/eeg.edf")
keep_channel!(eeg; ch = "eeg")
# filtered 0.5-35 Hz (removes the DC offsets and the line noise of the raw
# recording)
NeuroAnalyzer.filter!(eeg;
ch = "all",
fprototype = :butterworth,
ftype = :hp,
cutoff = 0.5,
order = 4)
NeuroAnalyzer.filter!(eeg;
ch = "all",
fprototype = :fir,
ftype = :lp,
cutoff = 35,
bw = 10)
load_locs!(eeg; file_name = "files/locs/standard-10-20-cap19-elmiko.locs")
# 60-second segment
eeg = crop(eeg; seg = (100, 160))