SpatialQuery.spatial_query.plot_motif_grid

spatial_query.plot_motif_grid(motif, figsize=(10, 5), max_dist=20, save_path=None)[source]

Display the distribution of each motif around grid points.

Parameters:
  • motif (str or List[str]) – Motif (names of cell types) to be colored.

  • figsize (tuple, default=(10, 5)) – Figure size.

  • max_dist (float, default=20) – Spacing distance for building grid.

  • save_path (str, optional) – Path to save the figure. If None, the figure will not be saved.

Returns:

Displays a figure.

Return type:

None