The question is not actual anymore. I solved this issue by concatenating the files in R.
If anything, here's my R-code... For example for the right hemisphere do something like:
*** a<-c(); for (i in "NUMBER-OF-YOUR-SUBJECTS"){ nn <- paste("rh.",i,".asc", sep='') a <- (c(a, nn)) };
u<-c(); result<-c(); for (x in a) { u<- t(read.table(x, sep = " ", header=F, quote="")[, 5]); result <- rbind (result, u) }; ***
[do the same for the Left H/S and afterwards just concatenate them via 'cbind'] --- Alex
* Alexander Lebedev awlman@rambler.ru [Wed, 25 Jan 2012 13:01:32 +0400]:
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!
-- Sincerely Your Alexander Lebede \nI.P. Pavlov State Medical Universit 197022, Lev Tolstoy str. 6/ Saint Petersburg, Russian Federatio \ntel.:+7-921-441-79- e-mail: awlman@rambler. Skype ID: celtic__frost