[Mne_analysis] BIDS dataset issue - CTF

Stout, Jeff (NIH/NIMH) [C] jeff.stout at nih.gov
Thu Nov 19 17:30:22 EST 2020
Search archives:

        External Email - Use Caution        

I have downloaded the MOUS MEG dataset in BIDS format from the Donders institute.  If I try to get the head transform using mne_bids, it throws an error on the channel name matching (see below).  This has to do with how MNE reads the CTF MEG channel names.  All of the channels have a number after the channel name (I was told this is the site specific serial number).  This naming convention is different from that in the bids channels.tsv file.



import mne_bids
import os
os.chdir('/data/MOUS/BIDS')

bidspath=mne_bids.BIDSPath(subject='A2002',
                           task='rest',
                           root='/data/MOUS/BIDS',
                           datatype='meg')
mne_bids.get_head_mri_trans(bidspath)



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.

356 channels in tsv file: "/data/MOUS/BIDS/sub-A2002/meg/sub-A2002_task-rest_channels.tsv"

 --> ['UDIO001', 'UPPT001', 'UPPT002', 'SCLK01', 'BG1', 'BG2', 'BG3', 'BP1', 'BP3', 'BR1', 'BR2', 'BR3', 'G11', 'G12', 'G13', 'G22', 'G23', 'P11', 'P12', 'P13', 'P22', 'P23', 'Q11', 'Q12', 'Q13', 'Q22'

...................



356 channels in raw file: "sub-A2002_task-rest_meg.ds"

 --> ['UDIO001', 'UPPT001', 'UPPT002', 'SCLK01-177', 'BG1-4304', 'BG2-4304', 'BG3-4304', 'BP1-4304', 'BP3-4304', 'BR1-4304', 'BR2-4304', 'BR3-4304', 'G11-4304', 'G12-4304', 'G13-4304', 'G22-4304', 'G23-4304', 'P11-4304', 'P12-4304', 'P13-4304', 'P22-4304', 'P23-4304', 'Q11-4304', 'Q12-4304', 'Q13-4304', 'Q22-4304', 'Q23-4304', 'R11-4304', 'R12-4304', 'R13-4304', 'R22-4304', 'R23-4304', 'MLC11-4304', 'MLC12-4304', 'MLC13-4304', 'MLC14-4304', 'MLC15-4304'




Not sure if its necessary, but I am using MNE version 0.21 on redhat 8.



Thank you,

Jeff Stout [C]
Computer Systems Analyst
NIH/NIMH
Building 10 Room B1D65A
10 Center Dr.
Bethesda, MD 20892-1059
301-402-2362
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201119/b92b3dd2/attachment.html 


More information about the Mne_analysis mailing list