Hi Benjamin,

The error indicates that a label in Net_10_ROIs_1_rh_native_dil2.label has 
vertex 254077 that is outside lh.orig.

I’m wondering how you created those label files.

Best,

Yujing




From: freesurfer-boun...@nmr.mgh.harvard.edu 
<freesurfer-boun...@nmr.mgh.harvard.edu> On Behalf Of Benjamin Deck
Sent: Monday, June 6, 2022 4:06 PM
To: Freesurfer support list <freesurfer@nmr.mgh.harvard.edu>
Subject: [Freesurfer] vertex out of range mris_label2annot


        External Email - Use Caution
Hi freesurfer experts,

I am attempting to create a custom annotation file with the following LUT and 
call:

mris_label2annot  --s sub-DAEK --hemi lh \
--ctab sub-DAEK_yeoLUT.txt \
--a yeo2011nodes \
--maxstatwinner \
--l  Net_10_ROIs_1_lh_native_dil2.label \
--l  Net_10_ROIs_1_rh_native_dil2.label \
--l  Net_11_ROIs_1_lh_native_dil2.label \
--l  Net_11_ROIs_1_rh_native_dil2.label \
--l  Net_12_ROIs_1_lh_native_dil2.label \
--l  Net_12_ROIs_1_rh_native_dil2.label \
--l  Net_12_ROIs_2_lh_native_dil2.label \
.....many other labels


LUT:

0 Unknown 0 0 0 0
1 Net_10_ROIs_1_lh_native 5   5   5   0
2 Net_10_ROIs_1_rh_native 25  5   25  0
3 Net_11_ROIs_1_lh_native 25  100 40  0
4 Net_11_ROIs_1_rh_native 70  130 180 0
5 Net_12_ROIs_1_lh_native 100 100 0   0
6 Net_12_ROIs_1_rh_native 196 58  250 0
.....many others

However, when I run the above command it breaks with the following issue:


Reading ctab sub-DAEK_yeoLUT.txt
Number of ctab entries 104

