sccn / EEG-BIDS

23 stars 17 forks source link

build EEG.BIDS on import and add EEG.task to export #68

Closed cll008 closed 3 years ago

cll008 commented 3 years ago

Here imported data will have a EEG.BIDS structure. EEG.task has also been added and is used for the filename when exporting.

I don't see a good way to build eInfo on import, any suggestions (or maybe this is not necessary)?

dungscout96 commented 3 years ago

Thanks Clement. I think eInfo can be built if user select replacing EEG.event with bids events.tsv. Otherwise it can be empty. Also, why are we doing task(6:end)? EEG.task = task(6:end); %TODO

cll008 commented 3 years ago

Hi Young, handling eInfo like that makes sense to me too. I wanted to drop the task- prefix for EEG.task (in case we run into any task-task-xyz issues), but thought it better to keep the task variable throughout the script consistent with task = ['task-' bidsFolder] as well as the std_editset.m task input which is formatted as task-xyz.

dungscout96 commented 3 years ago

I see, thanks Clement. The code looks good to me now. Merged and closed this PR.