-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Hi there,
I really appreciate the awesome support that the Giotto team has been providing!
I have a Xenium dataset for which I want to extract overlaps with an aligned image. The aligned image is a mask created from segmentation of the H&E image obtained from the same Xenium sample. I derived the affine matrix from Xenium Explorer and used it to align both the H&E image and the mask image.
It seems like the alignment is working -- see attached output from spatInSituPlotPoints overlaying the cell polygons over the H&E image and the mask image.


However, when I run calculateOverlap(g2, name_overlap = 'protein', spatial_info = 'cell', image_names = 'mask'), no overlaps are identified. All entries of the overlap matrix are 0.
calculateOverlap does work when I run it using image_names = 'dapi' for example using the Xenium immunofluorescence images.
Could there be some issue with the affine transformation not being carried over when calculateOverlap is run on the aligned image?
I was thinking about loading the mask image as a giottoLargeImage but haven't found a way to subsequently apply the affine transformation.
Many thanks in advance.
Best,
Kun