7.2.0
cwd /mnt/c/Users/Ben/freesurfer/subjects/sub-DAEK/label/li2019_labels
cmdline mris_label2annot --s sub-DAEK --hemi lh --ctab sub-DAEK_yeoLUT.txt --a 
yeo2011nodes --maxstatwinner --l Net_10_ROIs_1_lh_native_dil2.label --l 
Net_10_ROIs_1_rh_native_dil2.label --l Net_11_ROIs_1_lh_native_dil2.label --l 
Net_11_ROIs_1_rh_native_dil2.label --l Net_12_ROIs_1_lh_native_dil2.label --l 
Net_12_ROIs_1_rh_native_dil2.label --l Net_12_ROIs_2_lh_native_dil2.label --l 
Net_12_ROIs_2_rh_native_dil2.label --l Net_13_ROIs_1_lh_native_dil2.label --l 
Net_13_ROIs_1_rh_native_dil2.label --l Net_13_ROIs_2_lh_native_dil2.label --l 
Net_13_ROIs_2_rh_native_dil2.label --l Net_13_ROIs_3_lh_native_dil2.label --l 
Net_13_ROIs_3_rh_native_dil2.label --l Net_13_ROIs_4_lh_native_dil2.label --l 
Net_13_ROIs_4_rh_native_dil2.label --l Net_13_ROIs_5_lh_native_dil2.label --l 
Net_14_ROIs_1_lh_native_dil2.label --l Net_14_ROIs_1_rh_native_dil2.label --l 
Net_14_ROIs_2_lh_native_dil2.label --l Net_14_ROIs_2_rh_native_dil2.label --l 
Net_14_ROIs_3_lh_native_dil2.label --l Net_14_ROIs_3_rh_native_dil2.label --l 
Net_14_ROIs_4_lh_native_dil2.label --l Net_14_ROIs_4_rh_native_dil2.label --l 
Net_14_ROIs_5_lh_native_dil2.label --l Net_14_ROIs_5_rh_native_dil2.label --l 
Net_15_ROIs_1_lh_native_dil2.label --l Net_15_ROIs_1_rh_native_dil2.label --l 
Net_16_ROIs_1_lh_native_dil2.label --l Net_16_ROIs_1_rh_native_dil2.label --l 
Net_16_ROIs_2_lh_native_dil2.label --l Net_16_ROIs_2_rh_native_dil2.label --l 
Net_16_ROIs_3_rh_native_dil2.label --l Net_17_ROIs_1_lh_native_dil2.label --l 
Net_17_ROIs_1_rh_native_dil2.label --l Net_17_ROIs_2_lh_native_dil2.label --l 
Net_17_ROIs_2_rh_native_dil2.label --l Net_17_ROIs_3_lh_native_dil2.label --l 
Net_17_ROIs_3_rh_native_dil2.label --l Net_17_ROIs_4_lh_native_dil2.label --l 
Net_17_ROIs_4_rh_native_dil2.label --l Net_18_ROIs_1_lh_native_dil2.label --l 
Net_18_ROIs_1_rh_native_dil2.label --l Net_18_ROIs_2_lh_native_dil2.label --l 
Net_18_ROIs_2_rh_native_dil2.label --l Net_18_ROIs_3_lh_native_dil2.label --l 
Net_18_ROIs_3_rh_native_dil2.label --l Net_18_ROIs_4_lh_native_dil2.label --l 
Net_18_ROIs_4_rh_native_dil2.label --l Net_18_ROIs_5_lh_native_dil2.label --l 
Net_19_ROIs_1_lh_native_dil2.label --l Net_19_ROIs_1_rh_native_dil2.label --l 
Net_2_ROIs_1_lh_native_dil2.label --l Net_2_ROIs_1_rh_native_dil2.label --l 
Net_2_ROIs_2_lh_native_dil2.label --l Net_2_ROIs_2_rh_native_dil2.label --l 
Net_3_ROIs_1_lh_native_dil2.label --l Net_3_ROIs_1_rh_native_dil2.label --l 
Net_3_ROIs_2_lh_native_dil2.label --l Net_3_ROIs_2_rh_native_dil2.label --l 
Net_3_ROIs_3_lh_native_dil2.label --l Net_3_ROIs_3_rh_native_dil2.label --l 
Net_4_ROIs_1_lh_native_dil2.label --l Net_4_ROIs_1_rh_native_dil2.label --l 
Net_5_ROIs_1_lh_native_dil2.label --l Net_5_ROIs_1_rh_native_dil2.label --l 
Net_5_ROIs_2_lh_native_dil2.label --l Net_5_ROIs_2_rh_native_dil2.label --l 
Net_5_ROIs_3_lh_native_dil2.label --l Net_5_ROIs_3_rh_native_dil2.label --l 
Net_5_ROIs_4_lh_native_dil2.label --l Net_5_ROIs_4_rh_native_dil2.label --l 
Net_6_ROIs_1_lh_native_dil2.label --l Net_6_ROIs_1_rh_native_dil2.label --l 
Net_6_ROIs_2_lh_native_dil2.label --l Net_6_ROIs_2_rh_native_dil2.label --l 
Net_6_ROIs_3_lh_native_dil2.label --l Net_6_ROIs_3_rh_native_dil2.label --l 
Net_7_ROIs_1_lh_native_dil2.label --l Net_7_ROIs_1_rh_native_dil2.label --l 
Net_7_ROIs_2_lh_native_dil2.label --l Net_7_ROIs_2_rh_native_dil2.label --l 
Net_7_ROIs_3_rh_native_dil2.label --l Net_8_ROIs_1_lh_native_dil2.label --l 
Net_8_ROIs_1_rh_native_dil2.label --l Net_8_ROIs_2_lh_native_dil2.label --l 
Net_8_ROIs_2_rh_native_dil2.label --l Net_8_ROIs_3_lh_native_dil2.label --l 
Net_8_ROIs_3_rh_native_dil2.label --l Net_8_ROIs_4_lh_native_dil2.label --l 
Net_8_ROIs_4_rh_native_dil2.label --l Net_8_ROIs_5_lh_native_dil2.label --l 
Net_8_ROIs_5_rh_native_dil2.label --l Net_8_ROIs_6_rh_native_dil2.label --l 
Net_9_ROIs_1_lh_native_dil2.label --l Net_9_ROIs_1_rh_native_dil2.label --l 
Net_9_ROIs_2_lh_native_dil2.label --l Net_9_ROIs_2_rh_native_dil2.label --l 
Net_9_ROIs_3_lh_native_dil2.label --l Net_9_ROIs_3_rh_native_dil2.label --l 
Net_9_ROIs_4_rh_native_dil2.label --l Net_9_ROIs_5_rh_native_dil2.label --l 
Net_9_ROIs_6_rh_native_dil2.label
sysname  Linux
hostname LAPTOP-LPS9CH5E
machine  x86_64
user     bdeck8317

