You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have had the same issue -- Based on where it fails in the loop across elements, I think it might have something to do with if a nucleus isn't detected in a particular segment?
I will note that everything seems to work alright if line 913 in spatial_query.py is changed to:
indices = buffered.geometry.apply(
lambda x: False if x is None else x.intersects(polygon))
Hi,
I'm trying to perform a polygon_query() on a Xenium object:
However, whilst I'm able to perform a bounding box query, a polygon query using a region annotated in napari throws the following error:
Code:
Error:
Plotting both the query polygon and transcripts confirms that the coordinate systems are congruent, and using 10X Xenium Explorer exported coordinates as used in this notebook (https://github.com/quentinblampey/spatialdata_xenium_explorer/blob/master/docs/10x_tutorials/xenium/xenium_tuto.ipynb) also throws the same error.
Could you point me in the right direction for what's going wrong?
My environment is:
Uploading env.txt…
The text was updated successfully, but these errors were encountered: