ggseg / python-ggseg

Python module for ggseg-like visualizations
MIT License
97 stars 14 forks source link

Erroneous labeling of 'superiorparietal_left' and 'superiorfrontal_left' in ggseg.plot_dk() #6

Open davidrs06 opened 1 year ago

davidrs06 commented 1 year ago

Hi again !

I think I found a bug in the labeling of 'superiorparietal_left' and 'superiorfrontal_left' ROIs in Desikan-Killiany atlas.

I have a dictionary {'superiorparietal_left': 1}, and running ggseg.plot_dk() also labels the medial superiorfrontal_left cortex:

image

Similarly, when setting 'superiorfrontal_left' to 1.0, only the lateral part gets labelled (the largest medial part is not labelled):

image

Labelling of right ROIs works fine.

Here is the code I am running in case you want to have a look:

import ggseg
ggseg.plot_dk({'superiorparietal_left': 1.0},cmap='Spectral', figsize=(15,15),
              background='k', edgecolor='w', bordercolor='gray',
              ylabel='Cortical thickness (mm)', title='Title of the figure')
ggseg.plot_dk({'superiorfrontal_left': 1.0},cmap='Spectral', figsize=(15,15),
              background='k', edgecolor='w', bordercolor='gray',
              ylabel='Cortical thickness (mm)', title='Title of the figure')