-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question on Ripleys stats #66
Comments
Hey, sorry! Just saw this & the attendant stuff in squidpy. Awesome package! We're a bit overstretched across our libraries at the moment, so That said, let me know if there's anything that seems good to include going forward. Duplication definitely reduces our overall effectiveness, and it seems like Ripley stats are a very clear case where we (maybe) need an ecosystem-wide performant implementation for general point patterns. On the specifics:
|
@ljwolf thanks a lot for the reply. Indeed with Squidpy we are trying to provide useful spatial statistics for the spatial molecular data analysis community. We took great inspiration from libpysal and used it as dependency for a while. Eventually we decided to re-implement selected ones internally but we'd be very interested to interface via squidpy more of the libpysal library. We make use of AnnData https://anndata.readthedocs.io/en/latest/ as data format. |
Hi,
Just discovered this really cool package!
I have a question regarding the implementation of Ripleys statistics. What I am interested in is computing e.g. Ripley's K for n subsets of points that are sampled from the same area. To do this, I am interested in computing the moving distance threshold across the full area, and not only restricting it on points subsets.
For instance, with pointpats I would do this:
But as you can see the statistics is truncated for one subset. The astropy implementation seems to account for this, and allow to pass the full area.
E.g.
I saw that in the pointpats implementation there is a "hull" argument that could be used for that? If not, is it maybe planned to allow such operation, or is it not good practice? (am really naive wrt spatial stats, sorry)
Also, I was wondering whether it's planned to implement the edge corrections features for Ripleys stats.
Thank you!
Giovanni
The text was updated successfully, but these errors were encountered: