Closed Prasenjit1989 closed 3 years ago
Can you replicate this with our fNIRS motor task sample data? If not, can you provide a small dataset that does replicate? Please also provide a minimal working example formatted as code, that we could copy and paste to replicate the bug.
I replicated the https://mne.tools/stable/auto_tutorials/preprocessing/plot_70_fnirs_processing.html?highlight=fnirs tutorial for fNIRS motor task data and that is working fine. Actually, our data-set is recorded with earlier version of NIRStar version 14(something like). I contacted the admin of mne as I could not load the data, and I was suggested to made some correction (some fields are modified in .hdr file) in the header file to load the data (also done the preprocessing, etc). Now, after epoching, I tried with topoplot, but I am getting such figures. For your convenience, I have attached a sample dataset. Thanks. 2015-07-28_004.zip
Hi @Prasenjit1989,
Currently MNE only supports NIRx measurements recorded with NIRStar version 15 and above, so 14 is not supported. I suggested a hack to you to get the data to load, but it seems this did not load the locations correctly. Do the positions of optodes also look incorrect in the 3d head imagine when you run the fNIRS demo?
I won't be able to add support for version 14 files. And based on this report it seems that simply forcing the data to load leads to incorrect sensor locations. You could either convert your data to the SNIRF format and load that, or you could add support for V14 to the MNE reader.
Hi Robert, Thanks for your response. I tried 3D head plot, but getting the following error:
_Traceback (most recent call last):
File "fnirs_name.py", line 111, in
Note: 2015-07-10_003 is data folder name.
I think optode positions are stored in _probeInfo.mat file. I checked the source and detector reading section in nirx.py file and also checked channel location in the epochs (epochs.info[chs]). But, I am clueless where the shifting of optode position is taking place. Anyway, thank you so much.
Hey mate, sorry but NIRx version 14 files arent supported, so its not surprising that the data loads incorrectly. I wont be able to write a new reader for these files, but would be happy to review a PR if you update the reader code. Alternatively you could convert the data to the SNIRF format (probably you would need to go NIRx -> .nirs -> .snirf). If you get this process working please let us know so we can recommend it to others who have old files.
Hi, Previously we created _probeInfo.mat file using nirsLab. Now, we have created it using NIRSite, and it is working. Anyway, thank you for your suggestions.
Glad that there was a suitable workaround!
Describe the bug
Electrode position in topomap for fNIRS data are coming out of head. I have added one image of that. Kindly look into this.