Have you tried the syn fieldmapless method?
This? Not yet. Is that my most logical next step? Happy to give it a try!
Okay this is what I will try next:
qsiprep-docker \Users\harrioem\Desktop\EMHbraindataset \Users\harrioem\Desktop\EMHbraindataset\derivatives -w \Users\harrioem\Desktop\testworkdir --output-resolution 1.3 --fs-license-file \Users\harrioem\Applications\freesurfer\720 --recon-spec pyafq_tractometry --use-syn-sdc --force-syn --ignore fieldmaps
Will report back when it’s done.
Thank you so much!
Hi @emilymharriott ,
I looked at the dataset and in “18Jan2024NEWFMAP”: both the fmap/*_epi.json
file and the dwi/*dwi.json
file have "PhaseEncodingDirection": "j"
. This will not help for distorsion correction. You would want to have for instance "PhaseEncodingDirection": "j-"
for sub-03_dir-AP_epi.json
.
I hope this helps.
Thank you so very much for your help! Prior to posting here and at the very beginning of this thread, I tried making one j and one j, making one j and one j-, and then making one j- and the other j. Unfortunately, regardless of the - on the j, all the outputs looked the same and also looked bad. Was it still important to have the - on one j?
If so, I’m still running the –use-syn-sdc --force-syn --ignore fieldmaps
version (so that shouldn’t matter since I am ignoring fieldmaps) but once I’m done I can try the edited fmap version with j and j-.
I think it is important for SDC using topup
to have different phase encoding directions, if both images have actually been acquired in that way of course. But as it was mentioned earlier in this thread, the b0 images have also very different intensity between the two acquisitions, perhaps due to the fact that the acquisition parameters are different between the two. For instance, the RepetitionTime
for the dwi
image is 2.96251 s while it is 5.9 s for the fmap
image. This difference of intensity may not help topup
either.
It seems like a good approach in that case to switch to the fieldmap-less options mentioned by @Steven and that you are already testing:
For synB0-DISCO, if you wanted to integrate it into the qsiprep workflow, you could be inspired by this discussion:
or by a similar approach for bold images, synBOLD-DISCO and fmriprep, it is basically the same idea:
This explanation and these suggestions/links are really helpful, thank you so much!
Okay. Got it. I will finish this fmapless run, see what it looks like, and perhaps next test out a combination approach of the new fmap (created from fslsplit
) + editing the json files to be j and j- + having the same TotalReadoutTimes. It is good to know that those json file edits might still be important even if initially they didn’t appear to do the trick by themselves. If none of these approaches seem to work, I’ll try out synB0-DISCO.
This explanation on how to use topup shows that indeed it is important to document correctly this PhaseEncodingDirection
.
More details on how topup
works is given here: https://www.youtube.com/watch?v=xN9dtqaNLl8 (first part of the talk)
This finished! Yay! And looking at sub-03.html it did actually do syn sdc without fmaps. I uploaded the outputs to another box folder called “19Jan2024SYNFMAPLESS”. What do you think of the outputs? Do you think they look better or usable?
Currently trying this combination approach. I am using the newly created fmap (from the last volume of my “RPE” image), the DW json file PhaseEncodingDirection is j and the “RPE” json file PhaseEncodingDirection is j-, and the DW and “RPE” json files’ TotalReadoutTimes are now the same. Will report back when it’s done!
Thank you so much!
I just uploaded the outputs to box, in a folder called “20Jan2024COMBO”. I don’t think they look great but I am extremely uncertain and would love to hear your opinion? What do you think?
Thank you so much!
It would be easier for us if you could share the before/after SDC photos from the HTMLs.
Oh okay, sounds great! Where might I find those? Are they in derivatives/qsiprep/sub-03/figures/
? I’m so sorry, in all my reruns of this subject, I had been deleting some outputs as we went, so crossing my fingers I still have those things.
Thank you so much!
You can just take screen shots of the HTML. It may not load correctly if you deleted the figures folder.
Oh okay, assuming this is what you were looking for (crossing my fingers that is the case) that was easier than I thought! Thank you so much for explaining. These are all from versions of the sub-03_desc-sdc_b0.svg file in /figures/.
Okay… here we go. I really hope this is more helpful!!
From Jan 17; original images
From Jan 18; I used a new fmap created from fslsplit
From Jan 19; I used the syn ignore fmaps command
From Jan 20; I used a new fmap created from fslsplit and also changed TotalReadoutTime and j/j-
Thank you again truly so much!
Thanks for sharing.
Why didn’t you think they looked okay? Based on the last image, I see good indication that bad warping is being taken care of, e.g., look at the warping near the frontal regions:
(before)
(after)
Based on the images, I think the last one looks the best (with the syn coming in second place). The first two are definitely unusable. One last thing I would check between the last one and the SYN is how they overlap with the T1 image. Overlay the final b0 over the preprocessed T1 and see which one looks the most aligned - judging both by the boundaries of the images and by the locations of known entities (e.g. ventricles). I am going to guess the final image will be best, but still good to confirm.
Amazing! Okay great! Thank you for this assessment! Okay, so based on this, my best approach for these data is using the new fmap (created from fslsplit
) and changing one “PhaseEncodingDirection” to be j- and the other j, and making the TotalReadoutTimes the same across the RPE and DWI. Got it. (will definitely check the overlap still though)
I am still very much so learning and so am very unsure of what looks good and what looks bad (and really am so grateful for your help in deciding), but I had zoomed out to overall image/processing quality and had seen this FA map in dmriprep-viewer from the file sub-03_dwiqc.json and thought it looked bad? Or does it actually look ok?
I usually look at the colorFA RGB map from the dipy DKI recon spec (or by running some other tensor fitting algorithm), overlaid on the T1. I don’t know how dMRIPrep viewer is making those images. But without knowing how those images are made, nothing immediately wrong here. Colors look right (e.g., corpus callosum very red, CST region is very blue, and A-to-P tracts are very green), high FA intensities in places where expected (e.g., corpus and CST).
Hmm okay. It is GREAT to see
!!!
I will give this dipy DKI tool a try.