split_label_text#

brainglobe_atlasapi.atlas_generation.annotation_utils.split_label_text(name: str, acronym_length=1) str[source]#

Split label text into name + acronym.

If the label text ends with ‘)’, extract the acronym inside parentheses. Otherwise, you can specify how many first letters you would like to use as acronym