Trying to import a .els channel file, I found that the function in_channel_cartool_els.m does not recognize appropriately the different electrode clusters (it does not skip electrode position to reach the next cluster, and thus misinterprets the positions of the first cluster as new clusters headers).
Attached in an example .els file (just change its extension to “els”), and the changed code (changes were mainly done on lines 107-109 and 135-145 of the new code file), which seems to work for me.
I modified the reading function to take into consideration the sensor type and display the groups in a nicer way.
I considered that type=1 means “depth electrode” and type=2 means “ECoG”.
Is this correct?
FYI: We improved significantly the tools available in Brainstorm for processing and visualizing SEEG and ECOG data, including new options for volume coregistration. They are now documented in a new tutorial: http://neuroimage.usc.edu/brainstorm/Tutorials/Epileptogenicity