neuralib.atlas.util.iter_source_coordinates
- neuralib.atlas.util.iter_source_coordinates(file, *, area=None, source=None, region_col=None, hemisphere='both', to_brainrender=True, source_order=None, inverse_hemisphere=False)[source]
Load allen ccf roi output (merged different color channels).
- Parameters:
file (Path) – parsed csv file after
area (list[str] | str | None) – only show rois in region(s)
source (list[str] | str | None) – only show rois from source(s)
region_col (str | None) – if None, auto infer, and check the lowest merge level contain all the regions specified
hemisphere (Literal['ipsi', 'contra', 'both']) – which brain hemisphere
to_brainrender (bool) – convert the coordinates to brain render
source_order (tuple[str, ...] | None) – whether specify the source generator order
inverse_hemisphere (bool) – if True, then inverse ML coordinates. default is False.
- Returns:
Iterable of
SourceCoordinates- Return type:
Iterable[SourceCoordinates]