Closed njhunsak closed 4 years ago
topup_mask.nii.gz
See this if-else logic.
The topup_mask.nii.gz
looks really bad.
For reference here's what I included when I ran this step:
~/build/pnlNipype/exec/fsl_topup_epi_eddy \
--acqp acqparams.txt \
--numb0 -1 \
--whichVol 1,2 \
--bvals dwi_acq-AP_xc.bval,dwi_acq-PA_xc.bval \
--bvecs dwi_acq-AP_xc.bvec,dwi_acq-PA_xc.bvec \
--config /fslhome/intj5/build/pnlNipype/scripts/eddy_config.txt \
--imain dwi_acq-AP_xc.nii.gz,dwi_acq-PA_xc.nii.gz \
--mask dwi_acq-AP_mask.nii.gz,dwi_acq-PA_mask.nii.gz \
--out dwi_epi
How good were --mask dwi_acq-AP_mask.nii.gz,dwi_acq-PA_mask.nii.gz
?
Did they have a thin separate boundary outside the brain like we see in the derived topup_mask.nii.gz
?
It's either topup
or applytopup
that isn't doing a good job here. How do the dwi_acq-AP_xc_Ep_Ed.nii.gz
look? Do you think that has been properly eddy/epi corrected?
The masks look OK.
Eddy worked just fine, but I don't think topup worked too well.
On the left (volume 1 is the AP scan) and on the right (volume 66 is the PA scan). You can still see the AP-PA distortion on the images since the blue crosshair is placed at the same spot for both images. There's still a lot of frontal lobe distortion on the PA scan (right).
Your annotation of left/right and AP/PA don't appear to be completely harmonious. Can you use "above" and "below" to explicitly refer to the figures? You can edit and I'll follow.
But in the big picture, given your findings of bad mask, I may have to resort to obtaining mask in the simpler way (averaging and bet of topup b0s) as suggested in eddy documentation.
In contrast, note that we also applytopup
on the given masks to obtain a presumably better mask.
cc @sbouix
@njhunsak
Eddy worked just fine, but I don't think topup worked too well.
For avoiding over-fitting, we would have to play with advanced parameters of eddy_openmp
as shown in example commands here.
The topup_mask.nii.gz looks really bad.
Mask issue should be fixed now (see https://github.com/pnlbwh/pnlNipype/commit/cd6f1a4dea3f22129914460398a446b23b8bcb36).
Finally, my recent changes to pnlNipype can be pulled as follows
cd pnlNipype
mv scripts/fs2dwi.py .
git checkout -- scripts/fs2dwi.py
git pull origin master
mv fs2dwi.py scripts/
cd pnlNipype
git checkout -- scripts/fs2dwi.py
git pull origin master
If my primary image was
dwi_acq-AP
and my secondary image isdwi_acq-PA
. It isn't obvious to me what file would be my final mask: