0

I’m trying to extract the statical data for multiple subjects using the aparcstats2table program in freesurfer. I used this command to extract the statical data for one subject.

aparcstats2table --subjects /fefs1/fcit/ezahamalyoubi/freesurfer/subjects/MCI_Female_Subjects/I4688/ --hemi lh --meas volume --parc=aparc --tablefile=I4688_lh_volume.txt

how can I edit this command to work for many subjects and store the statical data in one txt file?

Any clarification will help

-Esraa

Ersaa
  • 5
  • 2

1 Answers1

0

Just add the list of subjects to the '--subjects' option:

export SUBJECTS_DIR=/fefs1/fcit/ezahamalyoubi/freesurfer/subjects/MCI_Female_Subjects
SUBJ=$(ls ${SUBJECTS_DIR} | grep -v fsaverage)

echo "Extracting stats for ${SUBJ}"

aparcstats2table --subjects ${SUBJ} --hemi lh --meas volume --parc=aparc --tablefile=lh_volume.txt
mrunibe
  • 16
  • 2