Skip to content

get_volume_labels_from_aseg should return label instances instead of names #14632

Backlog

Description

@nordme

Describe the new feature or enhancement

It would be so great to have real volumetric labels returned by the get_volume_labels_from_aseg function. Currently, this function returns a list of label names, not actual mne.Label instances.

Describe your proposed implementation

Make vol label instances and return in a list, just like read_labels_from_annot does for surface labels.

Describe possible alternatives

N/A

Additional context

Not all the volumetric labels from aseg actually contain brain (some are ventricles, etc), so we will need to decide what to do with the irrelevant options. Some may need to be BiHemi labels (e.g. "Brain-Stem" from aparc+aseg.mgz). Also, maybe we should set it to return names by default for backwards compatibility, but with the new option to return label instances?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions