Bids-filter-file as input in a BIDS app

Hi, for our rsHRF BIDS app we are looking for a way to specify some input arguments to filter the datasets to be post-processed (for example if we have different space outputs from fMRIPREP (T1w, MNI, etc) being able to select only a subset for further analysis.

We were then wondering if the bids-filter-file can be customized and used as an input file for rsHRF (or any other BIDS app fwiw), in order to select some specific files for further analyses (i.e. to extend the task label, without too much hard coding)?

Has anyone tried this already?


Hey @Daniele_Marinazzo

If I have understood correctly what you ask, I think you should be able to use pass to get the entities you want to filter. And that includes regular expressions.

Made a quick example notebook, not sure it answers your question.

1 Like