sam81 / BrainWave.jl

Julia functions to process electroencephalographic (EEG) recordings
MIT License
9 stars 3 forks source link

Anything like topoplot in this package? #1

Open AsimHDar opened 4 years ago

AsimHDar commented 4 years ago

Hi! I was going through the two EEG packages to find something that resembles the MATLAB function topoplot, which "plots a topographic map of an EEG or MEG field as a 2-D circular view (looking down at the top of the head) using interpolation on a fine cartesian grid"

I wasn't sure how to make EEG.jl do that, and I was wondering if there was something like this that you worked on.

sam81 commented 4 years ago

Hi unfortunately there is no function to do that in BrainWave.jl and for lack of time I don't plan on adding it in the foreseeable future, sorry. If you want to try to create your own function to do a topoplot these may be useful: https://stackoverflow.com/questions/15361143/how-to-fit-result-of-matplotlib-pyplot-contourf-into-circle http://i-linkz.net/wordpress/index.php/2018/01/05/topographic-plot/ note that you can use PyCall to run Python code from Julia, so if you find a solution in Python you won't necessarily have to convert the code to Julia.

Tokazama commented 4 years ago

@ElectronicTeaCup Unfortunately, I have a bunch of writing to catch up on right now, but if you can wait a couple days feel free to ping me and I can work with you on getting this up and running.

AsimHDar commented 4 years ago

Thanks for the reply @sam81 and links.

@Tokazama That sounds awesome! How difficult do you think the task is exactly? I am very new to both M/EEG analysis and Julia in general. Are you thinking of a line by line port, or something more sophisticated?

Tokazama commented 4 years ago

Honestly, I'm not entirely sure how difficult it will be to get something that looks like that. If you look at the countour documentation for Makie you can get a good idea of where to begin. Here's what I think needs to be figured out (in order of priority):

I have a local project called NeuroPlots that I was going to push to JuliaNeuroscience once VizCon2 took place and I could finalize some more stuff. But I could open an empty repo now where we could discuss the granular details of this instead of bombarding sam81 with notifications for our messages.

AsimHDar commented 4 years ago

@Tokazama Sure thing! Haha, you never know, sam81 might get inspired too (⌐■_■)