Convert Freesurfer Outputs and Calculate Dist Q


Written by Owen Phillips. Email Dr. Katherine Narr if you have any questions. For more information, see the protocols page.

Dist Q and Aseg from Conversion Pipeline

 

Once Freesurfer has finished running, you can run the pipeline Freesurfer_masking_and_convertion_RAS. This will take the .mgz outputs from Freesurfer and convert them to analyze format. Furthermore, it will combine the segmented labels to generate a useful brainmask. This brainmask is then used to generate hemisphere masks, which are in turned used to generate tissue segmented images (PVC) and finally thickness distance quick (Dist Q) images.

  1. Required inputs: The inputs will be found in your freesurfer directory mri folder. For example: */schizo/ANATOMY_CLASS/FS/M203_INSTRUCTOR_27/mri
    1. T1.mgz
    2. aseg.mgz
    3. ribbon.mgz
    4. brainmask.mgz
  2. Outputs:
    1. T1.img
    2. T1 Masked.img
    3. Dist Q Left Hemisphere (distance quick) (analyze format .img/.hdr)
    4. Dist Q Left Hemisphere (distance quick) (Minc format .mnc)
    5. Tissue Classified (PVC) Left Hemisphere
    6. Left Hemisphere mask
    7. White Matter Left Hemisphere
    8. White Matter Right Hemisphere
    9. Tissue Classified (PVC) Right Hemisphere
    10. Right Hemisphere mask
    11. Dist Q Right Hemisphere (distance quick) (analyze format .img/.hdr)
    12. Dist Q Right Hemisphere (distance quick) (Minc format .mnc)
    13. Aseg (Freesurfer generated labels .img)
    14. Ribbon (Freesurfere generated image surface file .img)
    15. Freesurfer's automatic brainmask (.img) - This file is useful as backup but is otherwise not used.
    16. T1 automasked (.img) - This file is the T1 image that has been masked by the freesurfer automatic brainmask.
  3. After running, check to insure you have to correct left right orientation. This can change depending on your data set. If you need to fix it, you can adjust the MRI Convert module from RAS orientation to LAS orientation.