pr4deepr / GutAnalysisToolbox

Analysis and characterisation of cells within the gut wall using deep learning models. The current focus is on studying enteric neurons and enteric glia.
https://gut-analysis-toolbox.gitbook.io/docs/
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

[BUG] Spatial Analysis returns results neighbours incremented by 1 #12

Closed pr4deepr closed 1 year ago

pr4deepr commented 1 year ago

Describe the bug

Spatial Analysis returns neighbour count that is incremented by 1. This is because we are using the function "label overlap count map for calculating the number of neighbours after label dilation. It counts the overlapping cells and the same cell in the counts. Currently, working on a bugfix to return the corrected values.

Will also add a feature to include spatial analysis as part of the standard workflow to minimize additional steps

pr4deepr commented 1 year ago

https://github.com/pr4deepr/GutAnalysisToolbox/commit/eff952549036fd032e7183ffb7fec8c4f9490802