pyXenium.contour.compare_contour_de#
- compare_contour_de(sdata, *, contour_key, groupby, case, reference, contour_query=None, cell_query=None, layer=None, genes=None, min_cells_per_contour=3, min_contours_per_group=2)#
Compare contour groups with contour-level pseudobulk expression.
Cells are assigned to each contour by centroid intersection, expression is averaged within every eligible contour, and the requested case/reference contour groups are compared with Welch t-tests over those contour means.
- Parameters:
- Return type:
DataFrame