liana.ds.generate_toy_spatial

liana.ds.generate_toy_spatial#

liana.ds.generate_toy_spatial()#

Build a toy spatial AnnData from pbmc68k_reduced.

Coordinates are drawn at random (seeded), so they carry no biological signal – this is for exercising code paths, not for interpreting results.

Return type:

AnnData

Returns:

pbmc68k_reduced with random obsm['spatial'] coordinates and the spatial connectivities that liana.pp.spatial_neighbors() derives from them.