'desc' in --bids-filter-file

Summary of what happened:

Hi,

For fmriprep, when using a --bids-filter-file, can I use ‘desc’ as a filter?

I have files to which I add desc-mbar, that I want to pass to fmriprep. XXX_desc-mbar_bold.nii.gz

Thanks

Command used (and if a helper script was used, a link to the helper script or the command generated):

PASTE CODE HERE

Version:

Environment (Docker, Singularity / Apptainer, custom installation):

Data formatted according to a validatable standard? Please provide the output of the validator:

PASTE VALIDATOR OUTPUT HERE

Relevant log outputs (up to 20 lines):

I am getting this error:

ValueError: 'desc' is not a recognized entity. If you're sure you want to impose this constraint, set invalid_filters='allow'.

Screenshots / relevant information:


Hi @Ruben_SR,

In the future please use the Software Support post template for these kinds of posts. You can see that I have edited it in for you this time and you can fill in missing information by editing your post.

desc is not a valid entity for raw data (those that would be input to fMRIPrep). Have you considered using the acq-<> entity instead?

Best,
Steven

Thanks @Steven

I tried “acq-<>” and “rec-<>”, but the same error shows. I think I may try to expand the task-<> tag to include the flag I want, like …task-cog-mbar_run-X…
This is data with mutltiband artifact correction, which is run first before any other preprocessing.

Without knowing more about how you tried I cannot troubleshoot specifically, but I will say that you cannot have dashes in task names.

Best,
Steven