subject sub-DAEK
hemi    lh
SUBJECTS_DIR /mnt/c/Users/Ben/freesurfer/subjects
ColorTable sub-DAEK_yeoLUT.txt
AnnotName  yeo2011nodes
nlables 104
LabelThresh 0 0.000000
Loading /mnt/c/Users/Ben/freesurfer/subjects/sub-DAEK/surf/lh.orig
 1 328965 Net_10_ROIs_1_lh_native
 2 1639705 Net_10_ROIs_1_rh_native
WARNING: vertex 210080 maps to multiple labels! (overwriting)
WARNING: vertex 210124 maps to multiple labels! (overwriting)
WARNING: vertex 210125 maps to multiple labels! (overwriting)
WARNING: vertex 210151 maps to multiple labels! (overwriting)
WARNING: vertex 210172 maps to multiple labels! (overwriting)
WARNING: vertex 210173 maps to multiple labels! (overwriting)
WARNING: vertex 211157 maps to multiple labels! (overwriting)
WARNING: vertex 211158 maps to multiple labels! (overwriting)
ERROR: Net_10_ROIs_1_rh_native_dil2.label, n=9538, vertex 254077 out of range


Any thoughts on the fix for this issue?

Thanks



--
Benjamin L. Deck
Doctoral Student
Applied Cognitive and Brain Sciences
Department of Psychological and Brain Sciences
Drexel University

[Image removed by 
sender.]<https://secure-web.cisco.com/1VCP2x7hEk3S0x-5t1wZJvcOAgVvGsjI-A6YfmqQ3APzc6l7-KlXei0L6xkyOUOUX7sUGPc4fByz8ct_zhOI79-XyGGNXC2aKBSxJ2hfn5hYESJ3vthj65I6zx05jKgXFP4687MO2nwcom3j0X61SXEIuGnjeRgpwnx4wLMbxM5QKp1ma4iTQ1qsdh_Ek5LX8OLMOqS4GblAyMMXgtgeHtgIPrKg6d-ayjxgldVuD1qSbLNS76CuVbqRMqyWFrdT1eoL5xMAQshvXQiupylwEdwlcRlw2Jp-WWbY_UBCewbLdyOl1_I65udO74_E36gz5pnJPlhswTVuDidCMSbygvQ/https%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Dwebmail%26utm_term%3Dicon>
Virus-free. MailScanner has detected a possible fraud attempt from 
"secure-web.cisco.com" claiming to be 
www.avast.com<https://secure-web.cisco.com/1YnAF7HOvTmiAw4b2v-qinSbPinE1DozllhrvyX8ipXNXhb-thlmaEBmlolRCIWAfegACimXAW_BkTVSIDEEa2in3AFLQUtpfPZNTiQctfC0flTReMo9XMAvdDwIZarWtdmZbbF75Dw67966o49yj-LUBYJpWD8BI9wG2whMOLA_8GsieSCesbQ96e0ih9rwnjWfEquKQyEawtcDB9u9Zhrzqgki6oTADMpIApvSP7gqCV34UHHQ-MtRl7ihxzY7a0qMTN6g0OIJkfEIqfFoUlg3l7U_JsbnaeuUtWlkTI5NeSWicV1K1nsc8Sdup79im6SXKKd8JGvTwsx3T9ZDgEQ/https%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Dwebmail%26utm_term%3Dlink>

_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
The information in this e-mail is intended only for the person to whom it is 
addressed.  If you believe this e-mail was sent to you in error and the e-mail 
contains patient information, please contact the Mass General Brigham 
Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline 
<https://www.massgeneralbrigham.org/complianceline> .
Please note that this e-mail is not secure (encrypted).  If you do not wish to 
continue communication over unencrypted e-mail, please notify the sender of 
this message immediately.  Continuing to send or respond to e-mail after 
receiving this message means you understand and accept this risk and wish to 
continue to communicate over unencrypted e-mail. 

Reply via email to