[Mne_analysis] No Events from mne_brain_vision2fiff

Alexandre Gramfort gramfort at nmr.mgh.harvard.edu
Mon Jul 30 02:47:31 EDT 2012
Search archives:

hi Christian,

it would be great if you could send us a pull-request to add such info
to the doc:

http://www.martinos.org/mne/manual/convert.html#importing-brainvision-eeg-data

the corresponding doc file is:

https://github.com/mne-tools/mne-python/blob/master/doc/source/manual/convert.rst#importing-brainvision-eeg-data

thanks
Alex

On Mon, Jul 30, 2012 at 12:44 AM, Christian Brodbeck <cmb650 at nyu.edu> wrote:
> Thanks Matti! That solved the problem.
>
> -Christian
>
>
> On Jul 29, 2012, at 13:57 , Matti Hamalainen wrote:
>
>>
>> Hi Christian,
>>
>> Investigation of the code revealed that mne_brain_vision2fiff handles only events which are marked "Stimulus" and whose number is given by S<number>. In your file, the events are obviously user responses. The easy solution is to replace in R0026_eref3h.vmrk the word "Response" with "Stimulus" and "R128" with "S128". You can also simply change "Response,R" to "Stimulus,S".
>>
>> I hope this helps.
>>
>> - Matti
>>
>> On Jul 29, 2012, at 6:45 AM, Christian Brodbeck wrote:
>>
>>> Hello,
>>>
>>> We are trying to convert brain vision EEG files using mne_brain_vision2fiff, but the resulting fiff files do not contain any events. This is the command I run:
>>>
>>>
>>>    $ mne_brain_vision2fiff --header R0026_eref3h.vhdr --out R0026_eref3h.fif
>>>
>>>    mne_brain_vision2fiff version 1.7 compiled at Jan  7 2011 02:26:21
>>>
>>>    header  file           : R0026_eref3h.vhdr
>>>    output file            : R0026_eref3h.fif
>>>
>>>    Read header file : R0026_eref3h.vhdr
>>>    Read header file : R0026_eref3h.vmrk
>>>
>>>    nchan           = 4
>>>    sfreq           = 500.0  Hz
>>>    raw data file   = R0026_eref3h.eeg
>>>    raw binary      = true
>>>    raw binary type = 16
>>>    raw endian      = little
>>>    raw nsamp       = -1
>>>    nevent          = 0
>>>    eXimia          = false
>>>
>>>    Data will be split into <= 1907.3 MByte pieces
>>>
>>>    Writing header to R0026_eref3h_raw.fif ... [done]
>>>    Writing raw data to R0026_eref3h_raw.fif ... Number of samples deduced from the raw file size : 628790
>>>    [done]
>>>    Wrote 1...628790 of 628790 samples total to R0026_eref3h_raw.fif
>>>    Adding directory to R0026_eref3h_raw.fif...[done]
>>>
>>>
>>> Eeglab finds the events so I assume the brain vision files are ok. Is this a known problem, or does anyone have an idea how to fix this? The files are small so if it helps I could upload them.
>>>
>>> Thanks
>>>
>>> -Christian
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Mne_analysis mailing list
>>> Mne_analysis at nmr.mgh.harvard.edu
>>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>>>
>>>
>>
>>
>>
>> ---------
>>
>> Matti Hamalainen, Ph.D.
>> Athinoula A. Martinos Center for Biomedical Imaging
>> Massachusetts General Hospital
>>
>> msh at nmr.mgh.harvard.edu
>> mhamalainen at partners.org
>>
>>
>>
>>
>>
>>
>>
>> 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




More information about the Mne_analysis mailing list