Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
It usual to have many FreeSurfer recon-all commands to process multiple datasets. This procedure helps to automate this: |
If you need to run recon-all many times (eg, you have many subjects), then you can run the following commands (in cshell) to launch many commands. Below, the script cd's into the $SUBJECTS_DIR where it is assumed th that the only files or folder that are there are your subjects' folders. In this case, they must have already been set up with the raw data in $SUBJECTS_DIR/$subject/mri/orig/ If you have many processors and enough memory, you can process many simultaneously by adding an ampersand (&) after recon-all -subjid $i -all (eg, "recon-all -subjid $i -all&") |
Line 7: | Line 13: |
SETENV SUBJECTS_DIR $PWD | setenv SUBJECTS_DIR $PWD |
If you need to run recon-all many times (eg, you have many subjects), then you can run the following commands (in cshell) to launch many commands. Below, the script cd's into the $SUBJECTS_DIR where it is assumed th that the only files or folder that are there are your subjects' folders. In this case, they must have already been set up with the raw data in $SUBJECTS_DIR/$subject/mri/orig/ If you have many processors and enough memory, you can process many simultaneously by adding an ampersand (&) after recon-all -subjid $i -all (eg, "recon-all -subjid $i -all&")
cd your_study_group_data setenv SUBJECTS_DIR $PWD foreach i (*) echo $i recon-all -subjid $i -all end
Wait some days...