·¢²¼Ê±¼ä : ÐÇÆÚÒ» ÎÄÕÂfreesurferƤ²ãºñ¶È·ÖÎö¸üÐÂÍê±Ï¿ªÊ¼ÔĶÁ7c3d0d2ce518964bce847c45
freesurfer Ƥ²ãºñ¶È·ÖÎö
ÉîÈëÁ˽âÍøÖ·£º
https://surfer.nmr.mgh.harvard.edu/fswiki
http://home.52brain.com/forum.php?mod=viewthread&tid=25387&extra=page=2&filter=author&orderby=dateline&orderby=dateline
ʹÓÃfreesurfer Ìáȡij¸ö¸ÐÐËȤÇøÓòµÄÌØÕ÷Öµ£¨Æ¤²ãºñ¶È£¬Ãæ»ý£¬ÇúÂÊ£¬Ìå»ýµÈ£©ÔÔòÉÏ˵ÓÐÁ½ÖÖ·½·¨£º Ö±½Ó·¨VS.¼ä½Ó·¨
Ö±½Ó·¨£ºÀûÓÃfreesurfer×ÔÓеÄparcellation Îļþ£¨aparc.annot 34 regions & aparc.a2005s.annot 84 regions£©¡£
½éÉÜ£ºaparc.annot is Rahul Desikan, et al's, and a2005s is Christophe Destriux's. Both were derived from a group of brains labeled by hand. They are fairly different in the detail (Christophe's is very detailed). Òìͬ£º2005 consists of discrete sulcal and gyral labels with traditional anatomical names so there are a lot more labels (which is why Doug describes it as very detailed), whereas aparc in general collapses these into summary regions.
Èç¹ûROI¾ÍÊÇannotÒѾ¶¨ÒåµÄÇøÓò£¬ÄÇôһÇоͺܺð졣ֱ½ÓOverlay£¬ÌáÈ¡¼´¿É¡£ ²»¹ýÒ»¸öδ½âÖ®ÃÕÔÚÓÚ£ºÕâÁ½¸öannotÎļþ¶¨ÒåµÄÇøÓòÓëAAL¡¢BrodmannÄ£°å¶¨ÒåµÄÇøÓòÊÇ·ñÓÐÒ»ÖÂÐÔ£¿
¼ä½Ó·¨£»
±ÈÈç˵ÊÇV1£¬V2£¬MTÇøÓòµÄÌáÈ¡£¬ÕâÀïÉ漰ʹÓÃFsaverage£¨ÒѾ¸ø¶¨ÁËÇøÓò£©¡£ mri_label2label --srclabel /usr/local/freesurfer/subjects/fsaverage/label/lh.V2.label --srcsubject fsaverage --trglabel V2_dinghai2mean.label --trgsubject dinghai --regmethod surface --hemi lh£¨ºËÐĺ¯Êý£©
label_thickness('dinghai/surf/lh.thickness','dinghai/label/lh.V1_dinghai2mean.label','dinghai/stats/lh_V1_thickness_sum.txt')
label_thicknessÊÇÒ»¸ö×Ô¶¨ÒåµÄMatlabº¯Êý£¬Æä×÷ÓÃÔÚÓÚÌáÈ¡¸ø¶¨LabelµÄÇøÓòµÄÊôÐÔÖµ¡£
ΪÁË·½±ãµÄʵÏÖÅú´¦Àí£¬Ê¹ÓÃÁËÏÂÃæµÄpython³ÌÐò´¦Àí£º #´´½¨Ò»¸önamelist
import os import string
from string import Template
filepath = \fid = open(filepath,'r') lines = fid.readlines() fid.close()
filename=\fid = open(filename,'w')
for line in lines: sl1 = Template(\--srclabel /usr/local/freesurfer/subjects/fsaverage/label/lh.V2.label --srcsubject fsaverage --trglabel lh.V2_${x}.label --trgsubject ${x} --regmethod surface --hemi lh\cmd_sl1=sl1.substitute(x=line) cmd_sl1 = cmd_sl1.replace('\\r','') cmd_sl1 = cmd_sl1.replace('\\n','') cmd_sl2 = cmd_sl1.replace('V2','V1') cmd_sl3 = cmd_sl1.replace('V2','MT') cmd_sr1 = cmd_sl1.replace('lh','rh') cmd_sr2 = cmd_sl2.replace('lh','rh') cmd_sr3 = cmd_sl3.replace('lh','rh') # print cmd_s1 #os.system(\fid.write(cmd_sl1) fid.write('\\n')
fid.write(cmd_sl2) fid.write('\\n')
fid.write(cmd_sl3) fid.write('\\n')
fid.write(cmd_sr1) fid.write('\\n')
fid.write(cmd_sr2) fid.write('\\n')
fid.write(cmd_sr3) fid.write('\\n') fid.close()
============================================ ÔÚMatlabÖÐÌáÈ¡ºñ¶È¸ü»»ÉÏÃæµÄtemplateΪ
sl1 = Template(\x}/stats/${x}_lh_V2_thickness_sum.txt');importfile('${x}/stats/${x}_lh_V2_thickness_sum.txt')\