External Email - Use Caution
Below is my samseg command:
samseg --t1w ${subject}_${ses}_T1w.nii.gz --sd . --s ${subject}_${ses}_samseg --refmode t1w --threads 16 --parallel
From the log file, samseg seems to run correctly, but once it reaches the samseg2recon steps, I receive the following error:
ln -sf orig.mgz rawavg.mgz
ERROR: ln -sf orig.mgz rawavg.mgz
ERROR: samseg2recon --s ${subject}_${ses}_samseg --tmpdir
${SUBJECTS_DIR}/${subject}_${
If I then (re)run samseg2recon on the samseg directory (see cmd below) , I can execute the failed lines, and this script completes without error.
samseg2recon --s ${subject}_${ses}_samseg
However, when I then try to run: segmentHA_T1.sh ${
Cannot find wmparc.mgz or norm.mgz or talairach.xfm for the subject.
Has the subject been procesed with recon-all?
As the error message correctly states, within that subject's dir, I do not have an mri/norm.mgz or mri/wmparc.mgz. I
do have an mri/samseg/transforms/samse
If it is helpful to know:
i. Running recon-all then segmentHA_T1.sh completes without error...
ii. Copy over the mri dir from the recon-all to the samseg subject dir, then running segmentHA_T1.sh also completes without error...
iii. I am running Ubuntu 20.04.4, freesurfer-linux-ubunu18x86_
Any idea what may be going wrong with samseg/samseg2recon? I am happy to use the workaround listed above, but I suspect there may be a more efficient way, and or unintended implications when mixing and matching recon-all and samseg...?
Thank you for your help and insight!
All the best,
Jacob