Deletions are marked like this. | Additions are marked like this. |
Line 24: | Line 24: |
After your subject finishes running, do the following to make sure the recon was successful. |
After your subject finishes running, do the following to make sure the recon was successful. |
Line 44: | Line 45: |
For intructions on editing the final surfaces, refer to: | For instructions on editing the final surfaces, refer to: |
Line 54: | Line 55: |
For instructions on how to edit the aseg, refer to: | For instructions on editing the aseg, refer to: |
This workflow completes the reconstruction process in three different steps, allowing the user to check the outputs before proceeding. See the ReconAllDevTable for a list of the steps run with this command, or ReconAllBlockDiagram for a different presentation. OtherUsefulFlags for a list of other flags that you can use with recon-all. Any manual intervention that is needed is done before moving on to the next step, which can save both time and use of computer power.
FreeSurfer Troubleshooting Reconstruction Work Flow
Source the correct version of FreeSurfer:
source your_freesurfer_dir/SetUpFreeSurfer.csh
- Set your SUBJECTS_DIR variable to your subjects directory:
setenv SUBJECTS_DIR your_subjects_dir
Import your data and create a subject data directory. This is done once using the following command:
recon-all -i invol1 -i invol2 -subjid your_subject_name
where invol1 and invol2 are paths to your input files. You can use as many as necessary (i.e., -i invol3 -i invol4) and they can be in any format that is accepted by mri_convert. The command above will create an empty directory named your_subject_name, except the mri/orig directory will contain files named 001.mgz and 002.mgz, which are your imported structurals. Once your input files are imported, you do not need to use the -i flags again.
Run the all the steps of recon-all. See the ReconAllDevTable for individual steps that will be run during the whole process.
recon-all -all -subjid your_subject_name
- Check the talairach transform:
tkregister2 --mgz --s your_subject_name --fstal
- For instructions on how to fix bad talairachs tranforms, refer to:
- Check the skull strip:
tkmedit your_subject_name brainmask.mgz -aux T1.mgz
- For instructions on how to fix poor normalizations or skull strips, refer to:
After adding control points run the steps -autorecon-cp (this will run -normalization, using control points, and everything else through the end of -autorecon2) and -autorecon3 (this will update all your stat tables with the new changes).
- After adjusting the skullstrip, run the steps -autorecon2 and -autorecon3.
- Check the white and pial surfaces:
tkmedit your_subject_name brainmask.mgz -aux wm.mgz -surfs
- For instructions on editing the final surfaces, refer to:
After editing the wm.mgz volume run the steps -autorecon2-wm (this will run -fill, using new wm.mgz volume, and everything else through the end of -autorecon2) and -autorecon3.
After editing the brainmask.mgz volume to adjust the pial surface, run the steps -autorecon-pial (this will run -finalsurfs, using new brainmask.mgz volume, and everything else through the end of -autorecon3.)
- Next, check the segmentation:
tkmedit your_subject_name brainmask.mgz -surfs -aseg For instructions on editing the aseg, refer to: