Skip to content
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

Merged
merged 5 commits into from
Jan 20, 2024
Merged

Conversation

@jcohenadad
Copy link
Member Author

jcohenadad commented Jan 20, 2024

Before/After changing the CSF masks:

anim

@jcohenadad jcohenadad merged commit bf4cf2f into main Jan 20, 2024
@jcohenadad jcohenadad deleted the jca/66-sc-csf-ratio branch January 20, 2024 15:49
Copy link
Collaborator

@dpapp86 dpapp86 left a 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

data_processing.ipynb Show resolved Hide resolved
@@ -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",
Copy link
Collaborator

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

Copy link
Collaborator

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",
Copy link
Collaborator

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

data_processing.ipynb Show resolved Hide resolved
data_processing.ipynb Show resolved Hide resolved
data_processing.ipynb Show resolved Hide resolved
@@ -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",
Copy link
Collaborator

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?

@dpapp86
Copy link
Collaborator

dpapp86 commented Jan 21, 2024

@jcohenadad added review. Nothing really major

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants