Hi Alexander, I'm not sure what you are trying to accomplish. You want to get an Nsubject by Vvertex matrix in ascii? You can use mri_convert y.mgh y.ascii --ascii this will create a single column with all the data concatenated. The first V rows will be the Vvertices for the first subject, etc. Don't know if this gets you closer or not. doug
Alexander Lebedev wrote:
Dear Freesurfer users and developers!
I am trying to extract vertices by the script suggested by Pedro Paulo de M. Oliveira Jr.
for i in `seq 1 $numsubject` do mri_convert --frame $i y.mgh $FSAVERAGE_DIR/surf/lh.$i.mgh mris_convert -c $i.mgh $FSAVERAGE_DIR/surf/lh.inflated lh.$i.asc done
It works fine, but I'm just wondering if there is an easy opportunity to combine the vertices from each subject into one big N-by-V matrix (N - subject № , V- vertex №).
Thank you very much for your time!
Regards, Alexander Lebedev Stavanger University Hospital, Norway _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer