Skip to content

BIDS electrodes.tsv import leads to incorrect chanlocs when channels.tsv and electrodes.tsv include different extra entries #236

@kacross

Description

@kacross

When loading BIDS folder to a study the channels are incorrect when the electrodes.tsv and channels.tsv are different.

Extra channels in EEG data that are not in electrodes.tsv (e.g. audio input, auxiliary response device) in combination with extra electrode entries that are not in channels.tsv (e.g. CZ=ref electrode location from 3D cap photo) leads to inappropriate assignment of extra channels in chanlocs due to assumed equivalent row indexing of electrodes.tsv and channels.tsv (lines 52-59 of bids_importchanlocs.m). See attached example where CZ=ref electrode location is included in electrodes.tsv and channels.tsv has different extra channels for audio and auxiliary response device inputs. [attached as .txt as git doesn't allow me to include .tsv files]

Behavior is different when loading the individual file using pop_fileio. This appears to correctly import the same example by matching electrode and channel names (lines 282 - 300).

sub-CM40_task-reaching_run-1_electrodes.txt
sub-CM40_task-reaching_run-1_channels.txt

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions