You need to give yourself write permission into that directory (using chmod). This is tricky because you may have to give everyone write permission. You can also save the annot to another folder (something like --a ./myaparc to save in the current directory)
On 02/03/2017 03:21 AM, Dr Sampada Sinha wrote:
Dear freesurfer experts,
I am trying to create medial temporal lobe and for that I ran the command mri_annotation2label to create ?h.entorhinal.label, ?h.temporalpole.label and ?h.parahippocampal.label from fsaverage and stored these labels in labels.?h directory. After this I ran mris_label2annot, taking cue from page https://surfer.nmr.mgh.harvard.edu/fswiki/mris_label2annot.
My command line is the following (fsaverage has been linked to my subject directory:
rmbp:AD Sampada$ mris_label2annot --s fsaverage --h lh --ctab /Applications/freesurfer/subjects/bert/label/aparc.annot.ctab --a myaparc --l ./labels_lh/lh.temporalpole.label --l ./labels_lh/lh.parahippocampal.label --l ./labels_lh/lh.entorhinal.label --nhits nhits.mgh
However, it comes with following error
*Writing annot to /Users/Sampada/Desktop/AD/fsaverage/label/lh.myaparc.annot* *could not write annot file /Users/Sampada/Desktop/AD/fsaverage/label/lh.myaparc.annot* *Permission denied*
Will you please let me know how to fix this problem . I can see its a permission error but don't know how to overcome it.
Thanks for your help
Kind regards,
Sampada
-- Sampada Research medical scientist (B) Department of Geriatric Mental Health (DGMH) King George Medical University Lucknow-226003 , Uttar Pradesh India
*/ /*
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer