Hi all,
I’d like to filter my input data to fmriprep but can’t find any documentation on how the filtering exactly works. I have three func images, of which I’d like to use only two, i.e. skip the part-phase
data in the example below:
$ tree func
func
|-- sub-100_task-rest_dir-AP_run-1_part-mag_bold.json
|-- sub-100_task-rest_dir-AP_run-1_part-mag_bold.nii.gz
|-- sub-100_task-rest_dir-AP_run-1_part-phase_bold.json
|-- sub-100_task-rest_dir-AP_run-1_part-phase_bold.nii.gz
|-- sub-100_task-rest_dir-AP_run-1_rec-NORDIC_bold.json
`-- sub-100_task-rest_dir-AP_run-1_rec-NORDIC_bold.nii.gz
I’ve seen examples of --bids-filter-file
, but it seems to me the filter terms are AND
operated, and I’d like to use an OR
operator. I know that you can use lists for that, but I’m unsure how that applies between entities. Is the filter file below the way or how can I build my filter?
{
"fmap": {"datatype": "fmap"},
"bold": [{"datatype": "func", "part": "mag", "suffix": "bold"}, {"datatype": "func", "reconstruction": "NORDIC", "suffix": "bold"}],
"sbref": {"datatype": "func", "suffix": "sbref"},
"flair": {"datatype": "anat", "suffix": "FLAIR"},
"t2w": {"datatype": "anat", "suffix": "T2w"},
"t1w": {"datatype": "anat", "suffix": "T1w"},
"roi": {"datatype": "anat", "suffix": "roi"}
}