Hi, I am wondering if it is possible to use some kind of a list of subjects to specify input for mri_concat, like you can use --f filename, where filename refers to a list of subjects, for mri_surf2surf ?
It seems that using e.g.: mri_concat subj*-lh.mgz --o allsubjs-lh.mgz is an alternative to: mri_concat subj1-lh.mgz subj2-lh.mgz ... subjN-lh.mgz--o allsubjs-lh.mgz
but if you have a typical Freesurfer subjects directory where the files you want to concatenate are buried in e.g. the surf directory of each subject, it would be very useful to be able to specify a list of subjects.
The mri_concat --help function doesn't seem to include any such option. Am I missing something, is there an alternative way of doing it?
Thank you!
Hi Lars,
mri_concat does not have that kind of option. What specifically do you want to concat? If it is just something in the subjects' mri dir (eg, orig.mgz), then you can just:
mri_concat $SUBJECTS_DIR/subj*/mri/orig.mgz --o all.orig.mgz
Alternatively, you can use mris_preproc which does allow a --f subjectlistfile. It only works for surfaces.
doug
On Thu, 7 Dec 2006, Lars M. Rimol wrote:
Hi, I am wondering if it is possible to use some kind of a list of subjects to specify input for mri_concat, like you can use --f filename, where filename refers to a list of subjects, for mri_surf2surf ?
It seems that using e.g.: mri_concat subj*-lh.mgz --o allsubjs-lh.mgz is an alternative to: mri_concat subj1-lh.mgz subj2-lh.mgz ... subjN-lh.mgz--o allsubjs-lh.mgz
but if you have a typical Freesurfer subjects directory where the files you want to concatenate are buried in e.g. the surf directory of each subject, it would be very useful to be able to specify a list of subjects.
The mri_concat --help function doesn't seem to include any such option. Am I missing something, is there an alternative way of doing it?
Thank you!
freesurfer@nmr.mgh.harvard.edu