merquaco.pixel_classification.generate_detachment_mask

merquaco.pixel_classification.generate_detachment_mask(transcripts_mask_path: str | Path, dapi_mask_path: str | Path, detachment_mask_path: str | Path) ndarray

Generate and save gel detachment mask by subtracting transcript mask from DAPI mask

Parameters:
  • transcripts_mask_path (str or Path) – Path to binary transcript mask

  • dapi_mask_path (str or Path) – Path to binary DAPI mask

  • detachment_mask_path (str or Path) – Path at which to save gel detachment mask

Returns:

detachment_mask – Detachment mask binary array

Return type:

np.ndarray