Vertex number mismatch between source space and annotation

When using mne.read_labels_from_annot(), I got the following error:

RuntimeError: Number of surface vertices (128723) for subject xxxx does not match the expected number of vertices (129064) for annotation file …\lh.parc2018yeo17_200.annot

, with 128723 being the number of vertices in the source space, which was created with mne.setup_source_space(). I have created parcellations of this type (Schaefer 2018) for dozens of subjects and never encountered this issue before.

  • MNE-Python version: 0.20.5
  • operating system: Windows Server 2019

Hello @fesieben,

could you try updating to a more recent version of MNE-Python (0.23.x) and try again?

Best,
Richard

Hi Richard,

I tried under MNE 23.4 and it had the same result.

Decided now to rerun the entire Freesurfer processing and parcellation creation anew for this subject and see if that changes anything, although I can’t really fathom what could have gone wrong the previous time to cause this specific error.

Best,
Felix