--bids-filter-file on fmri prep error message

Summary of what happened:

Hi everyone ! I have a longitudinal dataset and I am trying to add a flag --bids-filter-file on the fmriprep command in order for it to run separately my sessions.

Anybody has an idea ? :slight_smile: thanks

Command used:

#!/bin/bash

for subj in `cat /data/qnilab/MSalavrakos/alcohol_T1s_subjectlist.txt`; do

micc_fmriprep --bidsdir /data/qnilab/MSalavrakos/Bids_MS --participant $subj --freesurfer --fmriprep-version 20.2.7 --ncpus 4 --output-spaces MNI152NLin6Asym:res-2 anat fsaverage --ramsize 16 --skip-bids-validation --outputdir /data/qnilab/MSalavrakos/fmriprep_output_MS_longitudinal_2 --force-workdir /data/qnilab/MSalavrakos/fmriprep_output_MS_longitudinal_2/work --bids-filter-file /data/qnilab/MSalavrakos/Bids_MS/file_filter_2.json

done

Version:

fMRIPrep-20.2.7

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

???

Relevant log outputs (up to 20 lines):

I get this error message for every subject (this one below is the error message for sub 046, but it’s the same for all participants), even though they all have T1w images for the first session at least. And the original pipeline without the flag was running just fine

Traceback (most recent call last):
  File "/usr/local/miniconda/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/usr/local/miniconda/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/cli/workflow.py", line 82, in build_workflow
    retval["workflow"] = init_fmriprep_wf()
  File "/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/workflows/base.py", line 64, in init_fmriprep_wf
    single_subject_wf = init_single_subject_wf(subject_id)
  File "/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/workflows/base.py", line 170, in init_single_subject_wf
    "All workflows require T1w images.".format(subject_id))
Exception: No T1w images found for participant 046. All workflows require T1w images.

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

PASTE VALIDATOR OUTPUT HERE

Screenshots / relevant information:

Hi @MSalavrakos and welcome to neurostars!

We do not know what micc_fmriprep is as it appears to be an alias for a helper function. It is also hard to help because we do not know what your BIDS filter file looks like or the organization of your subject data that you are filtering. BIDS validation report would also be helpful. Can you provide that so we may help?

Best,
Steven

Hi Steven,

Thanks for your reply.
The micc_fmriprep is our cluster path on which I uploaded the data, I should have removed that.
Here are a few screenshots showing the organisation of the data.

Screenshot 2024-10-28 at 16.02.23

Screenshot 2024-10-28 at 16.02.29

Screenshot 2024-10-28 at 16.02.34

I have run bids validation and see several error reports that might be the issue. I’ll first look into that and get back to you if needed. Thanks

I am wondering if the issue might be related to the description.json and the file_filter.json file. Do I need both of these when running the --bid-filter-file flag and if i have set them up correctly.
Here are screenshots:

Hi @MSalavrakos,

The

Acquisition: null

part is making it skip all your images with an acq-<> label. You also don’t have any BOLD images in your filter.

Best,
Steven