muscbridge / PyDesigner

A hands-free DTI, DKI, FBI and FBWM preprocessing pipeline. Information on algorithms and preprocessing steps are available at https://www.biorxiv.org/content/10.1101/2021.10.20.465189v1 A video tutorial on PyDesigner and its usage is now available at https://www.youtube.com/watch?v=mChQFuQqX3k
https://pydesigner.readthedocs.io/en/latest/
Other
23 stars 7 forks source link

How do I load phase encoding images (AP and PA) for eddy currents correction. #236

Closed LRAlvarado closed 4 years ago

LRAlvarado commented 4 years ago

Hi all,

I am running PyDesigner via Neurodock v1.0-RC5. I am trying to run a single subject with the dataset organized as per BIDS. I have AP and PA phase encoding images that I would normally use in FSL for eddy correction. While trying to load them into the docker as follows:

docker run -it --rm \
    -v /Users/lralvarado/Scratch_Disk/supraspinal_study/analysis/MRI/BIDS:/data:ro \
    -v /Users/lralvarado/Scratch_Disk/supraspinal_study/analysis/MRI/derivatives/PyDesigner:/out \
    dmri/neurodock pydesigner \
    --standard \
    --verbose \
    --output /out/processed \
    /data/sub-K327/ses-pedsSCI001/dwi/sub-K327_ses-pedsSCI001_acq-64dir_dwi.nii.gz,\
    /data/sub-K327/ses-pedsSCI001/fmap/sub-K327_ses-pedsSCI001_acq-dwiAP_epi.nii.gz,\
    /data/sub-K327/ses-pedsSCI001/fmap/sub-K327_ses-pedsSCI001_acq-dwiPA_epi.nii.gz

I get the following error: pydesigner: error: unrecognized arguments: /data/sub-K327/ses-pedsSCI001/fmap/sub-K327_ses-pedsSCI001_acq-dwiAP_epi.nii.gz, /data/sub-K327/ses-pedsSCI001/fmap/sub-K327_ses-pedsSCI001_acq-dwiPA_epi.nii.gz

Is there a way to pass these images through?

TheJaeger commented 4 years ago

Hi @LRAlvarado, you would simple give it all your scanning sequences separated by a comma such that it reads $DWI1,$DWI2,...,$DWIn in a single string. There should be no space separating your inputs. In your case, try removing the \ slash to see if it helps. Docker can be quite finicky something especially on Windows systems.

LRAlvarado commented 4 years ago

Thank you, @TheJaeger. I think the problem was the lack of accompanying bvals and bvecs files for my AP and PA images.

TheJaeger commented 4 years ago

@LRAlvarado well I totally overlooked your dataset. It's fantastic you got it to work. Let us know if you'd like additional features to be implemented, we'd be more than happy to work them in for you.