Differences between revisions 18 and 19
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
 3. Run the first step of recon-all. See the ReconAllDevTable for individual steps that will be run during the whole process.
    '''`recon-all -i `''invol1''` -i `''invol2''` -autorecon1 -subjid `''your_subject_name'''''
 3. Import your data and create a subject data directory. This is done '''once''' using the following command:
Line 18: Line 17:
    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     '''`recon-all -i `''invol1''` -i `''invol2''` -subjid `''your_subject_name'''''
Line 20: Line 19:
 4. Check the talairach transform:     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.

 4. Run the first step of recon-all. See the ReconAllDevTable for individual steps that will be run during the whole process.
    '''`recon-all -autorecon1 -subjid `''your_subject_name'''''

 5. Check the talairach transform:
Line 26: Line 30:
 5. Check the skull strip:  6. Check the skull strip:
Line 34: Line 38:
 6. After you have an accurate brain volume, run the next step of recon-all:  7. After you have an accurate brain volume, run the next step of recon-all:
Line 36: Line 40:
 7. Check the white and pial surfaces:
8. Check the white and pial surfaces:
Line 46: Line 51:
 8. After you have accurate pial and white surfaces run the final step of recon-all:  9. After you have accurate pial and white surfaces run the final step of recon-all:

[wiki:FreeSurferWorkFlows top] | [wiki:BasicReconstruction previous] | [wiki:HistoricalReconstruction next]

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

  1. Source the correct version of FreeSurfer:

    • source your_freesurfer_dir/SetUpFreeSurfer.csh

  2. Set your SUBJECTS_DIR variable to your subjects directory:
    • setenv SUBJECTS_DIR your_subjects_dir

  3. 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.

  4. Run the first step of recon-all. See the ReconAllDevTable for individual steps that will be run during the whole process.

    • recon-all  -autorecon1 -subjid your_subject_name

  5. Check the talairach transform:
    • tkregister2 --mgz --s your_subject_name --fstal

    • For intructions on how to fix bad talairachs tranforms, refer to:
      • ["FsTutorial/Talairach"]
  6. Check the skull strip:
    • tkmedit your_subject_name brainmask.mgz -aux T1.mgz

  7. After you have an accurate brain volume, run the next step of recon-all:
    • recon-all -autorecon2 -subjid your_subject_name

  8. Check the white and pial surfaces:
    • tkmedit your_subject_name wm.mgz rh.white -aux brainmask.mgz -aux-surface lh.white

    • For intructions on editing the final surfaces, refer to:
  9. After you have accurate pial and white surfaces run the final step of recon-all:
    • recon-all -autorecon3 -subjid your_subject_name

RecommendedReconstruction (last edited 2014-08-20 11:34:47 by AllisonMoreau)