-
Notifications
You must be signed in to change notification settings - Fork 1
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
Use manual CSF mask and improve CSF/SC figure #69
Conversation
jcohenadad
commented
Jan 20, 2024
- Fixes Consider uploading a T2starw spinal cord segmentation for sub-04 #56
- Fixes Improve CSF mask #67
- Fixes Improve figure of SC/CSF ratio on T2starw #66
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.
I found some issues. Mainly, while I can't get the figure to show (it hangs), we are still re-sampling to C1:T2, while the extracted value is only between C3:T2
@@ -322,12 +336,12 @@ | |||
"metadata": {}, | |||
"outputs": [], | |||
"source": [ | |||
"# Make figure of SC/CSF signal ratio from T2starw scan\n", | |||
"# Make figure of CSF/SC signal ratio from T2starw scan\n", |
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.
For me, this whole cell hangs for 10 minutes and then does not produce a figure
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.
Skipping it on a second pass and moving on
" # Use another syntax for sub-04. See: https://github.com/shimming-toolbox/rf-shimming-7t/issues/31\n", | ||
" if subject == 'sub-04':\n", | ||
" !sct_deepseg_sc -i {subject}_acq-CoV_T2starw.nii.gz -c t2 -qc {path_qc}\n", | ||
" fname_manual_seg = os.path.join(path_labels, subject, \"anat\", f\"{subject}_acq-CoV_T2starw_label-SC_seg.nii.gz\")\n", |
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.
Comment on the whole cell: the manual segmentation files are not found by the code, and do not seem to be present in the supplied labels, see #71
@@ -400,7 +414,7 @@ | |||
" ax.set_xticklabels([''] * len(original_vector))\n", | |||
"\n", | |||
" ax.set_title(f'{subject}', fontsize=font_size)\n", | |||
" ax.set_ylabel('Cord/CSF T2starw signal ratio', fontsize=font_size)\n", | |||
" ax.set_ylabel('CSF/Cord T2starw signal ratio', fontsize=font_size)\n", |
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.
Consider increasing the LineWidth to 3 or 5?
@jcohenadad added review. Nothing really major |