NAVis core functions reimplemented in Rust.
Project description
fastcore-rs [WIP]
Rust re-implementation of navis
core functions. This is an experiment to test
replacing Cython with Rust for navis-fastcore
to enable cross-platform usage of the library.
Notes
- internally, we use
i32
to represent node indices which means we can't process neurons with more than 2,147,483,647 nodes (should be fine though)
TO-DOs
- geodesic distances
- generation of segments
- nearest-neighbor lookup (via
bosque
) - synapse flow centrality
- flow centrality
- NBLAST
- shortest paths
- classify nodes
- cater for
i32
node IDs which are currently cast up toi64
- faster version of
segments_to_coords
- faster version of
connectected_subgraph
Build
cd
into directory- Activate virtual environment:
source .venv/bin/activate
- Run
maturin develop --release
(usematurin build --release
to build wheel)
Test
First make sure pytest
is installed:
pip install pytest -U
Then run the test-suite like so:
pytest --verbose -s
Note that unless you compiled with maturin develop --release
the timings will
be much slower (up to 10x) than in a release build.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
navis_fastcore-0.0.1.tar.gz
(28.0 kB
view hashes)
Built Distributions
Close
Hashes for navis_fastcore-0.0.1-cp39-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd48fa203f5c3f4f5c1f801274725e5fc092f36e8f953c10803d6ebb7f31532f |
|
MD5 | 7df9aee486fdc3cb9121ffd194b3aa57 |
|
BLAKE2b-256 | 4ea267c27af26b511ca2ff5d52cab7350b4f00d998889f1571f06afaafe7d129 |
Close
Hashes for navis_fastcore-0.0.1-cp39-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27089aa608c591c75ec27501b657cdce2ccec0bd48e7d214c8352a15bb1730e2 |
|
MD5 | 7fdeffd875a4ee4b2d00f418fc26f069 |
|
BLAKE2b-256 | a241b936dd61421f67fb771d8e7a6d0cfd2b103896f1f966fee266b537e5a4cb |
Close
Hashes for navis_fastcore-0.0.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ff66a6dc631b9ac4c86609e4ba805610307f989c77cdcdf1432833e46406ad9 |
|
MD5 | 90e2da78b35abb8db5b203a104edb9c5 |
|
BLAKE2b-256 | 5c4402734a0dc2b74f1ce89c2921fc5ef00cb9c4b7aa82c8606b3fb710e30158 |
Close
Hashes for navis_fastcore-0.0.1-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89bbac2a868b2347c610186567ea1046c9ea141b885825a90f75214e77b78a64 |
|
MD5 | 8418486673b82aef24be380853da2160 |
|
BLAKE2b-256 | a1fd5482ebc4b247e1e36f3122319b3bac012430d60985398fdf71cf2adb15f7 |
Close
Hashes for navis_fastcore-0.0.1-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19942badadcab7f820a1cd0026679c2cbdc83f7f622e75ee1449fbea1fe4571d |
|
MD5 | cdd7207be37edb07270085ce9598e95a |
|
BLAKE2b-256 | 44b890650a7e103aa485b4ae26c636b64c877dbf968eb74925ec7aac1289dac2 |
Close
Hashes for navis_fastcore-0.0.1-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3fc9a61c6d32d78cec0bed092586f89f1357cb12499bbc8e014ce4245c40229 |
|
MD5 | d2e7d48c51b6ab6893a630eef100f49a |
|
BLAKE2b-256 | a1a4b6ec0e052f1f3d78ce182e441496e49aacde030dc0a9532d0a338d5c85bf |
Close
Hashes for navis_fastcore-0.0.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35d50d6bf9365d8d68ed8d892ee32e01e0e01ebdd7de30a5e5f46499cf5ba278 |
|
MD5 | 0b073a64802df223452e28ad2d0f6a0d |
|
BLAKE2b-256 | 263137d0759987f8121dbe68e73b5eb943480505e74a28709875ef6e554ca999 |
Close
Hashes for navis_fastcore-0.0.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74c2db45ead9a61b95afbce43dedbeffc31eb9349a610fddf3f77b5c25f90272 |
|
MD5 | 83669bbc8ce024b1b82d524e1131211f |
|
BLAKE2b-256 | 308e3c48daa9aaaaa6ae1e4816a76aadf59fa5eedf7916a3e21fa64c6a3c368f |
Close
Hashes for navis_fastcore-0.0.1-cp39-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9e9ea93c210392f3f8ded384969c638e6e4c76d14abe43808afe82aaf126071 |
|
MD5 | 9af84b8c5604de75275ab6cace34ebff |
|
BLAKE2b-256 | 5ca3b3cae142f10e2afe897e3562f1ba8778a0799e5939f857f3a4c320253b4c |
Close
Hashes for navis_fastcore-0.0.1-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cdd9beb6a3ccfb7ab85894a0e689458540626b7361a1564906593d6a7502ce6 |
|
MD5 | 07f27b62cbe30542234a8396d9c5e7e7 |
|
BLAKE2b-256 | 3386fd30caa59afc639f198bc95d1ac212b88600362c595c2e58c3e8cd40bd35 |