Differences between revisions 5 and 28 (spanning 23 versions)
Revision 5 as of 2006-01-23 17:32:43
Size: 2385
Editor: JenniPacheco
Comment:
Revision 28 as of 2011-07-05 16:13:20
Size: 3696
Editor: KhoaNguyen
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
[wiki:Self:FreeSurferWorkFlows top] | [wiki:Self:BasicReconstruction previous] | [wiki:Self:HistoricalReconstruction next] #acl AdminGroup:read,write,delete,revert All:read
[[
FreeSurferWorkFlows|top]] | [[BasicReconstruction|previous]] | [[HistoricalReconstruction|next]]
Line 3: Line 4:
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. 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.   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.
Line 14: Line 15:
 3. Run the first step of recon-all. See the RconAllDevTable 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 17: 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 19: Line 19:
 4. Check the talairach transform:
  4.1 Make sure the talairach subject is linked to `$SUBJECTS_DIR`
   if not: '''`ln -s $FREESURFER_HOME/subjects/talairach $SUBJECTS_DIR/.`'''
  4.2 '''`tkregister2 --mgz --s `''your_subject_name''` --fstal`'''
    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.
Line 24: Line 21:
  For intructions on how to fix bad talairachs tranforms, refer to:
   * ["FsTutorial/Talairach"]
 4. 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'''''
Line 27: Line 24:
 5. Check the skull strip:
   '''`tkmedit `''your_subject_name''` brain.mgz -aux T1.mgz`'''
   After your subject finishes running, do the following to make sure the recon was successful.

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

  For instructions 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`'''
Line 32: Line 38:
   * FsTutorial/SkullStripTutorial       After adding control points run the steps [[OtherUsefulFlags|-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).
   * FsTutorial/SkullStripFix
      After adjusting the skullstrip, run the steps -autorecon2 and -autorecon3.
Line 34: Line 42:
 6. After you have an accurate brain volume, run the next step of recon-all:
    '''`recon-all -autorecon2 -subjid `''your_subject_name'''''
Line 37: Line 43:
   '''`tkmedit `''your_subject_name''` wm.mgz rh.white -aux brain.mgz -aux-surface lh.white`'''    '''`tkmedit `''your_subject_name''` brainmask.mgz -aux wm.mgz -surfs`'''
Line 39: Line 45:

  For intructions on editing the final surfaces, refer to:
   * FsTutorial/FixingDefects
  For instructions on editing the final surfaces, refer to:
   * FsTutorial/WhiteMatterEdits
      After editing the wm.mgz volume run the steps [[OtherUsefulFlags|-autorecon2-wm]] (this will run -fill, using new wm.mgz volume, and everything else through the end of -autorecon2) and -autorecon3.
Line 43: Line 49:
      After editing the brainmask.mgz volume to adjust the pial surface, run the steps [[OtherUsefulFlags|-autorecon-pial]] (this will run -finalsurfs, using new brainmask.mgz volume, and everything else through the end of -autorecon3.)
Line 45: Line 52:
 8. After you have accurate pial and white surfaces run the final step of recon-all:
     '''`recon-all -autorecon3 -subjid `''your_subject_name'''''
 8. Next, check the segmentation:
   '''`tkmedit `''your_subject_name''` brainmask.mgz -surfs -aseg `'''

   For instructions on editing the aseg, refer to:
   * TkMeditGuide/TkMeditWorkingWithData/TkMeditSegmentations
      After editing the aseg, run the following steps:

top | previous | 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 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

    After your subject finishes running, do the following to make sure the recon was successful.
  5. Check the talairach transform:
    • tkregister2 --mgz --s your_subject_name --fstal

  6. 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:
      • FsTutorial/ControlPoints

        • 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).

      • FsTutorial/SkullStripFix

        • After adjusting the skullstrip, run the steps -autorecon2 and -autorecon3.
  7. 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:
  8. Next, check the segmentation:

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