sccn / EEG-BIDS

21 stars 17 forks source link

Option to import a subset of tasks #216

Closed neuromechanist closed 2 months ago

neuromechanist commented 2 months ago

Currently, the pop_importbids function either imports all tasks or just one task. This situation works most of the time, except for large and diverse datasets with short tasks, requiring multiple tasks to be pulled in for source analysis (as an example).

A possible solution is to let bidstask be a cell array as well, and also change ~isempty(contains(fileList(iFile).name, taskList)) in the filterFiles function with contains(fileList(iFile).name, taskList).

This change should not brak the current workflow.