Implementing subject-specific EEG reference in mne-bids-pipeline

I’m new to using the mne-bids-pipeline and am impressed by its refinement and ease of use. However, I have a question regarding configuration files for our EEG research with cochlear implant (CI) patients.

Our study involves participants with CIs on one side and control subjects. We need to set the eeg_reference configuration differently based on the subject:

  • TP9 if CI is on the right side
  • TP10 if CI is on the left side
  • TP9, TP10 for control subjects

Is it possible to implement subject-specific configurations within the mne-bids-pipeline? For example, could we use a sub-config file within each subject’s folder to specify individual settings?

This feature would be crucial for us to adopt the pipeline for our study. Any guidance on how to achieve this would be greatly appreciated.

Thank you in advance for your help!
Tagging @richard because I saw you work a lot on the pipeline.

Hello @librethinker, I’mm very happy to hear you’re trying to adopt using the pipeline! I can see multiple possible approaches to processing your data, but I’ll be very busy until the end of the week and won’t be able to provide much help before the weekend. Hence, I’m tagging @agramfort, @drammock and @larsoner who I’m sure will have useful input and ideas, too!

Best wishes,
Richard

My current solution is rereferencing before running the mne_bids_pipeline and then using eeg_reference = [ ]

That seems like a reasonable workaround at least!

We have had some discussion of subject-specific options here, feel free to read and/or comment!