# Check https://rave.wiki for additional pipeline installation
if (FALSE) {
# ---- Recommended usage --------------------------------------------
pipeline <- ravepipeline::pipeline("wavelet_module")
pipeline$set_settings(
project_name = "demo",
subject_code = "DemoSubject",
precision = "float",
pre_downsample = 4,
kernel_table = ravetools::wavelet_cycles_suggest(
freqs = seq(1, 200, by = 1)),
target_sample_rate = 100
)
# Internally, the above pipeline includes this function call below
# ---- For demonstration use, do not call this function directly ----
# Original sample rate: 2000 Hz
# Downsample by 4 to 500 Hz first - 250 Hz Nyquist
# Wavelet at each 1, 2, ..., 200 Hz
# The number of cycles log-linear from 2 to 20
# The wavelet coefficient sample rate is 500 Hz
# Further down-sample to 100 Hz to save storage space
run_wavelet(
subject = "demo/DemoSubject",
electrodes = c(13:16, 2),
pre_downsample = 4,
freqs = seq(1, 200, by = 1),
cycles = c(2, 20),
target_sample_rate = 100
)
}
Run the code above in your browser using DataLab