-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add T2w dorsal rootlets labels #158
base: master
Are you sure you want to change the base?
Conversation
…part of the training dataset D5. For details; see https://github.com/ivadomed/model-spinal-rootlets/tree/main/training
… 4 manual raters and the STAPLE algorithm and were part of the testing dataset D5. For details; see https://github.com/ivadomed/model-spinal-rootlets/tree/main/training and ivadomed/model-spinal-rootlets#17
Hold on with merging. According to this comment, $ tree derivatives/labels/sub-amu02/anat/
...
├── sub-amu02_T2w_label-rootlets_dseg_desc-rater1.json
├── sub-amu02_T2w_label-rootlets_dseg_desc-rater1.nii.gz
├── sub-amu02_T2w_label-rootlets_dseg_desc-rater2.json
├── sub-amu02_T2w_label-rootlets_dseg_desc-rater2.nii.gz
├── sub-amu02_T2w_label-rootlets_dseg_desc-rater3.json
├── sub-amu02_T2w_label-rootlets_dseg_desc-rater3.nii.gz
├── sub-amu02_T2w_label-rootlets_dseg_desc-rater4.json
├── sub-amu02_T2w_label-rootlets_dseg_desc-rater4.nii.gz
├── sub-amu02_T2w_label-rootlets_dseg_desc-staple.json
├── sub-amu02_T2w_label-rootlets_dseg_desc-staple.nii.gz
... |
it would be good if @NathanMolinier can vet this (sorry Nathan, you are now our internal BIDS consultant 😅) |
Yes indeed, doing this will help us all when trying to identify data for a given dataset. I did not add any specific rules in our intranet to follow a specific order when using entities, but the least we should do is to append the entity |
Okay! Thanks for the confirmation; I will update the filenames in this branch. Just a side note:
I wrote this function fetching individual BIDS entities using regular expressions based on their keys (e.g., |
Great ! That's how BIDS should be used indeed ! Entities are using keys to allow automation ! That's why, for me, BIDS should not use suffixes at all, they're basically just random values not attached to any keys. |
I updated the filenames to NOT go with For example:
@NathanMolinier, could you please confirm, that the rootlets labels are now okay? |
Hey @valosekj ! This new naming version is indeed better ! Also, I would like to add a small comment: I see that you are using the suffix |
Great, thanks for taking the look!
Exactly! Rootlet labels have values from 2 to 8.
Good point! Currently, the mapping is avaialble, for example, in the GIF in the rootlets README. But yes, adding a section/tutorial about rootlets to https://spinalcordtoolbox.com is a good idea. I've put it on my to-do list (ivadomed/model-spinal-rootlets#39). @mguaypaq, can you please merge? |
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.
Looks fine from my end, in terms of git annex get
.
Ah, the dataset validator is failing because it's too old and doesn't run properly, not because it identified a real issue. I'll have to fix it before merging this PR. |
This PR adds dorsal C2-C8 rootlets labels for T2w images of 24 subjects. The labels were part of the "D5 dataset" used for training and testing of the "M5 model":
Based on this discussion, I chose the following suffixes according our intranet:
sub-amu01_T2w_label-rootlets_dseg.nii.gz
- training label (one label per image)sub-amu02_T2w_label-rootlets_dseg_desc-rater1.nii.gz
- testing label (5 labels per image --> usingdesc-
to distinguish between raters)The rootlets labels were created from the raw T2w images (i.e., no reorientation or resampling was done) --> I included
"SpatialReference": "orig"
into JSON sidecars.@mguaypaq, could you please check the PR and merge? Thanks!