pyXenium.contour.generate_barrier_contour_shells#
- generate_barrier_contour_shells(sdata, *, contour_key, inward, outward, step_size, contour_query=None, barrier_contour_key=None, barrier_query=None, output_key=None, copy=False)#
Generate per-contour shells whose outward rings exclude other contours.
Inward rings are produced exactly like
generate_contour_shells(). Outward rings are clipped by subtracting all barrier contour interiors, so transcript density outside one contour is not counted inside another.