recon-all.cmd 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687
  1. mri_convert /home/data/exppsy/forrest_gump/openfmri.org/sub014/anatomy/highres001.nii.gz /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/orig/001.mgz
  2. #--------------------------------------------
  3. #@# T2/FLAIR Input Thu Aug 8 10:54:35 CEST 2013
  4. mri_convert /home/data/exppsy/forrest_gump/openfmri.org/sub014/anatomy/other/t2w001.nii.gz /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/orig/T2raw.mgz
  5. #--------------------------------------------
  6. #@# MotionCor Thu Aug 8 10:54:50 CEST 2013
  7. cp /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/orig/001.mgz /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/rawavg.mgz
  8. mri_convert /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/rawavg.mgz /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/orig.mgz --conform --cw256
  9. mri_add_xform_to_header -c /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/transforms/talairach.xfm /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/orig.mgz /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/orig.mgz
  10. #--------------------------------------------
  11. #@# Talairach Thu Aug 8 10:55:30 CEST 2013
  12. mri_nu_correct.mni --n 1 --proto-iters 1000 --distance 50 --no-rescale --i orig.mgz --o orig_nu.mgz
  13. talairach_avi --i orig_nu.mgz --xfm transforms/talairach.auto.xfm
  14. cp transforms/talairach.auto.xfm transforms/talairach.xfm
  15. #--------------------------------------------
  16. #@# Talairach Failure Detection Thu Aug 8 10:58:14 CEST 2013
  17. talairach_afd -T 0.005 -xfm transforms/talairach.xfm
  18. awk -f /opt/freesurfer/5.3.0/bin/extract_talairach_avi_QA.awk /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/transforms/talairach_avi.log
  19. tal_QC_AZS /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/transforms/talairach_avi.log
  20. #--------------------------------------------
  21. #@# Nu Intensity Correction Thu Aug 8 10:58:14 CEST 2013
  22. mri_nu_correct.mni --i orig.mgz --o nu.mgz --uchar transforms/talairach.xfm --n 2
  23. mri_add_xform_to_header -c /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/transforms/talairach.xfm nu.mgz nu.mgz
  24. #--------------------------------------------
  25. #@# Intensity Normalization Thu Aug 8 11:00:22 CEST 2013
  26. mri_normalize -g 1 nu.mgz T1.mgz
  27. #--------------------------------------------
  28. #@# Skull Stripping Thu Aug 8 11:03:11 CEST 2013
  29. mri_em_register -skull nu.mgz /opt/freesurfer/5.3.0/average/RB_all_withskull_2008-03-26.gca transforms/talairach_with_skull.lta
  30. mri_watershed -T1 -brain_atlas /opt/freesurfer/5.3.0/average/RB_all_withskull_2008-03-26.gca transforms/talairach_with_skull.lta T1.mgz brainmask.auto.mgz
  31. cp brainmask.auto.mgz brainmask.mgz
  32. #-------------------------------------
  33. #@# EM Registration Thu Aug 8 11:33:41 CEST 2013
  34. mri_em_register -uns 3 -mask brainmask.mgz nu.mgz /opt/freesurfer/5.3.0/average/RB_all_2008-03-26.gca transforms/talairach.lta
  35. #--------------------------------------
  36. #@# CA Normalize Thu Aug 8 12:05:04 CEST 2013
  37. mri_ca_normalize -c ctrl_pts.mgz -mask brainmask.mgz nu.mgz /opt/freesurfer/5.3.0/average/RB_all_2008-03-26.gca transforms/talairach.lta norm.mgz
  38. #--------------------------------------
  39. #@# CA Reg Thu Aug 8 12:07:07 CEST 2013
  40. mri_ca_register -nobigventricles -T transforms/talairach.lta -align-after -mask brainmask.mgz norm.mgz /opt/freesurfer/5.3.0/average/RB_all_2008-03-26.gca transforms/talairach.m3z
  41. #--------------------------------------
  42. #@# CA Reg Inv Thu Aug 8 17:38:27 CEST 2013
  43. mri_ca_register -invert-and-save transforms/talairach.m3z
  44. #--------------------------------------
  45. #@# Remove Neck Thu Aug 8 17:40:01 CEST 2013
  46. mri_remove_neck -radius 25 nu.mgz transforms/talairach.m3z /opt/freesurfer/5.3.0/average/RB_all_2008-03-26.gca nu_noneck.mgz
  47. #--------------------------------------
  48. #@# SkullLTA Thu Aug 8 17:41:36 CEST 2013
  49. mri_em_register -skull -t transforms/talairach.lta nu_noneck.mgz /opt/freesurfer/5.3.0/average/RB_all_withskull_2008-03-26.gca transforms/talairach_with_skull_2.lta
  50. #--------------------------------------
  51. #@# SubCort Seg Thu Aug 8 18:24:59 CEST 2013
  52. mri_ca_label -align norm.mgz transforms/talairach.m3z /opt/freesurfer/5.3.0/average/RB_all_2008-03-26.gca aseg.auto_noCCseg.mgz
  53. mri_cc -aseg aseg.auto_noCCseg.mgz -o aseg.auto.mgz -lta /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/transforms/cc_up.lta sub014
  54. #--------------------------------------
  55. #@# Merge ASeg Thu Aug 8 18:45:13 CEST 2013
  56. cp aseg.auto.mgz aseg.mgz
  57. #--------------------------------------------
  58. #@# Intensity Normalization2 Thu Aug 8 18:45:13 CEST 2013
  59. mri_normalize -aseg aseg.mgz -mask brainmask.mgz norm.mgz brain.mgz
  60. #--------------------------------------------
  61. #@# Mask BFS Thu Aug 8 18:49:52 CEST 2013
  62. mri_mask -T 5 brain.mgz brainmask.mgz brain.finalsurfs.mgz
  63. #--------------------------------------------
  64. #@# WM Segmentation Thu Aug 8 18:49:55 CEST 2013
  65. mri_segment brain.mgz wm.seg.mgz
  66. mri_edit_wm_with_aseg -keep-in wm.seg.mgz brain.mgz aseg.mgz wm.asegedit.mgz
  67. mri_pretess wm.asegedit.mgz wm norm.mgz wm.mgz
  68. #--------------------------------------------
  69. #@# Fill Thu Aug 8 18:52:25 CEST 2013
  70. mri_fill -a ../scripts/ponscc.cut.log -xform transforms/talairach.lta -segmentation aseg.auto_noCCseg.mgz wm.mgz filled.mgz
  71. #--------------------------------------------
  72. #@# Tessellate lh Thu Aug 8 18:53:24 CEST 2013
  73. mri_pretess ../mri/filled.mgz 255 ../mri/norm.mgz ../mri/filled-pretess255.mgz
  74. mri_tessellate ../mri/filled-pretess255.mgz 255 ../surf/lh.orig.nofix
  75. rm -f ../mri/filled-pretess255.mgz
  76. mris_extract_main_component ../surf/lh.orig.nofix ../surf/lh.orig.nofix
  77. #--------------------------------------------
  78. #@# Smooth1 lh Thu Aug 8 18:53:33 CEST 2013
  79. mris_smooth -nw -seed 1234 ../surf/lh.orig.nofix ../surf/lh.smoothwm.nofix
  80. #--------------------------------------------
  81. #@# Inflation1 lh Thu Aug 8 18:53:37 CEST 2013
  82. mris_inflate -no-save-sulc ../surf/lh.smoothwm.nofix ../surf/lh.inflated.nofix
  83. #--------------------------------------------
  84. #@# QSphere lh Thu Aug 8 18:54:16 CEST 2013
  85. mris_sphere -q -seed 1234 ../surf/lh.inflated.nofix ../surf/lh.qsphere.nofix
  86. #--------------------------------------------
  87. #@# Fix Topology lh Thu Aug 8 18:59:09 CEST 2013
  88. cp ../surf/lh.orig.nofix ../surf/lh.orig
  89. cp ../surf/lh.inflated.nofix ../surf/lh.inflated
  90. mris_fix_topology -mgz -sphere qsphere.nofix -ga -seed 1234 sub014 lh
  91. mris_euler_number ../surf/lh.orig
  92. mris_remove_intersection ../surf/lh.orig ../surf/lh.orig
  93. rm ../surf/lh.inflated
  94. #--------------------------------------------
  95. #@# Make White Surf lh Thu Aug 8 19:07:48 CEST 2013
  96. mris_make_surfaces -noaparc -whiteonly -mgz -T1 brain.finalsurfs sub014 lh
  97. #--------------------------------------------
  98. #@# Smooth2 lh Thu Aug 8 19:13:48 CEST 2013
  99. mris_smooth -n 3 -nw -seed 1234 ../surf/lh.white ../surf/lh.smoothwm
  100. #--------------------------------------------
  101. #@# Inflation2 lh Thu Aug 8 19:13:53 CEST 2013
  102. mris_inflate ../surf/lh.smoothwm ../surf/lh.inflated
  103. mris_curvature -thresh .999 -n -a 5 -w -distances 10 10 ../surf/lh.inflated
  104. #-----------------------------------------
  105. #@# Curvature Stats lh Thu Aug 8 19:16:02 CEST 2013
  106. mris_curvature_stats -m --writeCurvatureFiles -G -o ../stats/lh.curv.stats -F smoothwm sub014 lh curv sulc
  107. #--------------------------------------------
  108. #@# Sphere lh Thu Aug 8 19:16:06 CEST 2013
  109. mris_sphere -seed 1234 ../surf/lh.inflated ../surf/lh.sphere
  110. #--------------------------------------------
  111. #@# Surf Reg lh Thu Aug 8 20:10:06 CEST 2013
  112. mris_register -curv ../surf/lh.sphere /opt/freesurfer/5.3.0/average/lh.average.curvature.filled.buckner40.tif ../surf/lh.sphere.reg
  113. #--------------------------------------------
  114. #@# Jacobian white lh Thu Aug 8 20:38:31 CEST 2013
  115. mris_jacobian ../surf/lh.white ../surf/lh.sphere.reg ../surf/lh.jacobian_white
  116. #--------------------------------------------
  117. #@# AvgCurv lh Thu Aug 8 20:38:34 CEST 2013
  118. mrisp_paint -a 5 /opt/freesurfer/5.3.0/average/lh.average.curvature.filled.buckner40.tif#6 ../surf/lh.sphere.reg ../surf/lh.avg_curv
  119. #-----------------------------------------
  120. #@# Cortical Parc lh Thu Aug 8 20:38:36 CEST 2013
  121. mris_ca_label -l ../label/lh.cortex.label -aseg ../mri/aseg.mgz -seed 1234 sub014 lh ../surf/lh.sphere.reg /opt/freesurfer/5.3.0/average/lh.curvature.buckner40.filled.desikan_killiany.2010-03-25.gcs ../label/lh.aparc.annot
  122. #--------------------------------------------
  123. #@# Make Pial Surf lh Thu Aug 8 20:39:34 CEST 2013
  124. mris_make_surfaces -white NOWRITE -mgz -T1 brain.finalsurfs sub014 lh
  125. #--------------------------------------------
  126. #@# Surf Volume lh Thu Aug 8 20:52:15 CEST 2013
  127. mris_calc -o lh.area.mid lh.area add lh.area.pial
  128. mris_calc -o lh.area.mid lh.area.mid div 2
  129. mris_calc -o lh.volume lh.area.mid mul lh.thickness
  130. #-----------------------------------------
  131. #@# WM/GM Contrast lh Thu Aug 8 20:52:15 CEST 2013
  132. pctsurfcon --s sub014 --lh-only
  133. #-----------------------------------------
  134. #@# Parcellation Stats lh Thu Aug 8 20:52:28 CEST 2013
  135. mris_anatomical_stats -mgz -cortex ../label/lh.cortex.label -f ../stats/lh.aparc.stats -b -a ../label/lh.aparc.annot -c ../label/aparc.annot.ctab sub014 lh white
  136. #-----------------------------------------
  137. #@# Cortical Parc 2 lh Thu Aug 8 20:52:43 CEST 2013
  138. mris_ca_label -l ../label/lh.cortex.label -aseg ../mri/aseg.mgz -seed 1234 sub014 lh ../surf/lh.sphere.reg /opt/freesurfer/5.3.0/average/lh.destrieux.simple.2009-07-29.gcs ../label/lh.aparc.a2009s.annot
  139. #-----------------------------------------
  140. #@# Parcellation Stats 2 lh Thu Aug 8 20:53:47 CEST 2013
  141. mris_anatomical_stats -mgz -cortex ../label/lh.cortex.label -f ../stats/lh.aparc.a2009s.stats -b -a ../label/lh.aparc.a2009s.annot -c ../label/aparc.annot.a2009s.ctab sub014 lh white
  142. #-----------------------------------------
  143. #@# Cortical Parc 3 lh Thu Aug 8 20:54:04 CEST 2013
  144. mris_ca_label -l ../label/lh.cortex.label -aseg ../mri/aseg.mgz -seed 1234 sub014 lh ../surf/lh.sphere.reg /opt/freesurfer/5.3.0/average/lh.DKTatlas40.gcs ../label/lh.aparc.DKTatlas40.annot
  145. #-----------------------------------------
  146. #@# Parcellation Stats 3 lh Thu Aug 8 20:55:00 CEST 2013
  147. mris_anatomical_stats -mgz -cortex ../label/lh.cortex.label -f ../stats/lh.aparc.DKTatlas40.stats -b -a ../label/lh.aparc.DKTatlas40.annot -c ../label/aparc.annot.DKTatlas40.ctab sub014 lh white
  148. #--------------------------------------------
  149. #@# Tessellate rh Thu Aug 8 20:55:18 CEST 2013
  150. mri_pretess ../mri/filled.mgz 127 ../mri/norm.mgz ../mri/filled-pretess127.mgz
  151. mri_tessellate ../mri/filled-pretess127.mgz 127 ../surf/rh.orig.nofix
  152. rm -f ../mri/filled-pretess127.mgz
  153. mris_extract_main_component ../surf/rh.orig.nofix ../surf/rh.orig.nofix
  154. #--------------------------------------------
  155. #@# Smooth1 rh Thu Aug 8 20:55:26 CEST 2013
  156. mris_smooth -nw -seed 1234 ../surf/rh.orig.nofix ../surf/rh.smoothwm.nofix
  157. #--------------------------------------------
  158. #@# Inflation1 rh Thu Aug 8 20:55:31 CEST 2013
  159. mris_inflate -no-save-sulc ../surf/rh.smoothwm.nofix ../surf/rh.inflated.nofix
  160. #--------------------------------------------
  161. #@# QSphere rh Thu Aug 8 20:56:03 CEST 2013
  162. mris_sphere -q -seed 1234 ../surf/rh.inflated.nofix ../surf/rh.qsphere.nofix
  163. #--------------------------------------------
  164. #@# Fix Topology rh Thu Aug 8 21:00:23 CEST 2013
  165. cp ../surf/rh.orig.nofix ../surf/rh.orig
  166. cp ../surf/rh.inflated.nofix ../surf/rh.inflated
  167. mris_fix_topology -mgz -sphere qsphere.nofix -ga -seed 1234 sub014 rh
  168. mris_euler_number ../surf/rh.orig
  169. mris_remove_intersection ../surf/rh.orig ../surf/rh.orig
  170. rm ../surf/rh.inflated
  171. #--------------------------------------------
  172. #@# Make White Surf rh Thu Aug 8 21:09:29 CEST 2013
  173. mris_make_surfaces -noaparc -whiteonly -mgz -T1 brain.finalsurfs sub014 rh
  174. #--------------------------------------------
  175. #@# Smooth2 rh Thu Aug 8 21:16:23 CEST 2013
  176. mris_smooth -n 3 -nw -seed 1234 ../surf/rh.white ../surf/rh.smoothwm
  177. #--------------------------------------------
  178. #@# Inflation2 rh Thu Aug 8 21:16:27 CEST 2013
  179. mris_inflate ../surf/rh.smoothwm ../surf/rh.inflated
  180. mris_curvature -thresh .999 -n -a 5 -w -distances 10 10 ../surf/rh.inflated
  181. #-----------------------------------------
  182. #@# Curvature Stats rh Thu Aug 8 21:18:38 CEST 2013
  183. mris_curvature_stats -m --writeCurvatureFiles -G -o ../stats/rh.curv.stats -F smoothwm sub014 rh curv sulc
  184. #--------------------------------------------
  185. #@# Sphere rh Thu Aug 8 21:18:43 CEST 2013
  186. mris_sphere -seed 1234 ../surf/rh.inflated ../surf/rh.sphere
  187. #--------------------------------------------
  188. #@# Surf Reg rh Thu Aug 8 22:08:50 CEST 2013
  189. mris_register -curv ../surf/rh.sphere /opt/freesurfer/5.3.0/average/rh.average.curvature.filled.buckner40.tif ../surf/rh.sphere.reg
  190. #--------------------------------------------
  191. #@# Jacobian white rh Thu Aug 8 22:34:59 CEST 2013
  192. mris_jacobian ../surf/rh.white ../surf/rh.sphere.reg ../surf/rh.jacobian_white
  193. #--------------------------------------------
  194. #@# AvgCurv rh Thu Aug 8 22:35:01 CEST 2013
  195. mrisp_paint -a 5 /opt/freesurfer/5.3.0/average/rh.average.curvature.filled.buckner40.tif#6 ../surf/rh.sphere.reg ../surf/rh.avg_curv
  196. #-----------------------------------------
  197. #@# Cortical Parc rh Thu Aug 8 22:35:03 CEST 2013
  198. mris_ca_label -l ../label/rh.cortex.label -aseg ../mri/aseg.mgz -seed 1234 sub014 rh ../surf/rh.sphere.reg /opt/freesurfer/5.3.0/average/rh.curvature.buckner40.filled.desikan_killiany.2010-03-25.gcs ../label/rh.aparc.annot
  199. #--------------------------------------------
  200. #@# Make Pial Surf rh Thu Aug 8 22:36:05 CEST 2013
  201. mris_make_surfaces -white NOWRITE -mgz -T1 brain.finalsurfs sub014 rh
  202. #--------------------------------------------
  203. #@# Surf Volume rh Thu Aug 8 22:50:16 CEST 2013
  204. mris_calc -o rh.area.mid rh.area add rh.area.pial
  205. mris_calc -o rh.area.mid rh.area.mid div 2
  206. mris_calc -o rh.volume rh.area.mid mul rh.thickness
  207. #-----------------------------------------
  208. #@# WM/GM Contrast rh Thu Aug 8 22:50:21 CEST 2013
  209. pctsurfcon --s sub014 --rh-only
  210. #-----------------------------------------
  211. #@# Parcellation Stats rh Thu Aug 8 22:50:41 CEST 2013
  212. mris_anatomical_stats -mgz -cortex ../label/rh.cortex.label -f ../stats/rh.aparc.stats -b -a ../label/rh.aparc.annot -c ../label/aparc.annot.ctab sub014 rh white
  213. #-----------------------------------------
  214. #@# Cortical Parc 2 rh Thu Aug 8 22:51:00 CEST 2013
  215. mris_ca_label -l ../label/rh.cortex.label -aseg ../mri/aseg.mgz -seed 1234 sub014 rh ../surf/rh.sphere.reg /opt/freesurfer/5.3.0/average/rh.destrieux.simple.2009-07-29.gcs ../label/rh.aparc.a2009s.annot
  216. #-----------------------------------------
  217. #@# Parcellation Stats 2 rh Thu Aug 8 22:52:09 CEST 2013
  218. mris_anatomical_stats -mgz -cortex ../label/rh.cortex.label -f ../stats/rh.aparc.a2009s.stats -b -a ../label/rh.aparc.a2009s.annot -c ../label/aparc.annot.a2009s.ctab sub014 rh white
  219. #-----------------------------------------
  220. #@# Cortical Parc 3 rh Thu Aug 8 22:52:34 CEST 2013
  221. mris_ca_label -l ../label/rh.cortex.label -aseg ../mri/aseg.mgz -seed 1234 sub014 rh ../surf/rh.sphere.reg /opt/freesurfer/5.3.0/average/rh.DKTatlas40.gcs ../label/rh.aparc.DKTatlas40.annot
  222. #-----------------------------------------
  223. #@# Parcellation Stats 3 rh Thu Aug 8 22:53:49 CEST 2013
  224. mris_anatomical_stats -mgz -cortex ../label/rh.cortex.label -f ../stats/rh.aparc.DKTatlas40.stats -b -a ../label/rh.aparc.DKTatlas40.annot -c ../label/aparc.annot.DKTatlas40.ctab sub014 rh white
  225. #--------------------------------------------
  226. #@# Refine Pial Surfs w/ T2/FLAIR Thu Aug 8 22:54:13 CEST 2013
  227. bbregister --s sub014 --mov /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/orig/T2raw.mgz --lta /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/transforms/T2raw.lta --init-fsl --T2
  228. mri_convert -at /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/transforms/T2raw.lta -rl /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/orig.mgz /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/orig/T2raw.mgz /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/T2.mgz
  229. mri_normalize -aseg /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/aseg.mgz -sigma 4 -surface /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/surf/rh.white identity.nofile -surface /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/surf/lh.white identity.nofile /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/T2.mgz /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/mri/T2.mgz
  230. cp -v /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/surf/lh.pial /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/surf/lh.woT2.pial
  231. mris_make_surfaces -orig_white white -orig_pial woT2.pial -white NOWRITE -mgz -T1 brain.finalsurfs -T2 ../mri/T2 sub014 lh
  232. cp -v /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/surf/rh.pial /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/sub014/surf/rh.woT2.pial
  233. mris_make_surfaces -orig_white white -orig_pial woT2.pial -white NOWRITE -mgz -T1 brain.finalsurfs -T2 ../mri/T2 sub014 rh
  234. #--------------------------------------------
  235. #@# Surf Volume lh Thu Aug 8 23:42:44 CEST 2013
  236. mris_calc -o lh.area.mid lh.area add lh.area.pial
  237. mris_calc -o lh.area.mid lh.area.mid div 2
  238. mris_calc -o lh.volume lh.area.mid mul lh.thickness
  239. #--------------------------------------------
  240. #@# Surf Volume rh Thu Aug 8 23:42:45 CEST 2013
  241. mris_calc -o rh.area.mid rh.area add rh.area.pial
  242. mris_calc -o rh.area.mid rh.area.mid div 2
  243. mris_calc -o rh.volume rh.area.mid mul rh.thickness
  244. #--------------------------------------------
  245. #@# Cortical ribbon mask Thu Aug 8 23:42:46 CEST 2013
  246. mris_volmask --label_left_white 2 --label_left_ribbon 3 --label_right_white 41 --label_right_ribbon 42 --save_ribbon sub014
  247. #--------------------------------------------
  248. #@# ASeg Stats Thu Aug 8 23:58:03 CEST 2013
  249. mri_segstats --seg mri/aseg.mgz --sum stats/aseg.stats --pv mri/norm.mgz --empty --brainmask mri/brainmask.mgz --brain-vol-from-seg --excludeid 0 --excl-ctxgmwm --supratent --subcortgray --in mri/norm.mgz --in-intensity-name norm --in-intensity-units MR --etiv --surf-wm-vol --surf-ctx-vol --totalgray --euler --ctab /opt/freesurfer/5.3.0/ASegStatsLUT.txt --subject sub014
  250. #-----------------------------------------
  251. #@# AParc-to-ASeg Fri Aug 9 00:03:07 CEST 2013
  252. mri_aparc2aseg --s sub014 --volmask
  253. mri_aparc2aseg --s sub014 --volmask --a2009s
  254. #-----------------------------------------
  255. #@# WMParc Fri Aug 9 00:08:22 CEST 2013
  256. mri_aparc2aseg --s sub014 --labelwm --hypo-as-wm --rip-unknown --volmask --o mri/wmparc.mgz --ctxseg aparc+aseg.mgz
  257. mri_segstats --seg mri/wmparc.mgz --sum stats/wmparc.stats --pv mri/norm.mgz --excludeid 0 --brainmask mri/brainmask.mgz --in mri/norm.mgz --in-intensity-name norm --in-intensity-units MR --subject sub014 --surf-wm-vol --ctab /opt/freesurfer/5.3.0/WMParcStatsLUT.txt --etiv
  258. #--------------------------------------------
  259. #@# BA Labels lh Fri Aug 9 00:19:44 CEST 2013
  260. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.BA1.label --trgsubject sub014 --trglabel ./lh.BA1.label --hemi lh --regmethod surface
  261. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.BA2.label --trgsubject sub014 --trglabel ./lh.BA2.label --hemi lh --regmethod surface
  262. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.BA3a.label --trgsubject sub014 --trglabel ./lh.BA3a.label --hemi lh --regmethod surface
  263. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.BA3b.label --trgsubject sub014 --trglabel ./lh.BA3b.label --hemi lh --regmethod surface
  264. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.BA4a.label --trgsubject sub014 --trglabel ./lh.BA4a.label --hemi lh --regmethod surface
  265. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.BA4p.label --trgsubject sub014 --trglabel ./lh.BA4p.label --hemi lh --regmethod surface
  266. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.BA6.label --trgsubject sub014 --trglabel ./lh.BA6.label --hemi lh --regmethod surface
  267. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.BA44.label --trgsubject sub014 --trglabel ./lh.BA44.label --hemi lh --regmethod surface
  268. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.BA45.label --trgsubject sub014 --trglabel ./lh.BA45.label --hemi lh --regmethod surface
  269. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.V1.label --trgsubject sub014 --trglabel ./lh.V1.label --hemi lh --regmethod surface
  270. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.V2.label --trgsubject sub014 --trglabel ./lh.V2.label --hemi lh --regmethod surface
  271. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.MT.label --trgsubject sub014 --trglabel ./lh.MT.label --hemi lh --regmethod surface
  272. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.perirhinal.label --trgsubject sub014 --trglabel ./lh.perirhinal.label --hemi lh --regmethod surface
  273. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.BA1.thresh.label --trgsubject sub014 --trglabel ./lh.BA1.thresh.label --hemi lh --regmethod surface
  274. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.BA2.thresh.label --trgsubject sub014 --trglabel ./lh.BA2.thresh.label --hemi lh --regmethod surface
  275. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.BA3a.thresh.label --trgsubject sub014 --trglabel ./lh.BA3a.thresh.label --hemi lh --regmethod surface
  276. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.BA3b.thresh.label --trgsubject sub014 --trglabel ./lh.BA3b.thresh.label --hemi lh --regmethod surface
  277. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.BA4a.thresh.label --trgsubject sub014 --trglabel ./lh.BA4a.thresh.label --hemi lh --regmethod surface
  278. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.BA4p.thresh.label --trgsubject sub014 --trglabel ./lh.BA4p.thresh.label --hemi lh --regmethod surface
  279. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.BA6.thresh.label --trgsubject sub014 --trglabel ./lh.BA6.thresh.label --hemi lh --regmethod surface
  280. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.BA44.thresh.label --trgsubject sub014 --trglabel ./lh.BA44.thresh.label --hemi lh --regmethod surface
  281. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.BA45.thresh.label --trgsubject sub014 --trglabel ./lh.BA45.thresh.label --hemi lh --regmethod surface
  282. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.V1.thresh.label --trgsubject sub014 --trglabel ./lh.V1.thresh.label --hemi lh --regmethod surface
  283. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.V2.thresh.label --trgsubject sub014 --trglabel ./lh.V2.thresh.label --hemi lh --regmethod surface
  284. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/lh.MT.thresh.label --trgsubject sub014 --trglabel ./lh.MT.thresh.label --hemi lh --regmethod surface
  285. mris_label2annot --s sub014 --hemi lh --ctab /opt/freesurfer/5.3.0/average/colortable_BA.txt --l lh.BA1.label --l lh.BA2.label --l lh.BA3a.label --l lh.BA3b.label --l lh.BA4a.label --l lh.BA4p.label --l lh.BA6.label --l lh.BA44.label --l lh.BA45.label --l lh.V1.label --l lh.V2.label --l lh.MT.label --l lh.perirhinal.label --a BA --maxstatwinner --noverbose
  286. mris_label2annot --s sub014 --hemi lh --ctab /opt/freesurfer/5.3.0/average/colortable_BA.txt --l lh.BA1.thresh.label --l lh.BA2.thresh.label --l lh.BA3a.thresh.label --l lh.BA3b.thresh.label --l lh.BA4a.thresh.label --l lh.BA4p.thresh.label --l lh.BA6.thresh.label --l lh.BA44.thresh.label --l lh.BA45.thresh.label --l lh.V1.thresh.label --l lh.V2.thresh.label --l lh.MT.thresh.label --a BA.thresh --maxstatwinner --noverbose
  287. mris_anatomical_stats -mgz -f ../stats/lh.BA.stats -b -a ./lh.BA.annot -c ./BA.ctab sub014 lh white
  288. mris_anatomical_stats -mgz -f ../stats/lh.BA.thresh.stats -b -a ./lh.BA.thresh.annot -c ./BA.thresh.ctab sub014 lh white
  289. #--------------------------------------------
  290. #@# BA Labels rh Fri Aug 9 00:25:11 CEST 2013
  291. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.BA1.label --trgsubject sub014 --trglabel ./rh.BA1.label --hemi rh --regmethod surface
  292. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.BA2.label --trgsubject sub014 --trglabel ./rh.BA2.label --hemi rh --regmethod surface
  293. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.BA3a.label --trgsubject sub014 --trglabel ./rh.BA3a.label --hemi rh --regmethod surface
  294. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.BA3b.label --trgsubject sub014 --trglabel ./rh.BA3b.label --hemi rh --regmethod surface
  295. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.BA4a.label --trgsubject sub014 --trglabel ./rh.BA4a.label --hemi rh --regmethod surface
  296. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.BA4p.label --trgsubject sub014 --trglabel ./rh.BA4p.label --hemi rh --regmethod surface
  297. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.BA6.label --trgsubject sub014 --trglabel ./rh.BA6.label --hemi rh --regmethod surface
  298. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.BA44.label --trgsubject sub014 --trglabel ./rh.BA44.label --hemi rh --regmethod surface
  299. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.BA45.label --trgsubject sub014 --trglabel ./rh.BA45.label --hemi rh --regmethod surface
  300. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.V1.label --trgsubject sub014 --trglabel ./rh.V1.label --hemi rh --regmethod surface
  301. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.V2.label --trgsubject sub014 --trglabel ./rh.V2.label --hemi rh --regmethod surface
  302. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.MT.label --trgsubject sub014 --trglabel ./rh.MT.label --hemi rh --regmethod surface
  303. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.perirhinal.label --trgsubject sub014 --trglabel ./rh.perirhinal.label --hemi rh --regmethod surface
  304. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.BA1.thresh.label --trgsubject sub014 --trglabel ./rh.BA1.thresh.label --hemi rh --regmethod surface
  305. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.BA2.thresh.label --trgsubject sub014 --trglabel ./rh.BA2.thresh.label --hemi rh --regmethod surface
  306. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.BA3a.thresh.label --trgsubject sub014 --trglabel ./rh.BA3a.thresh.label --hemi rh --regmethod surface
  307. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.BA3b.thresh.label --trgsubject sub014 --trglabel ./rh.BA3b.thresh.label --hemi rh --regmethod surface
  308. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.BA4a.thresh.label --trgsubject sub014 --trglabel ./rh.BA4a.thresh.label --hemi rh --regmethod surface
  309. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.BA4p.thresh.label --trgsubject sub014 --trglabel ./rh.BA4p.thresh.label --hemi rh --regmethod surface
  310. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.BA6.thresh.label --trgsubject sub014 --trglabel ./rh.BA6.thresh.label --hemi rh --regmethod surface
  311. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.BA44.thresh.label --trgsubject sub014 --trglabel ./rh.BA44.thresh.label --hemi rh --regmethod surface
  312. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.BA45.thresh.label --trgsubject sub014 --trglabel ./rh.BA45.thresh.label --hemi rh --regmethod surface
  313. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.V1.thresh.label --trgsubject sub014 --trglabel ./rh.V1.thresh.label --hemi rh --regmethod surface
  314. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.V2.thresh.label --trgsubject sub014 --trglabel ./rh.V2.thresh.label --hemi rh --regmethod surface
  315. mri_label2label --srcsubject fsaverage --srclabel /home/data/exppsy/forrest_gump/openfmri.org/freesurfer/fsaverage/label/rh.MT.thresh.label --trgsubject sub014 --trglabel ./rh.MT.thresh.label --hemi rh --regmethod surface
  316. mris_label2annot --s sub014 --hemi rh --ctab /opt/freesurfer/5.3.0/average/colortable_BA.txt --l rh.BA1.label --l rh.BA2.label --l rh.BA3a.label --l rh.BA3b.label --l rh.BA4a.label --l rh.BA4p.label --l rh.BA6.label --l rh.BA44.label --l rh.BA45.label --l rh.V1.label --l rh.V2.label --l rh.MT.label --l rh.perirhinal.label --a BA --maxstatwinner --noverbose
  317. mris_label2annot --s sub014 --hemi rh --ctab /opt/freesurfer/5.3.0/average/colortable_BA.txt --l rh.BA1.thresh.label --l rh.BA2.thresh.label --l rh.BA3a.thresh.label --l rh.BA3b.thresh.label --l rh.BA4a.thresh.label --l rh.BA4p.thresh.label --l rh.BA6.thresh.label --l rh.BA44.thresh.label --l rh.BA45.thresh.label --l rh.V1.thresh.label --l rh.V2.thresh.label --l rh.MT.thresh.label --a BA.thresh --maxstatwinner --noverbose
  318. mris_anatomical_stats -mgz -f ../stats/rh.BA.stats -b -a ./rh.BA.annot -c ./BA.ctab sub014 rh white
  319. mris_anatomical_stats -mgz -f ../stats/rh.BA.thresh.stats -b -a ./rh.BA.thresh.annot -c ./BA.thresh.ctab sub014 rh white
  320. #--------------------------------------------
  321. #@# Ex-vivo Entorhinal Cortex Label lh Fri Aug 9 00:30:59 CEST 2013
  322. mris_spherical_average -erode 1 -orig white -t 0.4 -o sub014 label lh.entorhinal lh sphere.reg lh.EC_average lh.entorhinal_exvivo.label
  323. mris_anatomical_stats -mgz -f ../stats/lh.entorhinal_exvivo.stats -b -l ./lh.entorhinal_exvivo.label sub014 lh white
  324. #--------------------------------------------
  325. #@# Ex-vivo Entorhinal Cortex Label rh Fri Aug 9 00:31:21 CEST 2013
  326. mris_spherical_average -erode 1 -orig white -t 0.4 -o sub014 label rh.entorhinal rh sphere.reg rh.EC_average rh.entorhinal_exvivo.label
  327. mris_anatomical_stats -mgz -f ../stats/rh.entorhinal_exvivo.stats -b -l ./rh.entorhinal_exvivo.label sub014 rh white