A Python API for the NeuronBridge neuron similarity search service.
This library is available on PyPI, so you can install it like this:
pip install neuronbridge-pythonThe client will automatically select the latest version of the data and fetch it from S3. Here's a simple example of how to get an EM image by id:
from neuronbridge import client
client = client.Client()
em_image = client.get_em_image(636798093) See this notebook for complete usage examples.
To build this code you will need to install Pixi. After cloning the repository just type:
pixi installYou can run validation multithreaded on a single machine like this:
pixi run python ./neuronbridge/validate_ray.py --dashboard --cores 60To run the validation script in a distributed manner on the Janelia cluster, you must first install ray-janelia in a sister directory to where this code base is cloned. Then run a script to bsub the Ray cluster:
./scripts/launch_validation.shpixi run python neuronbridge/generate_schemas.pypixi run test- Update the version in setup.py
- Push all changes and tag a release in GitHub
- Build PyPI distribution:
pixi run pypi-build- Upload to PyPI:
pixi run pypi-upload