-
Notifications
You must be signed in to change notification settings - Fork 0
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
pydeface
missing when converting NIFTI to 256 conformed MGZ file
#70
Comments
#51 (comment) suggests changing the image for the So the problem seems to be a missing |
ah good point! |
Not sure if there is anything we can do about this? Seems more like a problem on the XNAT side, not with our AWS setup? I think there's a problem with the Maybe @HChughtai can help with this? |
I had a look into the #!/usr/bin/env bash
# Wrapper script around pydeface, so that it can yank the first
# probably only file from the inoput directory
# and preserve all other arguments
die(){
echo >&2 "$@"
exit 1
}
IN_DIR=$1
shift
OUT_DIR=$1
shift
IN_FILE=$(ls ${IN_DIR}/*.nii* | head -1)
[[ -f ${IN_FILE} ]] || die "Did not find nii or nii.gz file in ${IN_DIR}"
IN_BASE=`basename ${IN_FILE} .gz`
IN_BASE=`basename ${IN_BASE} .nii`
OUT_FILE=${OUT_DIR}/${IN_BASE}.mgz
export PATH=/opt/miniconda-latest/envs/neuro/bin:${PATH}
echo IN_FILE=${IN_FILE}
echo OUT_FILE=${OUT_FILE}
echo
echo mri_convert $@ ${IN_FILE} ${OUT_FILE}
pydeface $@ ${IN_FILE} ${OUT_FILE} || die "Deface failed" So it does indeed call |
That's an error and I think that Docker image is out of date, and so has the wrong version. You can see in https://github.com/HealthBioscienceIDEAS/MedICSS-Project-Repro-Pipelines/blob/gh-pages/fastsurfer/nii_to_mgz.sh that the line doesn't exist. And you're right that it should be a separate step to the conversion. I think what happened was that Dave created nii_to_mgz.sh by copying run_pydeface.sh and that was left behind. I'd suggest rebuilding the fastsurfer image |
Thanks @HChughtai! Can confirm that manually editing the
Do we just need to create a new license and add it to the Docker container? |
Yeah, that would do it! |
When running the
Converts NIFTI to 256 conformed MGZ file
command, as part of the IDEAS workshop (see #44), we run into the following error:What is confusing is that in the workshop, the defacing is performed after the first run of FastSurfer (after which FastSurfer is re-run to see the impact on the results). So there is no need to have
pydeface
when we just want to convert the NIFTI files to MGZ, I think?The text was updated successfully, but these errors were encountered: