Something like fslstats ${StudyFolder}/${Subject}/T1w/wmparc.nii.gz -l <key value> -u <key value> -V and take the second number in mm^3 should work. An alternative would be fslstats -K ${StudyFolder}/${Subject}/T1w/wmparc.nii.gz ${StudyFolder}/${Subject}/T1w/wmparc.nii.gz -V. You can look up the key values from this file: https://github.com/Washington-University/HCPpipelines/blob/master/global/config/FreeSurferAllLut.txt.
Matt.
--
You received this message because you are subscribed to the Google Groups "HCP-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
hcp-users+...@humanconnectome.org.
To view this discussion on the web visit
https://groups.google.com/a/humanconnectome.org/d/msgid/hcp-users/8aea6944-ca35-4ca3-b313-131345b26104n%40humanconnectome.org.
The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.
${StudyFolder}/${Subject}/T1w/${Subject} contains all the usual direct output from FS itself.
So, if you simply want the subcortical volumes as computed directly by FS, you can look in ${StudyFolder}/${Subject}/T1w/${Subject}/stats/aseg.stats.
Cheers,
-MH
--
Michael Harms, Ph.D.
-----------------------------------------------------------
Associate Professor of Psychiatry
Washington University School of Medicine
Department of Psychiatry, Box 8134
660 South Euclid Ave. Tel: 314-747-6173
St. Louis, MO 63110 Email: mha...@wustl.edu
From: "Glasser, Matt" <glas...@wustl.edu>
Reply-To: "hcp-...@humanconnectome.org" <hcp-...@humanconnectome.org>
Date: Wednesday, May 11, 2022 at 8:25 AM
To: "hcp-...@humanconnectome.org" <hcp-...@humanconnectome.org>
Subject: Re: [hcp-users] Compute volume (mm^3) subcortical regions
* External Email - Caution * |
To view this discussion on the web visit https://groups.google.com/a/humanconnectome.org/d/msgid/hcp-users/C2D798DE-1D9C-4172-9AC0-FCDDAA9C78EA%40wustl.edu.
Personally, I would use the values that FS generates natively as part of stats/aseg.stats, which includes some sort of partial volume adjustment (rather than running fslstats on T1w/wmparc.nii.gz, which will not include the partial volume adjustment). Obviously, the values should be similar however, and highly correlated.
--
Michael Harms, Ph.D.
-----------------------------------------------------------
Associate Professor of Psychiatry
Washington University School of Medicine
Department of Psychiatry, Box 8134
660 South Euclid Ave. Tel: 314-747-6173
St. Louis, MO 63110 Email: mha...@wustl.edu