Skip to content

Conversation

effigies
Copy link
Collaborator

@effigies effigies commented Aug 20, 2024

The original iEEG spec intended electrodes.tsv to be REQUIRED, but the language was unintentionally softened during the inclusion in BIDS. This PR clarifies the language, and adds a validation rule to enforce the presence of electrodes.tsv files. Paired with bids-standard/bids-validator#207, this will support detecting multiple electrodes.tsv files that are distinguished by the space-<label> entity.

This PR also adds a check that each electrodes.tsv file has a corresponding coordsystem.json file. This was already enforced for optodes.tsv in NIRS datasets, but was missing for electrodes.tsv in *EG datasets.

This follows extensive discussion in bids-standard/bids-validator#206.

Closes #1854.

@effigies effigies added this to the 1.10.0 milestone Aug 20, 2024
Copy link

codecov bot commented Aug 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.10%. Comparing base (9377b20) to head (377c777).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1896   +/-   ##
=======================================
  Coverage   88.10%   88.10%           
=======================================
  Files          16       16           
  Lines        1396     1396           
=======================================
  Hits         1230     1230           
  Misses        166      166           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@effigies effigies force-pushed the ieeg/require-electrodes branch from bd6ee0e to d9a4e52 Compare May 30, 2025 11:36
@effigies effigies changed the title feat(schema): Validate the iEEG data files have associated electrodes.tsv [ENH] Clarify that electrodes.tsv are REQUIRED for iEEG data May 30, 2025
@effigies effigies added iEEG and removed exclude-from-changelog This item will not feature in the automatically generated changelog labels May 30, 2025
@effigies effigies marked this pull request as ready for review May 30, 2025 12:41
@effigies effigies requested a review from ezemikulan as a code owner May 30, 2025 12:41
@effigies effigies requested review from dorahermes, sappelhoff and adam2392 and removed request for erdalkaraca and tsalo May 30, 2025 12:47
Copy link
Member

@dorahermes dorahermes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@effigies effigies merged commit daad867 into bids-standard:master Jun 4, 2025
24 of 25 checks passed
@effigies effigies deleted the ieeg/require-electrodes branch June 4, 2025 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SCHEMA] Make electrodes.tsv REQUIRED for iEEG
3 participants