The Visium HD grid is slightly rotated, should we rotate the squares? #182
Closed
LucaMarconato
started this conversation in
Show and tell
Replies: 1 comment
-
The above code requires a change in
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you look closely, the Visium HD grid of bins presents a small rotation, should we take into account for this when constructing the squares by rotating each squares around its center?
My suggestion is no, for the following reasons:
Anyway, since it was very quick to implement, I gave it a try. The resulting implementation (using standard geopandas APIs) was too slow (it took 1.5 minutes with 2µm bins), so I removed it since it is probably not worth to spend time optimizing it.
Here is the code to perform the rotation in case someone needs it, and a napari screenshot for each of the two approaches.
Squares rotated
Squares not rotated
Beta Was this translation helpful? Give feedback.
All reactions