abagen.leftify_atlas

abagen.leftify_atlas(atlas)[source]

Zeroes out all ROIs in the right hemisphere of volumetric atlas

Assumes that positive X values indicate the right hemisphere (e.g., RAS+ orientation) and that the X-origin is in the middle of the brain

Parameters

atlas (str or niimg-like) – Filepath to or in-memory loaded image

Returns

atlas – Loaded image with right hemisphere zeroed out

Return type

niimg-like