-
Notifications
You must be signed in to change notification settings - Fork 8
feat: use a KDE for smooth scores over tissue area #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
Conversation
|
transcribing from our slack conversation: there is probably a name and package for this. note that the scikit-learn KDE has a ball tree under the hood, so (edit: speed) comparison of this to a nearest-neighbors approach may be a wash. one nice thing about the |

Performs both a weighted (by score) KDE and an unweighted KDE on the cell coordinates, and computes their ratio across a grid of
n_bins x n_bins. This results in much smoother score estimates across the tissue. Addresses #7Remaining work:
Binned:

Using estimator:

Different dataset, binned:

Using estimator:

Sampled atop cells:

As a mask (thresholding at the 70th percentile):
