-
Notifications
You must be signed in to change notification settings - Fork 297
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
Error during brain masking #2433
Comments
I've found that I can successfully run subjects directly on the linux workstations in the lab, instead of the cluster, with this same command. |
Sorry, think I started responding yesterday. I suspect that somehow you have an ANTs that is being called outside the container. Can you singularity shell in and check the location and version of ImageMath? |
The location of ImageMath is: I'm not sure how to check the version of ImageMath specifically. If I do "antsRegistration --version" I get: I'm getting the same output for this whether on our cluster or on our linux workstation. But is there a command to get the version of ImageMath? |
Hmm. That should be right. If you fetch the input files and just run |
Both in and out of the singularity shell, I can replicate the error with the command in the fmriprep output: ImageMath 3 tpl-OASIS30ANTs_res-01_label-brain_probseg_trans_resampled_maths.nii.gz MD /scratch/wsp/fmriprep_wf/single_subject_MOATMS36_wf/anat_preproc_wf/brain_extraction_wf/thr_brainmask/tpl-OASIS30ANTs_res-01_label-brain_probseg_trans_resampled.nii.gz 2 Illegal instruction (core dumped) But in both cases, the command completes successfully if I change the MD option to GD: ImageMath 3 tpl-OASIS30ANTs_res-01_label-brain_probseg_trans_resampled_maths.nii.gz GD /scratch/wsp/fmriprep_wf/single_subject_MOATMS36_wf/anat_preproc_wf/brain_extraction_wf/thr_brainmask/tpl-OASIS30ANTs_res-01_label-brain_probseg_trans_resampled.nii.gz 2 |
The problem is that we're following https://github.com/ANTsX/ANTs/blob/master/Scripts/antsBrainExtraction.sh for this, and they use MD. I don't fully understand the distinction between these modes, so I'd be hesitant to switch based on "it doesn't crash". Given that you have a reproduction, is there any chance you could take this to the ANTs GitHub or mailing list and see what they can figure out? They'll be in a much better position to debug. |
To wrap this up, the ANTs developers (see link above) determined that the processors I was running fmriprep on were too old to be compatible with the particular version/compilation of ANTs. I have moved over to a newer cluster, and it seems to be working. Thanks! |
Sounds good. Conversation moved to #2437. |
I have been running fmriprep in two datasets. It was working fine, until early last week, when all subjects began failing. I have even tried rerunning participants whose data has previously been run successfully, and they have also failed. The error I am getting is:
When I run the ImageMath command by hand, I get the same error. However, when I run it with "GD" in the place of "MD", it completes successfully, with an appropriately dilated tpl-OASIS30ANTs_res-01_label-brain_probseg_trans_resampled_maths.nii.gz file as output. I can open OASIS30ANTs_res-01_label-brain_probseg_trans_resampled.nii.gz, and it does appear to be a binary mask.
I have also checked that the working directory has permissions and space, as well as my cache.
I'm running fmriprep-20.2.1 using singularity on a computing cluster running CentOS Linux 7 (Core). The data set has some BIDS warnings, because of some extra files in the folders that past generations of researchers put there, but otherwise are BIDS valid.
The command I am using to run it is:
I found that someone else reported a similar issue at https://neurostars.org/t/fmriprep-20-2-0-error-in-anat-preproc-wf-brain-extraction-wf-atropos-wf-dil-brainmask/19453/16 .
The text was updated successfully, but these errors were encountered: