Skip to contents

TissueMask provides fit_spatial_mask(), which fits polygon spatial masks to XY point coordinate data such as cell centroids or transcript locations from spatial transcriptomics and spatial proteomics experiments.

Four masking methods are available, supporting geometries of increasing topological complexity — from simple convex hulls to multi-polygon masks with internal voids and disconnected islands:

MethodHoles/IslandsSpeedRecommended for
"convex"NoInstantSanity checks
"concave"NoFastSimple non-convex shapes
"kde"YesModerateDense, smooth datasets
"raster"YesFastMost use cases (default)

Part of TissueSuite

TissueMask is the first component of the TissueSuite package family developed at the Raredon Laboratory, Yale School of Medicine. The companion package TissueField uses TissueMask output to estimate steady-state molecular concentration fields via a diffusion–clearance PDE.

Author

Maintainer: Raredon Laboratory raredonlab@yale.edu