Use several runs in --bids-filer-file json

Hello everyone!

I am trying to analyze my DTI data using qsiprep and would like to include only 1st runs in my analysis. The problem is that some subjects have run-01 string in the filename and others do not (because there is only one run). For example:

Subject 1:

sub-OAS30013_ses-d0102_dwi.nii.gz

Subject 2:

sub-OAS30016_ses-d0021_run-01_dwi.nii.gz

I tried to use --bids-filter-file flag with a JSON file:

{
    "dwi": { "run": "01" }
}

This JSON file helps me to include subject 1, but not subject 2. Does anyone know if it is possible to make a JSON file something like the one below to include both subjects?

{
    "dwi": { "run": ["01", null] }
}

Any advice is helpful!

Best,
Egor

Hi,

You might have better luck renaming all DWI/json files without a run label to include run-01.

Best,
Steven