[Mne_analysis] reading eeg part of eeg-fMRI data

Sammi Chekroud sammi.r.chekroud at gmail.com
Tue Aug 29 12:45:40 EDT 2017
Search archives:

Is there any way of creating a montage given a set of coordinates? After a
fair amount of searching I cant seem to find a way of making any kind of
readable montage file that's useful. With electrode coordinates in a .txt
file, and reading with mne.channels.read_montage(), it gives a super
distorted layout (see pic)

On 29 August 2017 at 10:45, Sammi Chekroud <sammi.r.chekroud at gmail.com>
wrote:

> It's probably that the montage it's reading is wrong - there are some
> different names in this eeg-fMRI setup (e.g. electrodes called CB1). That
> said, wrote some code to convert the cdt file into .set in eeglab, then
> read that into mne - I don't have any problems reading the data that way
> now, so not sure what's going on
>
> On 29 August 2017 at 10:29, Jaakko Leppakangas <jaeilepp at gmail.com> wrote:
>
>> The problem is probably that the event_offset becomes negative, which
>> means that the number of channels or the event offset is not read correctly
>> from the header. The cnt reader of MNE-python uses specs defined here
>> http://paulbourke.net/dataformats/eeg/. I've also come across cnt files
>> that don't really conform to those. Can you share the file? I could take a
>> look at some point.
>>
>> On Tue, Aug 29, 2017 at 12:00 PM, Sammi Chekroud <
>> sammi.r.chekroud at gmail.com> wrote:
>>
>>> oops, sorry, that was actually a typo on my part (emailing from laptop,
>>> code on a workstation). It's actually fid.seek, not seet... sorry about that
>>>
>>> On 29 August 2017 at 09:58, Sammi Chekroud <sammi.r.chekroud at gmail.com>
>>> wrote:
>>>
>>>> hey,
>>>>
>>>> thanks for the reply. I'm using the dev, but I haven't pulled in a
>>>> while. I'll give this a go and see whats going on
>>>>
>>>> Cheers,
>>>> Sammi
>>>>
>>>> On 29 August 2017 at 09:51, Jaakko Leppakangas <jaeilepp at gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Sammi,
>>>>>
>>>>> which version of MNE are you using? Looks like your code has a weird
>>>>> typo that doesn't exist in the code base (
>>>>> https://github.com/mne-tools/mne-python/blob/maint/0.14/mne
>>>>> /io/cnt/cnt.py#L231).
>>>>>
>>>>> Maybe updating the version will fix it.
>>>>>
>>>>> -Jaakko
>>>>>
>>>>> On Tue, Aug 29, 2017 at 11:35 AM, Sammi Chekroud <
>>>>> sammi.r.chekroud at gmail.com> wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I'm trying to read in some EEG data collected from an eeg-fMRI task
>>>>>> and having a couple of problems.
>>>>>>
>>>>>> Firstly, we're acquiring data using Curry 8. I've converted the
>>>>>> native .cdt data into .cnt using their software, and it outputs a
>>>>>> file_path.cnt and file_path.cnt.dpa file together. Events are contained in
>>>>>> the .cnt file though as you can read this data into EEGlab without a
>>>>>> problem and it detects triggers.
>>>>>>
>>>>>> I'm trying to read it into MNE and I get the following error:
>>>>>>
>>>>>> File "/home/sammirc/mne-python/mne/io/cnt/cnt.py", line 231 in
>>>>>> _get_cnt_info
>>>>>> fid.seet(event_offset)
>>>>>>
>>>>>> IOError: [Errno 22] Invalid Argument
>>>>>>
>>>>>> not sure what this means? Is it not detecting events in the data, so
>>>>>> getting an error? The events are definitely there as two other people also
>>>>>> checking this data have been able to read it into matlab.
>>>>>>
>>>>>> I wondered if it could be because of the montage in use (easycap-M1)
>>>>>> when it could be inaccurate. I got the montage file (both .mnt and .xml)
>>>>>> and tried to create a montage ( mne.channels.read_montage ) but this also
>>>>>> doesnt work as neither format is supported...
>>>>>>
>>>>>> Any help on this would be pretty great as we're trying to check data
>>>>>> quality of a new system.
>>>>>>
>>>>>> Cheers,
>>>>>> Sammi
>>>>>>
>>>>>> _______________________________________________
>>>>>> Mne_analysis mailing list
>>>>>> Mne_analysis at nmr.mgh.harvard.edu
>>>>>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>>>>>>
>>>>>>
>>>>>> The information in this e-mail is intended only for the person to
>>>>>> whom it is
>>>>>> addressed. If you believe this e-mail was sent to you in error and
>>>>>> the e-mail
>>>>>> contains patient information, please contact the Partners Compliance
>>>>>> HelpLine at
>>>>>> http://www.partners.org/complianceline . If the e-mail was sent to
>>>>>> you in error
>>>>>> but does not contain patient information, please contact the sender
>>>>>> and properly
>>>>>> dispose of the e-mail.
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Mne_analysis mailing list
>>>>> Mne_analysis at nmr.mgh.harvard.edu
>>>>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>>>>>
>>>>>
>>>>> The information in this e-mail is intended only for the person to whom
>>>>> it is
>>>>> addressed. If you believe this e-mail was sent to you in error and the
>>>>> e-mail
>>>>> contains patient information, please contact the Partners Compliance
>>>>> HelpLine at
>>>>> http://www.partners.org/complianceline . If the e-mail was sent to
>>>>> you in error
>>>>> but does not contain patient information, please contact the sender
>>>>> and properly
>>>>> dispose of the e-mail.
>>>>>
>>>>>
>>>>
>>>
>>> _______________________________________________
>>> Mne_analysis mailing list
>>> Mne_analysis at nmr.mgh.harvard.edu
>>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>>>
>>>
>>> The information in this e-mail is intended only for the person to whom
>>> it is
>>> addressed. If you believe this e-mail was sent to you in error and the
>>> e-mail
>>> contains patient information, please contact the Partners Compliance
>>> HelpLine at
>>> http://www.partners.org/complianceline . If the e-mail was sent to you
>>> in error
>>> but does not contain patient information, please contact the sender and
>>> properly
>>> dispose of the e-mail.
>>>
>>>
>>
>> _______________________________________________
>> Mne_analysis mailing list
>> Mne_analysis at nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>>
>>
>> The information in this e-mail is intended only for the person to whom it
>> is
>> addressed. If you believe this e-mail was sent to you in error and the
>> e-mail
>> contains patient information, please contact the Partners Compliance
>> HelpLine at
>> http://www.partners.org/complianceline . If the e-mail was sent to you
>> in error
>> but does not contain patient information, please contact the sender and
>> properly
>> dispose of the e-mail.
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20170829/f8504e52/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: figure_1.png
Type: image/png
Size: 71778 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20170829/f8504e52/attachment-0001.png 


More information about the Mne_analysis mailing list