-
Notifications
You must be signed in to change notification settings - Fork 79
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
fix the bug of relative coordinates #572
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #572 +/- ##
==========================================
- Coverage 72.33% 72.32% -0.02%
==========================================
Files 37 37
Lines 5177 5175 -2
Branches 982 982
==========================================
- Hits 3745 3743 -2
Misses 1181 1181
Partials 251 251
|
hi @JiaShun-Xiao thanks for the cotnribution, can you elaborate a bit more and provide code snippets about this PR? I don't think I fully understand teh settigns in which this fails. Also, can you check out the contributing guide for pre-commit checks (currently failing). Thank you! |
hi @JiaShun-Xiao , could you please elaborate on the purpose of this PR and provide a minimal reproducible example? Thank you! |
Hi, @giovp Thanks for your patience! Thank you! |
interesting ok, the tests seem to pass, could you add a small test with this specific edge case? Otherwise a minimal reproducible example here and I'd be happy to add it myself, thank you! |
Sorry I am not familiar with tests in programming, I need some time to learn how to add tests for edge cases |
hi @JiaShun-Xiao , no problem. Could you please then post here few lines of code that explain what is the problem you are trying to solve? ideally something that can be run directly, with minimal dependency (e.g. squidpy, numpy etc) |
Sure, the problem I am trying to solve is retriving exact cell coordinates/locations after nuclei segmentation with spatial histological images. |
Description
I have changed the relative coordinate to exact coordinate in the
feature_segmentation
function.There are two reasons:
How has this been tested?
I have tested the revised code in two Visium data, it works very well.