squidpy.experimental.tl.TilingQCParams

class squidpy.experimental.tl.TilingQCParams(distance_tol=0.75, min_area=20, max_contour_points=500)[source]

Advanced tuning knobs for calculate_tiling_qc().

Pass an instance (or a Mapping of field names to values) as tiling_qc_params to override. Frozen so that validation done in __post_init__ cannot be silently bypassed by later mutation.

Methods

Attributes

distance_tol

Maximum perpendicular distance (pixels) from the fitted line for a contour point to count as straight.

min_area

Cells smaller than this (pixels at analysis resolution) are skipped (NaN scores).

max_contour_points

Cap on contour resolution; longer contours are arc-length-resampled before the O(n^2) collinearity scan.