-
Notifications
You must be signed in to change notification settings - Fork 24
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
ENH: Add number of volumes per *b*-value to QC report #150
base: master
Are you sure you want to change the base?
Conversation
dmriprep/interfaces/reports.py
Outdated
\t\t<details open> | ||
\t\t<summary>Summary</summary> | ||
\t\t<ul class="elem-desc"> | ||
\t\t\t<li>Distinct shells: {shells_dist}</li> |
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.
- Why don't we also print out the shell distribution?
- What happens with DSI schemes? Maybe we can add a unit test of the
DiffusionSummary
interface?
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.
Right now, shells_dist
does print out the shell distribution. But perhaps I should give it a different label and variable name to make this more clear.
I've tested this on the taiwan_ntu_dsi
dataset that comes bundled with dipy
. Here's what it outputs:
{0: 7, 100: 12, 200: 8, 400: 6, 600: 24, 900: 24, 1500: 12, 1900: 30, 2400: 24, 2900: 24, 3400: 8, 4000: 24}
I haven't worked with DSI data before so I'm not quite sure if this is what we're looking for or whether this should be improved.
Will update with a unit test for the new interface!
Could you rebase when #151 is merged? |
I'll update this to see if I can figure out a parser that determines whether the data is shelled or sampled along the Cartesian grid. I've checked out the methods section of a few DSI papers and they seem to either report the maximum b value or a range (eg. x DWIs with diffusion weightings in the range of b = 100-4000 s/mm2 and x interleaved b = 0 scans). Perhaps a similar approach can be taken in our reportlet. |
Yes, this sounds fantastic. |
86ebe84
to
1b8d632
Compare
Hello @josephmje, Thank you for updating! Cheers! There are no style issues detected in this Pull Request. 🍻 To test for issues locally, Comment last updated at 2021-03-11 15:15:14 UTC |
6a2fa08
to
4e6b3b9
Compare
This is ready for review. I will leave the DSI updates for another PR. |
sounds great |
51902e8
to
4f931db
Compare
should we resuscitate this? |
Closes #64 and #128. Replaces PR #73.
DiffusionSummary
interfaceIn the case of DSI data, should
round_bvals
automatically round to the nearest 10 instead of calculating based on the magnitude of bvals? Setbmag = 1
.