Hello,
There was a bug in the sbtiv utility that was causing that “Namespace” error you were seeing.
Patched versions of the files are available here:
https://ftp.nmr.mgh.harvard.edu/pub/dist/lcnpublic/dist/sbtiv_patch/
To apply the patch, download the tarball, unpack it, and then copy the sbtiv.py script to /Applications/freesurfer/8.1.0/python/packages/samseg/cli/sbtiv.py, to replace the buggy file.
You are correct that the value in sbtiv.stats is the same as the intracranial volume reported in samseg.stats, and that it is the sbTIV value. I believe that sbtiv.stats should be automatically generated when
running the samseg pipeline, so you probably don’t need to run this util.
You can use the sbtiv util, along with a specified list of measurements that appear in samseg.stats to specify which measures it sums to give the total intracranial volume reported in the output file.
Best,
Jackson