I suspect that your subject directory/file names will match some pattern. You can use combination of a loop and shell "ls" command to cycle through all the subjects matching provided pattern. For example if you have data in directories you would do something line this:
#!/bin/tcsh cd /path/to/native/files for x in `ls -dA1 name_pattern_*`; do mkdir -p $SUBJECTS_DIR/${x}/mri/orig $FREESURFER_HOME/bin/mri_convert ${x}.nii.gz $SUBJECTS_DIR/${x}/mri/orig/001.mgz done If all files are in the same directory substitute '-dA1' for "-A1" and it should work. Note this assumes that you have nifti files, for DICOM you will need to modify it further. Cheers, Jacek 2011/7/15 汪贵宏 <wgh0...@126.com>: > Hi Bruce, > > In our research,if there are 100 subjects,how can I process these data > easily.For example,when I want to compare their thickness's difference,at > first,I should do > " mri_convert bert.nii bert.nii.gz",but when there are too many subjects,is > there a way to do all of these 100 subjects at the same time? > > Many thanks, > Wang > > > > _______________________________________________ > Freesurfer mailing list > Freesurfer@nmr.mgh.harvard.edu > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer > > > The information in this e-mail is intended only for the person to whom it is > addressed. If you believe this e-mail was sent to you in error and the > e-mail > contains patient information, please contact the Partners Compliance > HelpLine at > http://www.partners.org/complianceline . If the e-mail was sent to you in > error > but does not contain patient information, please contact the sender and > properly > dispose of the e-mail. > > _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer