-
Notifications
You must be signed in to change notification settings - Fork 0
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
Strategy to ensure alignment of images and derivatives #265
Comments
@Nilser3 make sure to always use appropriate labels please: |
Agreed. I propose to copy the qform into the sform of all problematic derivatives data. Incl. qform_name and qform_code. @Nilser3 please take care of this |
Firstly I had (in the mask):
After applying:
and finally this q_form and s_form is the same as the anatomical image.
|
Great! Can you please
|
Hi @mguaypaq Could I have access to |
@Nilser3 I just gave you W access to basel-mp2rage ✔️ |
Thanks you @mguaypaq I have created a branch I think I'm ready for a PR |
I can see your branch
After that I'll be able to review the changes. |
Hi @mguaypaq |
Sorry for the delay, I've been busy with the upcoming SCT release. There's a slight problem (that we can ignore) with some of the git-annexed files: for the 27 image files that were binarized in the commit 8b4b8db20df0efbc7e2893345410441a2c87bea3, we only have the most recent version of the files, not the previous version before binarization (from commit 8bdb44219483a28ef659c83bbd2c13bc1243095c). After some in-person debugging with @Nilser3, it looks like those previous versions are lost forever, and can't easily be re-generated. Oh well. Apart from that, Still, I had a look at the JSON sidecars in
After adding these fixes, I merged into Since these fixes are maybe controversial, I'll let @jcohenadad close this issue as completed if he agrees. |
@mguaypaq I'm looking at julien-macbook:~/data.neuro/basel-mp2rage $ cat derivatives/labels/sub-C087/anat/sub-C087_UNIT1_label-SC_seg.json
{
"Author": "sct_deepseg_sc, Julien Cohen-Adad",
} Did you fix it only on master or was Nilser's branch also updated with that fix? In the former case, would it be possible to update Nilser's branch so I can review the latest version. Thanks! |
@jcohenadad Sorry, yes, I had pushed fixed the JSON sidecars only on the master branch. But now I reset the master branch to where it was before this PR, and put the JSON sidecar fixes on the You should be able to review the branch now. I'll note that, in other datasets, we've been using the following schema for multiple authors recently: {
"GeneratedBy": [
{
"Author": "some_script",
"Date": "2023-mm-dd HH:MM:SS"
},
{
"Author": "Firstname Lastname",
"Date": "2023-mm-dd HH:MM:SS"
}
]
} Unfortunately, in |
Thank you Mathieu, I will check ASAP.
That's all right, we will do better next time we create the labels 😅 |
Merged into |
Description
WORKING BRANCH:
nlm/alignment_images_derivatives
It has been observed that in some subjects of the basel-mp2rage dataset there is a mismatch between the q_form / s_form of the images and the derivatives, which could mean some problems in the visualization of the images.
To solve this problem maybe we should make sure that the q_form and the s_form of image and mask are the same
sct_image -i sub-P001_UNIT1.nii.gz -header
sct_image -i sub-P001_UNIT1_lesion-manualNeuroPoly.nii.gz -header
In this case:
sform_name
Scanner Anat VS Unknownsform_code
1 VS 0Related issues
ivadomed/model_seg_ms_mp2rage#77
The text was updated successfully, but these errors were encountered: