spacipy.Gem.rearrange

Gem.rearrange(batch, order=None, rotation=None, ncols=6, pad=True, return_affine=False)

Auto rearrange the location for batch gem

Parameters:
  • bin_size (int) – Group into bins before convert with width and height of bin_size

  • cell_loc (pandas.DataFrame) – Dataframe with x and y coordinates for each cell label

  • batch (str) – Column name for Batch information if contain

  • order (list) – Values from batch column for ordering control

  • rotation (int) – Degree for clockwise rotation

  • ncols (int) – Column number in the figure

  • pad (bool, default True) – Whether append pad around each object

  • return_affine (bool, default False) – Whether or not to return the affine matrix dict