navis-org / navis

Python library for analysis of neuroanatomical data.
https://navis-org.github.io/navis/
GNU General Public License v3.0
80 stars 31 forks source link

Adapt fetch_skeletons to include a parameter for max_distance while healing #5

Closed SridharJagannathan closed 4 years ago

SridharJagannathan commented 4 years ago

Refer to the issue: https://github.com/connectome-neuprint/neuprint-python/issues/12 based on this an option of max_distance has been created in heal_skeleton in neuprint-python, please adapt the code in fetch_skeletons to include that.

SridharJagannathan commented 4 years ago

The current option to perform healing (after other commits from @schlegelp ) via the neuprint-python would be like:

import navis
import navis.interfaces.neuprint as neu
temp_skel = neu.fetch_skeletons([1670597533], heal=1000, max_threads=30)

where the heal parameter 1000 -> (1000/1000)*8 = 8 microns (only nodes within 8 microns distance would be joined)