-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Centralize derivatives conventions for BIDS datasets #94
Conversation
…nd `label-compression.nii.gz`
Great initiative!
In particular, I asked a question on the BIDS mailing list for derivatives chains filenaming (derivatives of a derivatives) but unfortunately I did not receive any answer so far: https://groups.google.com/g/bids-discussion/c/6UDCso4mCXc/m/VvuG0Vk3CAAJ?utm_medium=email&utm_source=footer Hope that helps! |
Co-authored-by: Jan Valosek <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great! few comments to address before merging
Hi, to me it's still unclear whether |
Good question. I think BIDS examples tend to pluralize this. Example for "masks": https://bids-specification.readthedocs.io/en/latest/derivatives/imaging.html#masks |
@valosekj A couple additional questions:
Cheers! |
Sorry, @NadiaBlostein. Your first message slipped through the cracks due to my holiday.
I quickly checked several of our git-annexed datasets, and all use pluralized forms such as
I think our consensus is
Good question! We use
But based on the new convention, the valid approach is also:
(i.e., using
|
Thank you @valosekj ! Continuing on with point 2: how is one then to differentiate disc labels ( According to the new convention, shouldn't Thank you for answering my questions!!! |
Good point! We usually store only intervertebral disc labels (
Yes, you are right! |
Purpose
This PR intends to centralize the discussion about the derivatives/label conventions.
Motivation
Currently, many projects use their own derivatives convention, usually described in README, for example:
Description
This PR proposes the usage of
_label-<region>_<task>.nii.gz
tag, for example:_label-SC_seg.nii.gz
- SC binary segmentation_label-GM_seg.nii.gz
- GM binary segmentation_label-SC_mask.nii.gz
- binary mask with diameter of XXmm centered at the center of the SCFor "tasks" such as
centerline
,disc
, orpmj
, the region is omitted; for example:_label-centerline.nii.gz
- binary SC centerline_label-disc.nii.gz
- voxels located at the posterior tip of each intervertebral disclabel-pmj.nii.gz
- single voxel with value of50
corresponding to the pontomedullary junction (PMJ)The full description is provided within this PR here.
Also, this PR proposes the usage of
derivatives/manual_labels
(instead ofderivatives/labels
). Thanks to that, we can omit-manual
from the filename of each file (i.e.,sub-001_T1w_label-SC_seg-manual.nii.gz
-->sub-001_T1w_label-SC_seg.nii.gz
).Pros
Cons
sct_deepseg_sc
andsct_propseg
use_seg.nii.gz
suffixsct_deepseg_gm
uses_gm_seg.nii.gz
suffixivadomed
uses "target_suffix": ["_seg-manual", "_lesion-manual"]Previous discussions
derivatives/labels
vsderivatives/manual_labels
derivatives/labels
vsderivatives/label
label-SC
Useful links
TODO
Questions
_label-SC_seg.nii.gz
vs_label-SC_dseg.nii.gz
- BIDS suggests_dseg.nii.gz
suffix for discrete segmentation instead_seg.nii.gz
. However,_seg.nii.gz
also seems to pass thebids-validator
._label-centerline.nii.gz
vs_label-SC-centerline.nii.gz
- should we omit or include the region for "tasks" where it is obvious that they are related to the spinal cord (SC)derivatives/labels
vsderivatives/label
- this comment suggest singular (label
), but so far, we have been using plural (labels
).derivatives/manual_labels/.../sub-XXX_T1w_label-SC_seg.nii.gz
vsderivatives/labels/.../sub-XXX_T1w_label-SC_seg-manual.nii.gz
- if we usemanual_labels
instead oflabels
, we can omitmanual
from filenames