-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Size of electrodes vs size of channels #701
Comments
Also, I am a bit confused why in the text of the error it says |
I assume this error message was just copied from the (older)
Absolutely, this is clearly a bug. For the record, we're currently in the process of relaxing similar constraints in other contexts as well, see e.g. #698, which was merged today, but doesn't address iEEG so far |
yes, electrodes.tsv can have a different number of entries than channels and raw data (channels and raw data should be identical) see also bids-standard/bids-specification#667 |
Okay I think we should adapt the error. That is, I am PRing this up rn. |
No, it is okay for |
furthermore, channels.tsv does not have to be a subset of electrodes.tsv Imagine the case:
Some recording equipment types let you do this during recording, so I wouldn't even consider it a "derivative" |
Wait sorry I might not be understanding correctly. How can there be "coordinate" data for channels that are not in the raw data? How can one do |
Related: #485 |
@Immiora I would add the electrodes used to get these channels to |
Do not think this is the intended use. From BIDS Specification Docs: But it looks like the issue has been addressed. Thanks! |
Mh, I always understood these files to contain all kinds of electrodes, including ECG, EOG, etc. --> especially because these are often recorded using the same amplifier as the (i)EEG electrodes. But I agree with you that the spec text makes it seem otherwise. Perhaps that should/could be fixed. Anyways, glad your issue has been fixed. |
Currently, mne-bids requires that the number of entries in
electrodes.tsv
and the rawdatafile.eeg
are the same:RuntimeError: Channels do not correspond between raw data and the channels.tsv file. For MNE-BIDS, the channel names in the tsv MUST be equal and in the same order as the channels in the raw data. 80 channels in tsv file: ".../electrodes.tsv" ... 128 channels in raw file: "('.../ieeg.eeg',)" ...
However, this is often the case for iEEG. See example here with 97 iEEG electrodes and 98 channels in the data.
According to iBIDS guidelines,
electrodes.tsv
contains iEEG positions, butchannels.tsv
contains all channels on the recording system, not only iEEG, but for example, EOG, ECG, EMG, etc. The number of channels inchannels.tsv
therefore matches the number of channels in thedatafile.eeg
, but not inelectrodes.tsv
.Can this requirement be relaxed or what workaround would you recommend? We would like to supply EOG/ECG/EMG recordings with the dataset but they do not have locations in
electrodes.tsv
The text was updated successfully, but these errors were encountered: