scispy.tl.add_to_points

Contents

scispy.tl.add_to_points#

scispy.tl.add_to_points(sdata, shape_key='cell_boundaries', point_key='celltype', label_key='scmusk', x_key='x', y_key='y', target_coordinates='global')#

Add anatomical shapes to sdata.

Parameters:
  • sdata (SpatialData) – SpatialData object.

  • shape_key (str (default: 'cell_boundaries')) – shape_key in sdata from which get the centroid

  • label_key (str (default: 'scmusk')) – label_key in sdata.table.obs to add as shape element

  • x_key (str (default: 'x')) – x coordinate in sdata.table.obs to add as shape element x coordinate

  • y_key (str (default: 'y')) – y coordinate in sdata.table.obs to add as shape element y coordinate

  • target_coordinates (str (default: 'global')) – target_coordinates system of sdata object