External Email - Use Caution
External Email - Use Caution
Dear FreeSurfer Development Team,
I'm reporting a typo in the surfreg command that causes registration operations to fail with an error, though the actual registration completes successfully.
**Bug Details:**
- File: /apps/freesurfer/7.4.1/freesurfer/bin/surfreg
- Line: 107
- Current: set fsaorig = $FREESURFER/subjets/fsaverage/mri/orig.mgz
- Should be: set fsaorig = $FREESURFER/subjects/fsaverage/mri/orig.mgz
**Impact:**
When running surfreg with the --no-annot flag (as recommended in the error messages for FreeSurfer 7.4.1), the command completes the registration successfully but then fails on the post-processing mris_convert step with:
"error: mghRead(/apps/freesurfer/7.4.1/freesurfer/subjets/fsaverage/mri/orig.mgz, -1): could not open file"
This causes the command to return a non-zero exit code even though the primary registration file (e.g., lh.fsaverage_sym.sphere.reg) is created correctly.
**Reproduction:**
surfreg --s <subject_id> --t fsaverage_sym --lh --no-annot
**Version:** FreeSurfer 7.4.1
Thank you for your work on FreeSurfer. Please let me know if you need any additional information.
Cheers
Ben