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

TOPUP distortion correction field is flipped for my LPS oriented dwi data #793

Open
jhauneuro opened this issue Jul 29, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@jhauneuro
Copy link

Summary

Qsiprep flips the PE direction of my TOPUP distortion correction field. This issue has been reported and fixed for fmriprep here: FIX: Revise the TOPUP workflow and related utilities #278. Could this fix also be applied to qsiprep?

Additional details

  • QSIPrep version: 0.20.0
  • Docker version: 25.0.4

What were you trying to do?

Preprocess my dwi data.

What did you expect to happen?

Successfully preprocess my dwi data and correct for image distortions.

What actually happened?

The dwi output are not corrected for susceptibility distortions because the distortion correction field is flipped (shows opposite contrast to correct distortion field for the data).

Reproducing the bug

I ran the following command:

docker run -ti --rm --gpus all \
	-v /usr/local/freesurfer/7.4.1/license.txt:/opt/freesurfer/license.txt:ro \
	-v $bids_dir:/data:ro \
	-v $eddy_config_file:/sngl/eddy/eddy_config.json:ro \
	-v $out_dir:/out \
	-v $out_dir:/scratch \
	pennbbl/qsiprep:latest /data /out participant \
	--eddy-config /sngl/eddy/eddy_config.json \
	--output-resolution $res --pepolar-method TOPUP \
	--distortion-group-merge average \
	--bids-database-dir $bids_dir \
	-w /scratch --omp-nthreads 1 --nthreads 1 --participant_label $subjID
@jhauneuro jhauneuro added the bug Something isn't working label Jul 29, 2024
@jhauneuro jhauneuro changed the title TOPUP distortion correction field is flipped for my LAS oriented dwi data TOPUP distortion correction field is flipped for my LPS oriented dwi data Jul 31, 2024
@jhauneuro
Copy link
Author

Correction: My dwi image was LPS+. When I reoriented the data to LAS+ and reran qsiprep the distortion correction is applied correctly.

@mattcieslak
Copy link
Collaborator

Thanks for reporting @jhauneuro. How do you typically convert your data from dicom? Are you not using dcm2niix?

@jhauneuro
Copy link
Author

jhauneuro commented Aug 5, 2024

@mattcieslak I normally use dcm2niix for conversion to nifti. This particular dataset uses a GE research sequence that requires a different conversion process of reconstructing the images from the raw k-space data (P-files). Because of this I am using in-house recon scripts provided by the imaging center (CFMRI/UCSD) where we are collecting these data. dcm2niix fails on the dicoms (it looks like it doesn't integrate the multiband data well).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants