spatialdata.match_table_to_element#

spatialdata.match_table_to_element(sdata, element_name)#

Filter the table and reorders the rows to match the instances (rows/labels) of the specified SpatialElement.

Parameters:
  • sdata (SpatialData) – SpatialData object

  • element_name (str) – Name of the element to match the table to

Return type:

AnnData

Returns:

: Table with the rows matching the instances of the element