navis-org/navis: Version 1.12.0
- 1. University of Cambridge
- 2. @German-BioImaging
- 3. Janelia Research Campus
- 4. E11.bio & MRC LMB
- 5. Charité Universitätsmedizin Berlin
- 6. VirtualFlyBrain.org
- 7. Allen Institute for Brain Science
- 8. Allen Institute
- 9. VIB-KU Leuven
Description
Harder, Better, Faster, Stronger :rocket:
This version represents a big push to enable navis to scale to neuron meshes with hundreds of millions of faces and skeletons with hundreds of thousands of nodes. We achieved this by re-implementing functionality in Rust (navis-fastcore) and by improving algorithms to scale better.
Here are my personal highlights:
fastcore
We put a lot of work into improving existing and adding new functionality in fastcore-rs and funnelling those gains into navis via the navis-fastcore Python bindings:
- ~5X faster NBLASTs thanks to a lot of work on aann (approximate-all-nearest-neighbor search) and shull (blazingly fast Delaunay triangulation) which are wired into
navisvia a new backend system for NBLAST (of whichfastcoreis the first member). - Faster and more memory efficient functions for graph operations (e.g. connected components), distances (e.g.
geodesic_matrix), morphological operations (e.g.heal_skeleton). In many cases this improves performance by several orders of magnitude!
[!NOTE]
navis-fastcoreis still an optional dependency but at this point you really shouldn't go without. Install it alongsidenaviswith the[all]or[fastcore]option:pip install navis[all] -U
Other Highlights
- new interface:
navis.interfaces.brain_image_libraryprovides access to the Brain Image Library which hosts thousands of single neuron reconstructions (see new tutorial) - new function:
navis.propagate_labelspropagates sparse labels across a neuron; see also the newnavis.split_axon_dendrite_prop navis.NeuronListnow supports in-place scaling (nl *= 1000,nl /= 1000) which - unlikenl * 1000- does not copy every neuron and is much faster- major speed-up for
navis.resample_skeleton: ~15-20x faster with the defaultmethod="linear"; other methods also faster albeit with smaller gains navis.split_axon_dendrite()no longer runs out of memory on very large (100k+ nodes) neuronsH5transformandGridTransformusescipy.ndimage.map_coordinates(~2x faster)- reading neurons (e.g. skeletons) from URLs with the default
parallel="auto"now goes parallel from 5 files onwards instead of 200
As per usual: check out the changelog for a complete list of changes. Please open an issue if you encounter any bugs.
Files
navis-org/navis-v1.12.0.zip
Additional details
Related works
- Is supplement to
- Software: https://github.com/navis-org/navis/tree/v1.12.0 (URL)
Software
- Repository URL
- https://github.com/navis-org/navis