remove_edge_regions#

remove_edge_regions(samples: DataFrame, edge_threshold: int, edge_padding: float) DataFrame[source]#

Removes regions at edges.

Parameters:
  • samples – Sample cell ids and coordinates.

  • threshold – Number of edge positions per axis needed to assign edge region.

  • padding – Distance from axis limits to assign edge positions.

Returns:

Samples with edge cells removed.

find_edge_ids(axis: str, samples: DataFrame, threshold: float, padding: float) list[int][source]#

Finds ids of cells with voxels touching edges of given axis.

Parameters:
  • axis ({'x', 'y', 'z'}) – The name of axis to check.

  • samples – Sample cell ids and coordinates.

  • threshold – Number of edge positions per axis needed to assign edge region.

  • padding – Distance from axis limits to assign edge positions.

Returns:

List of edge cell ids.