neuralib.atlas.data.get_leaf_in_annotation
- neuralib.atlas.data.get_leaf_in_annotation(region, *, name=False, cached_file=None)[source]
Get a list of annotation {id, acronym} with given region {id, acronym}
- Parameters:
region (int | str) – Region id or region acronym
name (bool) – If True, return acronym, otherwise return id
cached_file (str | Path | bytes | BinaryIO | BufferedIOBase | BufferedReader | None) – Cached json for the annotation_leaf_map
- Returns:
List of annotation {id, acronym}
- Return type:
list[int] | list[str]