You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Event annotations in the MFF file format can be complex. For example, when performing an ERP experiment with stimulus presentation, a single trial spec event can contain many fields:
These fields are important. Say you want to average all trials with response time < 100 ms. If you want to do this programmatically, you would need to be able to parse the rtim key for each event.
mffpy is able to thoroughly parse event track XML files (https://github.com/BEL-Public/mffpy/blob/master/mffpy/xml_files.py), but we are lacking an API to easily extract events based on a certain key value or criteria. If you take a look at worfklows/erp/erp.py, you will see we do some very light event parsing based on the event code. This is a bit unwieldy to have in a script, and could get even more unwieldy if one were to implement some more complex logic.
I propose adding an event extraction module in eegwlib with some helpful functions that utilize mffpy event parsing to extract events based on certain criteria.
The text was updated successfully, but these errors were encountered:
Event annotations in the MFF file format can be complex. For example, when performing an ERP experiment with stimulus presentation, a single trial spec event can contain many fields:
These fields are important. Say you want to average all trials with response time < 100 ms. If you want to do this programmatically, you would need to be able to parse the
rtim
key for each event.mffpy
is able to thoroughly parse event track XML files (https://github.com/BEL-Public/mffpy/blob/master/mffpy/xml_files.py), but we are lacking an API to easily extract events based on a certain key value or criteria. If you take a look atworfklows/erp/erp.py
, you will see we do some very light event parsing based on the eventcode
. This is a bit unwieldy to have in a script, and could get even more unwieldy if one were to implement some more complex logic.I propose adding an event extraction module in
eegwlib
with some helpful functions that utilizemffpy
event parsing to extract events based on certain criteria.The text was updated successfully, but these errors were encountered: