Skip to content

BIDS Configuration (--bids-filter-file) for fieldmaps not respected #2336

@jerdra

Description

@jerdra

It looks like the specification for the fmap key enlisted in --bids-filter-file isn't used when pulling fmaps for a given BOLD file in init_func_preproc_wf. As a result all fmaps for the target BOLD file are used (even when the are incompatible with eachother, i.e different voxel resolutions) even when the BIDS config specifies that some files should be ignored.

What version of fMRIPrep are you using?

LTS 20.2.0

What kind of installation are you using? Containers (Singularity, Docker), or "bare-metal"?

Singularity

What is the exact command-line you used?

fmriprep /bids /output participant --participant_label $PLABEL \
    --bids-filter-file /resources/bids_configuration/spinecho_select.json \
    --nprocs 36 --omp-nthreads 8  -vv --output-spaces T1w \
    MNI152NLin2009cAsym fsaverage fsaverage5 \
    --bold2t1w-init register --bold2t1w-dof 6  \
    --use-syn-sdc --fs-license-file /license/license.txt

Have you checked that your inputs are BIDS valid?

Yes

The BIDS configuration file spinecho_select.json is configured as:

{
  "fmap": {"datatype": "fmap", "acquisition": null},
  "bold": {"datatype": "func", "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"}
}

I think the problematic line can be found here:

fmaps = fieldmap_wrangler(layout, ref_file,
use_syn=config.workflow.use_syn_sdc,
force_syn=config.workflow.force_syn)

Where fieldmap_wrangler doesn't know about the config.execution.bids_filter spec so it ends up pulling all files under "fmap".

I'd be more than happy to put together a small patch for this either in SDCFlows fieldmap_wrangler or possibly directly following the problematic line!

Let me know if that'd be useful for you, and how you'd like me to proceed!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions