Skip to content

Report consolidation fails when using a bids filter file if there are more than four sessions #3407

@Jolinda

Description

@Jolinda

What happened?

I have a study with multiple sessions and I wish to only process a session called "wave1". I use a bids filter file that contains:

{
"t1w": {
"datatype": "anat",
"session": "wave1"
},
"bold": {
"datatype": "func",
"session": "wave1"
},
}

If a subject has four or fewer sessions, I get a single sub-XXX_func.html report. However, if they have five sessions, I get the following empty files:
sub-XXX_ses_w_func.html
sub-XXX_ses_a_func.html
sub-XXX_ses_v_func.html
sub-XXX_ses_e_func.html
sub-XXX_ses_1_func.html

If I don't use the bids filter file, I get a report for each session, as expected.

What command did you use?

apptainer run --bind ${outdir}:/output,${bidsdir}:/bids \
              --cleanenv fmriprep.simg /bids /output participant \
              --participant-label ${subject} \
              --bids-filter-file wave1.json \
              --fs-license-file=freesurfer_license.txt \
              --reports-only

What version of fMRIPrep are you running?

24.1.1

How are you running fMRIPrep?

Singularity

Is your data BIDS valid?

Yes

Are you reusing any previously computed results?

No

Please copy and paste any relevant log output.

No response

Additional information / screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions