Skip to content

Conversation

@effigies
Copy link
Collaborator

@effigies effigies commented Feb 28, 2024

This PR proposes the inclusion of BEP-038 into the BIDS specification.

The BEP is hosted on its own branch in the main repository, and BEP leads have been given write permissions to the branch. If you are a BEP lead and having issues writing to the branch, please let a maintainer know and we can make sure you have access.

At present this is a starting point, and I anticipate significant rewriting and reorganization before final merge. There is extensive discussion in #1281 that needs to be turned into concrete proposals. I would suggest keeping the discussion on this PR minimal so that newcomers can follow the thread. When opening PRs against this branch, please include a reference to this PR (#1714) so that it shows up in the thread.

Rendered draft

https://bids-specification--1714.org.readthedocs.build/en/1714/derivatives/atlas.html

Related discussions

Associated PRs

melanieganz and others added 17 commits January 23, 2024 09:23
I made a first draft of the atlas BEP based on the Google doc
Added atlas content
All the content of the BEP038 Google document has been ported to the atlas.md file. Additionally atlas and a definition of what of means was added as an entity. There are still smaller things to fix as some links, references and the tables still need to be inserted.
Fixed details such as linking to entities and suffixes as well as clarified some of the example text.  The tables need still to be fixed.
[BEP038] Style and similar cleanups
@CPernet
Copy link
Collaborator

CPernet commented Mar 31, 2024

@erdalkaraca @tsalo this has passed the review period now, can this be checked and merged? thx

@oesteban
Copy link
Collaborator

oesteban commented Apr 1, 2024

I'm working on a review. Please hold on.

@effigies
Copy link
Collaborator Author

effigies commented Apr 1, 2024

I also have not finished my review/proposed changes. I am unlikely to get to it before the meeting next week as I am traveling for another meeting this week.

@effigies
Copy link
Collaborator Author

effigies commented Apr 4, 2024

This BEP currently needs:

  1. Schema implementation of required checks and filename rules
  2. Examples implementing all significant (ideally all) features proposed to https://github.com/bids-standard/bids-examples
  3. Implementation of all rules in https://github.com/bids-standard/bids-validator and tested on the examples.
  4. A two week public review period announced on all communication channels.

I'm converting this to draft to reflect this status. I'm going to temporarily restrict comments, pending synchronous discussion.

@effigies effigies marked this pull request as draft April 4, 2024 19:53
@bids-standard bids-standard locked as too heated and limited conversation to collaborators Apr 4, 2024
@christinerogers christinerogers marked this pull request as ready for review April 5, 2024 17:02
@sappelhoff sappelhoff marked this pull request as draft April 5, 2024 17:12
Comment on lines +377 to +386
"anat": {
"atlas-Diedrichsen2009_description.json": "",
"tpl-SUIT_T1w.nii.gz": "",
"tpl-SUIT_dseg.json": "",
"tpl-SUIT_dseg.label.gii": "",
"tpl-SUIT_dseg.nii.gz": "",
"tpl-SUIT_dseg.tsv": "",
"tpl-SUIT_probseg.nii.gz": "",
"tpl-SUIT_flat.surf.gii": "",
"tpl-SUIT_sulc.shape.gii": "",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"anat": {
"atlas-Diedrichsen2009_description.json": "",
"tpl-SUIT_T1w.nii.gz": "",
"tpl-SUIT_dseg.json": "",
"tpl-SUIT_dseg.label.gii": "",
"tpl-SUIT_dseg.nii.gz": "",
"tpl-SUIT_dseg.tsv": "",
"tpl-SUIT_probseg.nii.gz": "",
"tpl-SUIT_flat.surf.gii": "",
"tpl-SUIT_sulc.shape.gii": "",
"atlas-Diedrichsen2009_description.json": "",
"anat": {
"tpl-SUIT_T1w.nii.gz": "",
"tpl-SUIT_atlas-Diedrichsen2009_dseg.json": "",
"tpl-SUIT_atlas-Diedrichsen2009_dseg.label.gii": "",
"tpl-SUIT_atlas-Diedrichsen2009_dseg.nii.gz": "",
"tpl-SUIT_atlas-Diedrichsen2009_dseg.tsv": "",
"tpl-SUIT_atlas-Diedrichsen2009_probseg.nii.gz": "",
"tpl-SUIT_flat.surf.gii": "",
"tpl-SUIT_sulc.shape.gii": "",

"tpl-SUIT_atlas-Buckner2011_seg-17n_dseg.label.gii": "",
"tpl-SUIT_atlas-Buckner2011_seg-17n_dseg.nii.gz": "",
"tpl-SUIT_atlas-Buckner2011_seg-17n_dseg.tsv": "",
"tpl-SUIT_atlas-Buckner2011_seg-17n_stat-confidence_probseg.nii.gz": "",
Copy link
Member

Choose a reason for hiding this comment

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

The stat-<label> entity is used throughout but isn't defined in the schema.

Comment on lines +427 to +429
"anat": {
"atlas-Buckner2011_description.json": "",
"atlas-Diedrichsen2009_description.json": "",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"anat": {
"atlas-Buckner2011_description.json": "",
"atlas-Diedrichsen2009_description.json": "",
"atlas-Buckner2011_description.json": "",
"atlas-Diedrichsen2009_description.json": "",
"anat": {

Copy link
Member

Choose a reason for hiding this comment

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

Actually the location of the atlas description file isn't consistent throughout the BEP, and the entities in use mean that the inheritance principle doesn't apply AFAICT.

atlas-<label>_description.json
[cohort-<label>/]
[<datatype>/]
tpl-<label>_[cohort-<label>][_space-<label>][_atlas-<label>][seg-<label>][_scale-<label>][_res-<label>][_den-<label>][_desc-<label>]_<suffix>.<extension>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
tpl-<label>_[cohort-<label>][_space-<label>][_atlas-<label>][seg-<label>][_scale-<label>][_res-<label>][_den-<label>][_desc-<label>]_<suffix>.<extension>
tpl-<label>[_cohort-<label>][_space-<label>][_atlas-<label>][_seg-<label>][_scale-<label>][_res-<label>][_den-<label>][_desc-<label>]_<suffix>.<extension>

tpl-<label>/
[cohort-<label>/]
[<datatype>/]
tpl-<label>_[cohort-<label>][_space-<label>][_atlas-<label>][seg-<label>][_scale-<label>][_res-<label>][_den-<label>][_desc-<label>]_<suffix>.<extension>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
tpl-<label>_[cohort-<label>][_space-<label>][_atlas-<label>][seg-<label>][_scale-<label>][_res-<label>][_den-<label>][_desc-<label>]_<suffix>.<extension>
tpl-<label>[_cohort-<label>][_space-<label>][_atlas-<label>][_seg-<label>][_scale-<label>][_res-<label>][_den-<label>][_desc-<label>]_<suffix>.<extension>

segmentation: optional
scale: optional

probseg:
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't tsv be an allowed extension for probsegs?

$ref: rules.files.deriv.imaging.anat_discrete_surface
entities:
$ref:
- meta.templates.deriv.volumetric.entities
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- meta.templates.deriv.volumetric.entities
- meta.templates.atlas.base.entities

Copy link
Member

Choose a reason for hiding this comment

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

The current entities rules don't allow template.

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.