Skip to content

Error at infant_recon_all stage #451

@sb8498

Description

@sb8498

participants.json
dataset_description.json

What happened?

I am trying to run Nibabies with derivatives from BIBSNet. I get an error log that infant_recon_all couldn't be performed because it couldn't access "brain.nii.gz".

sub-06_ses-1_infant_recon_all.2502281351.log
summary.sub-06_ses-1_infant_recon_all.2502281351.log

What command did you use?

`sudo docker run --rm -it -v /media/devcogpsy/EXTERNAL_US/MOTOSO:/input -v /media/devcogpsy/EXTERNAL_US/MOTOSO:/output -v /home/devcogpsy/freesurfer:/fs-subjects-dir -v /media/devcogpsy/EXTERNAL_US/MOTOSO/bibsnet:/derivatives --entrypoint /bin/bash nipreps/nibabies:latest

nibabies /input /output participant --participant-label 06 --fs-license-file /fs-subjects-dir/license.txt --anat-only --derivatives derivatives=/input/bibsnet --nprocs 20 --nthreads 2`

What version of NiBabies are you using?

24.1.0

Relevant log output

`Cmdline:
infant_recon_all --age 13 --segfile /input/bibsnet/sub-06/ses-1/anat/sub-06_ses-1_space-T1w_desc-aseg_dseg.nii.gz --masked /tmp/work/nibabies_24_1_wf/single_subject_sub-06_ses-1_wf/infant_anat_fit_wf/apply_t1w_mask/clipped_masked.nii.gz --outdir /output/sourcedata/freesurfer/sub-06_ses-1 --subject sub-06_ses-1
Stdout:
InfantReconAll scripts DIR /opt/freesurfer/bin
PWD /tmp/work/nibabies_24_1_wf/single_subject_sub-06_ses-1_wf/infant_anat_fit_wf/infantfs_surface_recon_wf/reconall

Log file is /output/sourcedata/freesurfer/sub-06_ses-1/work/sub-06_ses-1_infant_recon_all.2502281351.log

Fri Feb 28 13:51:15 UTC 2025
--age 13 --segfile /input/bibsnet/sub-06/ses-1/anat/sub-06_ses-1_space-T1w_desc-aseg_dseg.nii.gz --masked /tmp/work/nibabies_24_1_wf/single_subject_sub-06_ses-1_wf/infant_anat_fit_wf/apply_t1w_mask/clipped_masked.nii.gz --outdir /output/sourcedata/freesurfer/sub-06_ses-1 --subject sub-06_ses-1
infant_recon_all infant-dev-4a14499
b41660d545c9
Linux b41660d545c9 6.8.0-52-generic #53~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jan 15 19:18:46 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Processing the following subject: sub-06_ses-1
mri_convert --conform-dc /tmp/work/nibabies_24_1_wf/single_subject_sub-06_ses-1_wf/infant_anat_fit_wf/apply_t1w_mask/clipped_masked.nii.gz /output/sourcedata/freesurfer/sub-06_ses-1/work/mprage.nu.conf.masked.nii.gz 
reading from /tmp/work/nibabies_24_1_wf/single_subject_sub-06_ses-1_wf/infant_anat_fit_wf/apply_t1w_mask/clipped_masked.nii.gz...
TR=0.00, TE=0.00, TI=0.00, flip angle=0.00
i_ras = (0.995006, 0.0998159, -9.07845e-08)
j_ras = (-0.0998159, 0.995006, -2.52974e-08)
k_ras = (8.7806e-08, 3.42328e-08, 1)
keeping DC 0 2 1
ostr RAS, width 256, size 1
K ---------------
-0.80000   0.00000   0.00000   211.00000;
 0.00000   0.00000  -0.80000   256.00000;
 0.00000   0.80000   0.00000   8.00000;
 0.00000   0.00000   0.00000   1.00000;
Kinv ---------------
-1.25000  -0.00000  -0.00000   263.75000;
-0.00000  -0.00000   1.25000  -10.00000;
-0.00000  -1.25000  -0.00000   320.00000;
-0.00000  -0.00000  -0.00000   1.00000;
Smri ---------------
 0.79600  -0.07985   0.00000  -73.54336;
 0.07985   0.79600   0.00000  -106.09596;
-0.00000  -0.00000   0.80000  -125.97798;
 0.00000   0.00000   0.00000   1.00000;
Stemp ---------------
-0.99501  -0.00000  -0.09982   137.20143;
-0.09982  -0.00000   0.99501  -92.99484;
 0.00000  -1.00000  -0.00000   130.02200;
 0.00000   0.00000   0.00000   1.00000;
----------------------
changing data type from short to uchar (noscale = 0)...
MRIchangeType: Building histogram 0 223 1000, flo=0, fhi=0.999, dest_type=0
Reslicing using trilinear interpolation 
writing to /output/sourcedata/freesurfer/sub-06_ses-1/work/mprage.nu.conf.masked.nii.gz...
MASKED FILE /output/sourcedata/freesurfer/sub-06_ses-1/work/mprage.nu.conf.masked.nii.gz
WORKING WITH EXISTING SEGMENTATION FILE /input/bibsnet/sub-06/ses-1/anat/sub-06_ses-1_space-T1w_desc-aseg_dseg.nii.gz
mri_convert --conform-dc /input/bibsnet/sub-06/ses-1/anat/sub-06_ses-1_space-T1w_desc-aseg_dseg.nii.gz /output/sourcedata/freesurfer/sub-06_ses-1/work/finalaseg.nii.gz -rt nearest --no_scale 1 
INFO: using NIfTI-1 qform 
reading from /input/bibsnet/sub-06/ses-1/anat/sub-06_ses-1_space-T1w_desc-aseg_dseg.nii.gz...
TR=0.00, TE=0.00, TI=0.00, flip angle=0.00
i_ras = (0.995006, 0.0998159, -9.07845e-08)
j_ras = (-0.0998159, 0.995006, -2.52974e-08)
k_ras = (8.7806e-08, 3.42328e-08, 1)
keeping DC 0 2 1
ostr RAS, width 256, size 1
K ---------------
-0.80000   0.00000   0.00000   211.00000;
 0.00000   0.00000  -0.80000   256.00000;
 0.00000   0.80000   0.00000   8.00000;
 0.00000   0.00000   0.00000   1.00000;
Kinv ---------------
-1.25000  -0.00000  -0.00000   263.75000;
-0.00000  -0.00000   1.25000  -10.00000;
-0.00000  -1.25000  -0.00000   320.00000;
-0.00000  -0.00000  -0.00000   1.00000;
Smri ---------------
 0.79600  -0.07985   0.00000  -73.54336;
 0.07985   0.79600   0.00000  -106.09596;
-0.00000  -0.00000   0.80000  -125.97798;
 0.00000   0.00000   0.00000   1.00000;
Stemp ---------------
-0.99501  -0.00000  -0.09982   137.20143;
-0.09982  -0.00000   0.99501  -92.99485;
 0.00000  -1.00000  -0.00000   130.02199;
 0.00000   0.00000   0.00000   1.00000;
----------------------
Reslicing using nearest 
writing to /output/sourcedata/freesurfer/sub-06_ses-1/work/finalaseg.nii.gz...
/output/sourcedata/freesurfer/sub-06_ses-1/work/sub-06_ses-1/mri /tmp/work/nibabies_24_1_wf/single_subject_sub-06_ses-1_wf/infant_anat_fit_wf/infantfs_surface_recon_wf/reconall 
mri_convert norm.nii.gz norm.mgz 
reading from norm.nii.gz...
TR=0.00, TE=0.00, TI=0.00, flip angle=0.00
i_ras = (-0.995006, -0.0998159, 9.07845e-08)
j_ras = (-8.7806e-08, -3.42328e-08, -1)
k_ras = (-0.0998159, 0.995006, -2.52974e-08)
writing to norm.mgz...
ln: failed to create symbolic link 'brain.nii.gz': Operation not permitted

Stderr:

Traceback:
RuntimeError: subprocess exited with code 1.
`

Add any additional information or context about the problem here.

This issue does not occur when I try to run Nibabies without the --derivatives flag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions