-
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
Show single subject data together with normative values #10
base: main
Are you sure you want to change the base?
Conversation
I really really like this representation of an individual subject on the normative value. Nice work! |
…ric normative values
@jcohenadad, what do you think if I implemented the automatic generation of this figure into the |
Sure, why not. We need to make sure the fig generation will work on a headless system (ie: using matplotlib OO module) in case people run it on a cluster via SSH. Also, figure naming and output location needs to be figured out. One possibility would be to output that figure via the QC's report. That way, if ppl don't want that figure they simply don't specify |
Good idea! I discussed the possibility of outputting the PNG figure into the hmtl QC report with @mguaypaq and @joshuacwnewton. The current QC code seems relatively rigid and supports only nii images. Fortunately, refactoring of the QC code currently done by Mathieu (spinalcordtoolbox/spinalcordtoolbox#4204) should offer an easy way of outputting the PNG figure into the hmtl QC report. |
This PR adds a
generate_figures_with_single_subject.py
script to plot single-subject morphometric metrics together with normative values computed from the normative database (spine-generic dataset in PAM50 space).I tested the script on both females and males.
dcm-zurich/sub-343299
- single compression at C4/C5; male; 0.5×0.5×3.6mm voxel sizeCompression:
Commands:
dcm-zurich/sub-780875
- single compression at C5/C6; female; 0.5×0.5×3.6mm voxel sizeCompression:
Commands:
data-multi-subject/sub-tokyoIngenia02
- compression at C6/C7; male; 0.8×0.8×0.8mm voxel sizeCompression:
Commands:
TODO:
Figure ref: https://pubmed.ncbi.nlm.nih.gov/27509189/