Skip to content

Revisit warning message for unsupported BIDS suffixes in bids2tsv #613

@alyssadai

Description

@alyssadai

Since:

  1. bids2table includes essentially every file suffix encountered in a BIDS dataset in the output suffix column, and
  2. our bids2tsv command looks at the difference between the bid2table-generated suffix column and the Neurobagel-supported list of image file suffixes to identify "unrecognized" suffixes,

our warnings about unrecognized suffixes currently include non-imaging-related suffixes such as sessions and scans:

$ bagel bids2tsv -b tests/bids-examples/synthetic -f
[2025-11-26 13:32:34] INFO     Input BIDS directory:  D:\neurobagel\bagelbids\tests\bids-examples\synthetic
[2025-11-26 13:32:34] INFO     BIDS validation passed.
[2025-11-26 13:32:34] WARNING  Image file suffixes unsupported by Neurobagel were found in the BIDS directory: ['sessions', 'scans', 'beh', 'physio', 'stim']. These will be ignored. Supported BIDS suffixes: ['dwi', 'T1w',    
                               'T2w', 'bold', 'asl', 'eeg', 'meg', 'pet'].
[2025-11-26 13:32:34] INFO     Saved output to:  D:\neurobagel\bagelbids\bids.tsv

To avoid unnecessarily verbose warnings (and raising alarm about irrelevant suffixes), we should see if we can:

Metadata

Metadata

Assignees

Labels

refactorSimplifying or restructuring existing code or documentation.usabilityIssue affecting user or developer experience.

Projects

Status

Review - Active

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions