Closed SridharJagannathan closed 4 years ago
Nice suggestion. (Sorry for the slow response.)
This is now implemented in neuprint-python-0.4.11
. To use it, specify the threshold as an argument to heal_skeleton()
or by providing a float
for the heal
argument in fetch_skeleton()
. (The default behavior has not changed.)
Docs:
When skeletons are fetched in
neuprint-python
with the heal option enabled, sometimes it heals fragments that are far apart. For e.g.: Consider the body id1670597533
when it is fetched with healing enabled it looks like belowOn further inspection of the code at https://github.com/connectome-neuprint/neuprint-python/blob/b4dfd061bb12bf8d4834b9db05727b44cbd29c59/neuprint/utils.py#L498 it should be possible to set a threshold say
1000
for thed['distance']
beyond which fragments should not be connected, otherwise spurious fragments would be connected like this. The distance values for all edges added are as below: