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 centroidlabel_key (
str(default:'scmusk')) – label_key in sdata.table.obs to add as shape elementx_key (
str(default:'x')) – x coordinate in sdata.table.obs to add as shape element x coordinatey_key (
str(default:'y')) – y coordinate in sdata.table.obs to add as shape element y coordinatetarget_coordinates (
str(default:'global')) – target_coordinates system of sdata object