Talk:Eprime
Rules of the Talk Page:
- Always sign your name after your comments. Use the two dashes "--" followed by the four tildes “~~~~” wiki syntax. See Help:Signatures.
- Start a new discussion with a ==level 2 heading== at the bottom of the page (or use the “+” tab found at the top of the page)
- Indent replies with colons (:) at the beginning of the line. For each subsequent response add a colon (i.e. second response starts with ::)
--Dev Sarma 18:55, 29 June 2009 (UTC)
Brief summary of how to import event files into EEGLAB event structure
the comments I provide are usable for any text events files that has a normal row & columns format
assuming you have at least some events that occur both in the eeglab file, and in the e-prime events file....
1. import an excel file version with all the eprime event information you need.
2. 'make sure you can call each cell and the information in it as you wish [once you have imported the information from the eprime events files]
3. find a "marker" event and make sure you can count it, say, to find the 456th or 999th or whatever
4. find the same marker in the event type field in the event information inside the EEG structure. Be sure that you can match them, finding the 999th in both cases, thus assuring a match.There are of course multiple other ways you can make sure you import the correct information from the e-prime events file, and then load it as an "event" in the eeglab event strucure.
5. use the information in the cells that are related to that particular trial, decide what kind of trial it is, and then assign it an event type label which will be used in eeglab event information.
6. use the eeglab function addnewevents which requires a list of times and a list of eventlabels For step 6, the times for addnewevents function would the time (either seconds or samples) of the "matching" EEG.event type label that already should exist in the eeglab file before you import the eprime event information. Alternatively, you put the the new event types where you choose, with the times would be at some other time, probably in relation to the original time point.
7. you're done, with new event markers based on your eprime events information
8. please note that it's possible to match the time code to the nearest EEGLAB time sample, but matching an event to an event is probably safest.
9. Other thoughts: Please note that you could also add other event fields that hold information from your eprime events file, but I would advise attempting to be parsimonious in adding of new events, and not to use event fields other than Type and the 2 or 3 other minimal fields. If you add the new category labels based on eprime events infro into event Type, then you can epoch on these new kinds of Event Types. Otherwise, if you make a new Event Field, you cannot directly epoch on this new information, unless you repopulate Event Type with the specific field.
--Tarik Bel-Bahar137.110.244.25 19:54, 13 December 2011 (UTC)