[Eeglablist] Merging two datasets *after* appending eventlists

Makoto Miyakoshi mmiyakoshi at ucsd.edu
Wed May 10 09:48:15 PDT 2017


Dear Grusha,

Sorry for belated response.

> error 275: Reference to non-existent filed 'urevent'.

It seems you have inconsistency problem in urevent.
To solve this, add the following line

EEG = eeg_checkset(EEG, 'makeur')

This makes EEG.urevent so that you will not receive the error message.

Makoto


On Sun, Feb 26, 2017 at 5:47 PM, Grusha Prasad <grusha.prasad at gmail.com>
wrote:

> Hi Makoto!
>
> That was what I wanted to do. I imported event information seperately,
> then I interpolated the channels and followed the pipeline I mentioned
> earlier. Then, when I tried merging the files, it threw the error 275:
> Reference to non-existent filed 'urevent'. So for now, I decided to
> interpolate the channels -> merge the files -> import the event information
> for the merged file -> export it to a text file -> make the necessary
> changes -> associate this new eventlist with the merged .set file.
>
> The reason I want to export it to a text file and then make the changes
> instead of directly editing the event structure is because the events I
> need to delete are at different points in the file for every participant
> (and are not uniquely marked) and so I will need to integrate information
> from the csv file outputted by the stimulus presentation software. Hence
> editing the text file seemed a more straightforward way of doing it - since
> it would easier to eyeball the structure to make sure I wasn't messing up.
>
> So while I've found a work around, I still don't understand why I am
> unable to merge files after importing event info (unless I comment out the
> lines 254 to 294..)
>
> Does this make sense?
>
> Thank you!
> Grusha.
>
> On Fri, Feb 17, 2017 at 9:02 PM, Makoto Miyakoshi <mmiyakoshi at ucsd.edu>
> wrote:
>
>> Dear Grusha,
>>
>> Sorry I still don't understand what you mean. If you have split .set
>> files with split event info, I would suggest import event separately and
>> merge them, then export event info. Or Am I still misunderstanding you??
>>
>> By the way here is an example to directly edit event structure. I wonder
>> if you want to challenge it. If it works for you, it is much more
>> straightforward.
>>
>> https://sccn.ucsd.edu/wiki/Makoto%27s_useful_EEGLAB_code#How
>> _to_build_EEG_structure_.2801.2F30.2F2017_updated.29
>>
>> Makoto
>>
>> On Sat, Feb 11, 2017 at 3:59 PM, Grusha Prasad <grusha.prasad at gmail.com>
>> wrote:
>>
>>> Hi Makoto!
>>>
>>> Sorry if I wasn't being clear - when I said append eventlist, I meant
>>> creating an event list and associating it with the EEG file. Basically what
>>> the  pop_creabasiceventlist is doing. Is there a way the merge dataset
>>> operation does this without having to use that pop function first?
>>>
>>> And the reason I want to create the eventlist and export it to a
>>> textfile is so that I can edit that event list (to delete specific events
>>> that occur at different points for each participant - because of a coding
>>> error wile setting up my experiment) and then append it back to the EEG
>>> file (by using the import event list from text file GUI option)
>>>
>>> Does this make sense? Or did I misunderstand your question?
>>>
>>> Thank you!!
>>> Grusha.
>>>
>>> On Thu, Feb 9, 2017 at 10:18 PM, Makoto Miyakoshi <mmiyakoshi at ucsd.edu>
>>> wrote:
>>>
>>>> Dear Grusha,
>>>>
>>>> > after appending eventlists on both the sets
>>>>
>>>> First of all, why do you need to do it manually? I thought EEGLAB merge
>>>> dataset operation can do it well (slow though). Please tell me more about
>>>> this part.
>>>>
>>>> Makoto
>>>>
>>>> On Wed, Feb 8, 2017 at 7:19 AM, Grusha Prasad <grusha.prasad at gmail.com>
>>>> wrote:
>>>>
>>>>> Hi!
>>>>>
>>>>> I've been trying to merge two datasets using pop_mergeset() after
>>>>> appending eventlists on both the sets and I get this error at line 275:
>>>>> Reference to non-existent filed 'urevent'. I read through the thread
>>>>> "Merging two datasets with unequal number of events" and from what I
>>>>> gathered, it seemed like the issue had to do with eventlist somehow
>>>>> changing the 'urevent' structure. While there are fewer events in my event
>>>>> structure when compared to my urevent structure (because while binning it,
>>>>> I am ignoring my 'distractor' trigger), this doesn't seem to be the problem
>>>>> - because the problem persists even when I try merging sets before I bin
>>>>> them (so 'urevent' has the same number of events as the 'event' structure).
>>>>>
>>>>> Though the 'urevent' isn't missing, I tired the proposed solution in
>>>>> the thread and ran
>>>>>
>>>>> EEG = eeg_checkset(EEG, 'makeur')
>>>>>
>>>>> This did not work either. So I went in to the script for
>>>>> pop_mergeset() and commented out lines 254 to 294 (the part which seems to
>>>>> be trying to concatenate the urevents). This seems to do the trick. The
>>>>> files merge and the event structure has the right number of events.
>>>>> However, as expected, the new EEG structure has the urevents only from the
>>>>> first set. From the little I understand though, it seems to me like this
>>>>> wouldn't be a problem because all further steps (Artifact detection and
>>>>> computing averaged ERPs) seem to use just the event structure. Is this
>>>>> true? Or will there be any problems with doing this that I am missing?
>>>>>
>>>>> Thank you!
>>>>> Grusha.
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
>>>>> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.uc
>>>>> sd.edu
>>>>> For digest mode, send an email with the subject "set digest mime" to
>>>>> eeglablist-request at sccn.ucsd.edu
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Makoto Miyakoshi
>>>> Swartz Center for Computational Neuroscience
>>>> Institute for Neural Computation, University of California San Diego
>>>>
>>>
>>>
>>
>>
>> --
>> Makoto Miyakoshi
>> Swartz Center for Computational Neuroscience
>> Institute for Neural Computation, University of California San Diego
>>
>
>


-- 
Makoto Miyakoshi
Swartz Center for Computational Neuroscience
Institute for Neural Computation, University of California San Diego
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20170510/8313eb9f/attachment.html>


More information about the eeglablist mailing list