Can you provide the full command that you were having trouble? I would like to 
see if I can reproduce here.

Yujing

From: freesurfer-boun...@nmr.mgh.harvard.edu 
<freesurfer-boun...@nmr.mgh.harvard.edu> On Behalf Of Benjamin Deck
Sent: Thursday, June 9, 2022 10:11 AM
To: Freesurfer support list <freesurfer@nmr.mgh.harvard.edu>
Subject: Re: [Freesurfer] vertex out of range mris_label2annot


        External Email - Use Caution
Oh, that makes sense, as my --hemi flag is lh.

However, when I run the same command with --ldir and the ctab LUT the --ldir 
flag doesn't ID any of my label files. Therefore, I have to provide the --l 
flags, otherwise it just creates an empty annotation file.

Ben

[Image removed by 
sender.]<https://secure-web.cisco.com/1Ok_bjRoSx7hgPT1plimaiPInYam-oUdGIluzUE74StkCjzWyu9CoYVWmBB51y-3670jl7ErdMSzpjEJCyx-wfSWToL9bXnJwbT0DkSdvDQNWwngpEGo0ayf1qBf_JqO9Y5WAMTA4Bw6kcPvUvFrLgTPzOofMYal-8rdk90pFpLdMqwuzJxEGtODeRCkyzxCCc5l87QSo6oiR_Lt-GVI0kdirIVWqFcp31KkNw0o2d8ZT6h_yVCIoUDGOEIuU1QDCm--uZ9-2IBXyIim0_bku2N7TFi9JaF76hSkz5GybdVY4kTrpoKkHj2GHsy81fi2O8R9QSu2URTpy1m2ya22wgA/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/1HyWF2aEsq0U_5fH2occEWM4DJJ66hFXrMTljDiMy8wMQgw2g-x2LvpY-vrNwdMv9y_uHWBET1bygPYADXmvdvq6IhfKK5vvxudvyJAFZxPNs-X0e_h2NaZaFWIeEKWVIzI4Z82K9gusG3jpitfrVrcjnWom-gza6YKCcxzvycrxA5Z3edhcI9KqpiUM-PyjhTsIPbLtxAC8Ppgc9LPGld5WwrwpKNfzT7oE_3nXPCBjtGic8SKFGkZfUDGlsOY4eQ3mhRRqGRfyUHsdCepcasVXq0D-I4MJ3BLvFtF1UNbkCVbMXm8sSVLmhO80Sr3K8Mxe4UjsqQYxe91W42e9TnQ/https%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Dwebmail%26utm_term%3Dlink>

On Thu, Jun 9, 2022 at 8:57 AM Huang, Yujing 
<yhuan...@mgh.harvard.edu<mailto:yhuan...@mgh.harvard.edu>> wrote:
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<mailto:freesurfer-boun...@nmr.mgh.harvard.edu>
 
<freesurfer-boun...@nmr.mgh.harvard.edu<mailto: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<mailto: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<mailto:Freesurfer@nmr.mgh.harvard.edu>
MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" 
claiming to be 
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer<https://secure-web.cisco.com/1nIEbcm5JN0w3AjTDG3zcUPOiW3Y8rRZ12nK6T7C_2JYDkNXX6RP1uCyQzaRwiCrP3ynQAzc3czUMcqKzZ83QWtSAvyBcoBiRf9A5S53ivJN4Lvxm4L8MpGE1fX_tuPuxOBQWxWHnAlHbAbOOYkfGleTZwby4TSbhm9sMG6fQyBGHTDOwcpdWMkdiZ2OcjLul5DW3X1DVm0nw_z-4Xkg9MYGgAgHcvKsNfDIoTmbU7F3tgkySV_nRPd49QRYGm8hc6ntDkIWl_-HIiDKQGM3xwnqbJEmwyc33PlBL0EX3FJRrni4jnU0O6jLRV1GGukP6U2bU6CWFik5GJOSgGhCCCg/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer>
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 MailScanner has detected a possible fraud attempt from 
"secure-web.cisco.com" claiming to be 
https://www.massgeneralbrigham.org/complianceline<https://secure-web.cisco.com/15B1iqi0JT-6SIOHtJcF-w-4l7tzeCfDDifHK_effgKw7CD5WIFCHzUOXW8-siOs5A8fw2gXxg_oRBW4s38dFip1HyqIRhXK144_YJH_y_7mfZ7Q09sEENLHn8ldo2DxRSN-aJcjbcM79nCSJvvWMU6rhM3oNG41nPF3AIShKpMxExWKjp7tbCGGInd_TAKzpt1OPg2AObAMpgP4H3QVXwm3bgW_moKFusIyq0TbRz3ZKIayaEiBDvXGEspyDShLxu95u7wN5GypKQilENCZZVUdjduio5WbEHY0vtzgg-1i_wvMnhVAHAABGXVoNlh6Ze2FrxQ2CK-QFYWTW56q_PQ/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline>
 <MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" 
claiming to be 
https://www.massgeneralbrigham.org/complianceline<https://secure-web.cisco.com/15B1iqi0JT-6SIOHtJcF-w-4l7tzeCfDDifHK_effgKw7CD5WIFCHzUOXW8-siOs5A8fw2gXxg_oRBW4s38dFip1HyqIRhXK144_YJH_y_7mfZ7Q09sEENLHn8ldo2DxRSN-aJcjbcM79nCSJvvWMU6rhM3oNG41nPF3AIShKpMxExWKjp7tbCGGInd_TAKzpt1OPg2AObAMpgP4H3QVXwm3bgW_moKFusIyq0TbRz3ZKIayaEiBDvXGEspyDShLxu95u7wN5GypKQilENCZZVUdjduio5WbEHY0vtzgg-1i_wvMnhVAHAABGXVoNlh6Ze2FrxQ2CK-QFYWTW56q_PQ/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline>>
 .
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.


--
Benjamin L. Deck
Doctoral Student
Applied Cognitive and Brain Sciences
Department of Psychological and Brain Sciences
Drexel University
_______________________________________________
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