rERP | EEG visualisation | EEG Simulations | BIDS pipeline | Decode EEG data | Statistical testing |
---|---|---|---|---|---|
A toolbox for visualizations of EEG/ERP data and Unfold.jl models.
Based on three libraries
- Unfold - for performing deconvolution regression;
- Makie - very flexible visualisation library (Maki-e means "visualisation" on Japanese);
- Algebra of Graphics - Makie-based visualisation library, allowing flexible mapping.
This grants users high performance, and highly customizable plots.
We currently support 9 general ERP plots:
- ERP plots
- Butterfly plots
- Topography plots
- Topography time series
- ERP grid
- ERP images
- Channel images
- Parallel coordinates
- Circular topoplots
And 2 Unfold-specific plots:
- Design matrices
- Splines plot
Click to expand
The recommended way to install julia is juliaup. It allows you to, e.g., easily update Julia at a later point, but also to test out alpha/beta versions etc.
TLDR: If you don't want to read the explicit instructions, just copy the following command
AppStore -> JuliaUp, or winget install julia -s msstore
in CMD
curl -fsSL https://install.julialang.org | sh
in any shell
using Pkg
Pkg.add("UnfoldMakie")
using UnfoldMakie
using CairoMakie # backend
using Unfold, UnfoldSim # Fit / Simulation
data, evts = UnfoldSim.predef_eeg(; noiselevel = 12, return_epoched = true)
data = reshape(data, 1, size(data)...) # simulate a single channel
times = range(0, step = 1 / 100, length = size(data, 2))
m = fit(UnfoldModel, @formula(0 ~ 1 + condition), evts, data, times)
plot_erp(coeftable(m))
Contributions are very welcome. These can be typos, bug reports, feature requests, speed improvements, new solvers, better code, better documentation.
You are very welcome to submit issues and start pull requests!
- We recommend to write a Literate.jl document and place it in
docs/literate/FOLDER/FILENAME.jl
withFOLDER
beingHowTo
,Explanation
,Tutorial
orReference
(recommended reading on the 4 categories). - Literate.jl converts the
.jl
file to a.md
automatically and places it indocs/src/generated/FOLDER/FILENAME.md
. - Edit make.jl with a reference to
docs/src/generated/FOLDER/FILENAME.md
.
If you use these visualizations, please cite:
Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) β Project-ID 251654672 β TRR 161β / βGefΓΆrdert durch die Deutsche Forschungsgemeinschaft (DFG) β Projektnummer 251654672 β TRR 161.
Funded by Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under GermanyΒ΄s Excellence Strategy β EXC 2075 β 390740016