voyagerpy.spatial.mirror_img#

voyagerpy.spatial.mirror_img(adata: AnnData, apply: bool = True, k: int | None = None, axis: int | None = None) Dict[str, ndarray]#

Mirror the image along an axis.

Parameters:
  • adata (AnnData) – The AnnData object to transform.

  • apply (bool, optional) – Whether to apply the transformations or store them in a temporary object, defaults to True

  • axis (Optional[int], optional) – The axis to mirror along, defaults to None

Returns:

The transformed images

Return type:

Dict[str, np.ndarray]