My BIDS-dataset includes the nback
, mid
,faces
, and rest
task where for each subject I have two sessions. I want to only preprocess the first session and also exclude rsfMRI from the preprocessing while otherwise keeping the default behavior of fmriprep. Older versions of fmriprep allowed to select only certain sessions and tasks for preprocessing. But with newer versions (i.e. 23.1.0
for my case) the only option that I can find is to define a .json
file with the --bids-filter-file
option.
I am not sure how to make sure that the default behavior of fmriprep is ensured while defining the exclusion criteria above. This is how my file looks right now:
{
"fmap": {"datatype": "fmap","session":"01"},
"t1w": {"datatype": "anat", "suffix": "T1w","session":"01"},
"bold": {"datatype": "func", "suffix": "bold","session":"01","task":"nback"},
"bold": {"datatype": "func", "suffix": "bold","session":"01","task":"mid"},
"bold": {"datatype": "func", "suffix": "bold","session":"01","task":"faces"},
}
Is this right? This is the folder structure of one subject:
.
├── ses-01
│ ├── anat
│ │ ├── sub-INDI1W934_ses-01_T1w.json
│ │ └── sub-INDI1W934_ses-01_T1w.nii
│ ├── dwi
│ │ ├── sub-INDI1W934_ses-01_acq-multishell_dir-pa_dwi.bval
│ │ ├── sub-INDI1W934_ses-01_acq-multishell_dir-pa_dwi.bvec
│ │ ├── sub-INDI1W934_ses-01_acq-multishell_dir-pa_dwi.json
│ │ └── sub-INDI1W934_ses-01_acq-multishell_dir-pa_dwi.nii
│ ├── fmap
│ │ ├── sub-INDI1W934_ses-01_APdistortionmap.json
│ │ ├── sub-INDI1W934_ses-01_APdistortionmap.nii
│ │ ├── sub-INDI1W934_ses-01_PAdistortionmap.json
│ │ ├── sub-INDI1W934_ses-01_PAdistortionmap.nii
│ │ ├── sub-INDI1W934_ses-01_acq-B0fmapDWI_dir-ap_epi.bval
│ │ ├── sub-INDI1W934_ses-01_acq-B0fmapDWI_dir-ap_epi.bvec
│ │ ├── sub-INDI1W934_ses-01_acq-B0fmapDWI_dir-ap_epi.json
│ │ ├── sub-INDI1W934_ses-01_acq-B0fmapDWI_dir-ap_epi.nii
│ │ ├── sub-INDI1W934_ses-01_acq-B0fmapDWI_dir-pa_epi.bval
│ │ ├── sub-INDI1W934_ses-01_acq-B0fmapDWI_dir-pa_epi.bvec
│ │ ├── sub-INDI1W934_ses-01_acq-B0fmapDWI_dir-pa_epi.json
│ │ ├── sub-INDI1W934_ses-01_acq-B0fmapDWI_dir-pa_epi.nii
│ │ ├── sub-INDI1W934_ses-01_acq-B0sbreffmapDWI_dir-ap_epi.json
│ │ ├── sub-INDI1W934_ses-01_acq-B0sbreffmapDWI_dir-ap_epi.nii
│ │ ├── sub-INDI1W934_ses-01_acq-B0sbreffmapDWI_dir-pa_epi.json
│ │ ├── sub-INDI1W934_ses-01_acq-B0sbreffmapDWI_dir-pa_epi.nii
│ │ ├── sub-INDI1W934_ses-01_acq-fmapBOLD_dir-pa_magnitude1.json
│ │ ├── sub-INDI1W934_ses-01_acq-fmapBOLD_dir-pa_magnitude1.nii
│ │ ├── sub-INDI1W934_ses-01_acq-fmapBOLD_dir-pa_magnitude2.json
│ │ ├── sub-INDI1W934_ses-01_acq-fmapBOLD_dir-pa_magnitude2.nii
│ │ ├── sub-INDI1W934_ses-01_acq-fmapBOLD_dir-pa_phasediff.json
│ │ ├── sub-INDI1W934_ses-01_acq-fmapBOLD_dir-pa_phasediff.nii
│ │ ├── sub-INDI1W934_ses-01_acq-sbreffmapDWI_dir-pa_epi.json
│ │ └── sub-INDI1W934_ses-01_acq-sbreffmapDWI_dir-pa_epi.nii
│ └── func
│ ├── sub-INDI1W934_ses-01_task-faces_bold.json
│ ├── sub-INDI1W934_ses-01_task-faces_bold.nii
│ ├── sub-INDI1W934_ses-01_task-faces_events.tsv
│ ├── sub-INDI1W934_ses-01_task-faces_recording-EXT_physio.tsv.gz
│ ├── sub-INDI1W934_ses-01_task-faces_recording-Info_physio.tsv.gz
│ ├── sub-INDI1W934_ses-01_task-faces_recording-PULS_physio.tsv.gz
│ ├── sub-INDI1W934_ses-01_task-faces_recording-RESP_physio.tsv.gz
│ ├── sub-INDI1W934_ses-01_task-mid_bold.json
│ ├── sub-INDI1W934_ses-01_task-mid_bold.nii
│ ├── sub-INDI1W934_ses-01_task-mid_events.tsv
│ ├── sub-INDI1W934_ses-01_task-mid_recording-EXT_physio.tsv.gz
│ ├── sub-INDI1W934_ses-01_task-mid_recording-Info_physio.tsv.gz
│ ├── sub-INDI1W934_ses-01_task-mid_recording-PULS_physio.tsv.gz
│ ├── sub-INDI1W934_ses-01_task-mid_recording-RESP_physio.tsv.gz
│ ├── sub-INDI1W934_ses-01_task-midreadout_events.tsv
│ ├── sub-INDI1W934_ses-01_task-nback_bold.json
│ ├── sub-INDI1W934_ses-01_task-nback_bold.nii
│ ├── sub-INDI1W934_ses-01_task-nback_events.tsv
│ ├── sub-INDI1W934_ses-01_task-nback_recording-EXT_physio.tsv.gz
│ ├── sub-INDI1W934_ses-01_task-nback_recording-Info_physio.tsv.gz
│ ├── sub-INDI1W934_ses-01_task-nback_recording-PULS_physio.tsv.gz
│ ├── sub-INDI1W934_ses-01_task-nback_recording-RESP_physio.tsv.gz
│ ├── sub-INDI1W934_ses-01_task-nbackperf_events.tsv
│ ├── sub-INDI1W934_ses-01_task-rest_bold.json
│ ├── sub-INDI1W934_ses-01_task-rest_bold.nii
│ ├── sub-INDI1W934_ses-01_task-rest_recording-EXT_physio.tsv.gz
│ ├── sub-INDI1W934_ses-01_task-rest_recording-Info_physio.tsv.gz
│ ├── sub-INDI1W934_ses-01_task-rest_recording-PULS_physio.tsv.gz
│ └── sub-INDI1W934_ses-01_task-rest_recording-RESP_physio.tsv.gz
├── ses-02
│ ├── anat
│ │ ├── sub-INDI1W934_ses-02_T1w.json
│ │ └── sub-INDI1W934_ses-02_T1w.nii
│ ├── dwi
│ │ ├── sub-INDI1W934_ses-02_acq-multishell_dir-pa_dwi.bval
│ │ ├── sub-INDI1W934_ses-02_acq-multishell_dir-pa_dwi.bvec
│ │ ├── sub-INDI1W934_ses-02_acq-multishell_dir-pa_dwi.json
│ │ └── sub-INDI1W934_ses-02_acq-multishell_dir-pa_dwi.nii
│ ├── fmap
│ │ ├── sub-INDI1W934_ses-02_acq-B0fmapDWI_dir-ap_epi.bval
│ │ ├── sub-INDI1W934_ses-02_acq-B0fmapDWI_dir-ap_epi.bvec
│ │ ├── sub-INDI1W934_ses-02_acq-B0fmapDWI_dir-ap_epi.json
│ │ ├── sub-INDI1W934_ses-02_acq-B0fmapDWI_dir-ap_epi.nii
│ │ ├── sub-INDI1W934_ses-02_acq-B0fmapDWI_dir-pa_epi.bval
│ │ ├── sub-INDI1W934_ses-02_acq-B0fmapDWI_dir-pa_epi.bvec
│ │ ├── sub-INDI1W934_ses-02_acq-B0fmapDWI_dir-pa_epi.json
│ │ ├── sub-INDI1W934_ses-02_acq-B0fmapDWI_dir-pa_epi.nii
│ │ ├── sub-INDI1W934_ses-02_acq-B0sbreffmapDWI_dir-ap_epi.json
│ │ ├── sub-INDI1W934_ses-02_acq-B0sbreffmapDWI_dir-ap_epi.nii
│ │ ├── sub-INDI1W934_ses-02_acq-B0sbreffmapDWI_dir-pa_epi.json
│ │ ├── sub-INDI1W934_ses-02_acq-B0sbreffmapDWI_dir-pa_epi.nii
│ │ ├── sub-INDI1W934_ses-02_acq-fmapBOLD_dir-PA_phasediff.json
│ │ ├── sub-INDI1W934_ses-02_acq-fmapBOLD_dir-PA_phasediff.nii
│ │ ├── sub-INDI1W934_ses-02_acq-fmapBOLD_dir-ap_epi.json
│ │ ├── sub-INDI1W934_ses-02_acq-fmapBOLD_dir-ap_epi.nii
│ │ ├── sub-INDI1W934_ses-02_acq-fmapBOLD_dir-pa_epi.json
│ │ ├── sub-INDI1W934_ses-02_acq-fmapBOLD_dir-pa_epi.nii
│ │ ├── sub-INDI1W934_ses-02_acq-fmapBOLD_dir-pa_magnitude1.json
│ │ ├── sub-INDI1W934_ses-02_acq-fmapBOLD_dir-pa_magnitude1.nii
│ │ ├── sub-INDI1W934_ses-02_acq-fmapBOLD_dir-pa_magnitude2.json
│ │ ├── sub-INDI1W934_ses-02_acq-fmapBOLD_dir-pa_magnitude2.nii
│ │ ├── sub-INDI1W934_ses-02_acq-sbreffmapDWI_dir-pa_epi.json
│ │ ├── sub-INDI1W934_ses-02_acq-sbreffmapDWI_dir-pa_epi.nii
│ │ ├── sub-INDI1W934_ses-02_acq-tracewfmapDWI_dir-pa_epi.json
│ │ └── sub-INDI1W934_ses-02_acq-tracewfmapDWI_dir-pa_epi.nii
│ └── func
│ ├── sub-INDI1W934_ses-02_task-faces_bold.json
│ ├── sub-INDI1W934_ses-02_task-faces_bold.nii
│ ├── sub-INDI1W934_ses-02_task-faces_events.tsv
│ ├── sub-INDI1W934_ses-02_task-faces_recording-EXT_physio.tsv.gz
│ ├── sub-INDI1W934_ses-02_task-faces_recording-Info_physio.tsv.gz
│ ├── sub-INDI1W934_ses-02_task-faces_recording-PULS_physio.tsv.gz
│ ├── sub-INDI1W934_ses-02_task-faces_recording-RESP_physio.tsv.gz
│ ├── sub-INDI1W934_ses-02_task-mid_bold.json
│ ├── sub-INDI1W934_ses-02_task-mid_bold.nii
│ ├── sub-INDI1W934_ses-02_task-mid_events.tsv
│ ├── sub-INDI1W934_ses-02_task-mid_recording-EXT_physio.tsv.gz
│ ├── sub-INDI1W934_ses-02_task-mid_recording-Info_physio.tsv.gz
│ ├── sub-INDI1W934_ses-02_task-mid_recording-PULS_physio.tsv.gz
│ ├── sub-INDI1W934_ses-02_task-mid_recording-RESP_physio.tsv.gz
│ ├── sub-INDI1W934_ses-02_task-midreadout_events.tsv
│ ├── sub-INDI1W934_ses-02_task-nback_bold.json
│ ├── sub-INDI1W934_ses-02_task-nback_bold.nii
│ ├── sub-INDI1W934_ses-02_task-nback_events.tsv
│ ├── sub-INDI1W934_ses-02_task-nback_recording-EXT_physio.tsv.gz
│ ├── sub-INDI1W934_ses-02_task-nback_recording-Info_physio.tsv.gz
│ ├── sub-INDI1W934_ses-02_task-nback_recording-PULS_physio.tsv.gz
│ ├── sub-INDI1W934_ses-02_task-nback_recording-RESP_physio.tsv.gz
│ ├── sub-INDI1W934_ses-02_task-nbackperf_events.tsv
│ ├── sub-INDI1W934_ses-02_task-rest_bold.json
│ ├── sub-INDI1W934_ses-02_task-rest_bold.nii
│ ├── sub-INDI1W934_ses-02_task-rest_recording-EXT_physio.tsv.gz
│ ├── sub-INDI1W934_ses-02_task-rest_recording-Info_physio.tsv.gz
│ ├── sub-INDI1W934_ses-02_task-rest_recording-PULS_physio.tsv.gz
│ └── sub-INDI1W934_ses-02_task-rest_recording-RESP_physio.tsv.gz
└── sub-INDI1W934_sessions.tsv
P.S.: Maybe It would be nice if there was some sort of --ignore
option to exclude sessions or tasks you don’t want, instead of having to first include everything you want and then leave out the stuff that you don’t want (kind of thinking from an “exclusion”, not from an “inclusion” perspective)?