Skip to content

Case mismatches in entity values between data files and sidecars in real-world datasets #1519

@bruAristimunha

Description

@bruAristimunha

Context

In ds003751, data files use task-Emotion while their JSON sidecars use task-emotion. Strict case-sensitive matching fails to associate them.

The BIDS spec states that labels "MUST not collide when casing is ignored", implying that within a dataset, labels differing only in case refer to the same entity. ds003751 violates this by using inconsistent casing for the same task across files.

Question

Should find_matching_paths() or similar functions warn when near-matches differ only in case? This would help users identify non-compliant datasets without changing the default strict matching behavior.

Additional context

  • MNE-BIDS 0.18.0
  • Encountered during automated processing of ~200 OpenNeuro datasets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions