Examples¶
The examples/
directory of the repository ships eleven runnable Jupyter notebooks
covering every geometry type and every algorithm in this package.
Notebooks¶
Notebook |
Topic |
|---|---|
CSV / LAS / PLY point-cloud ingest and export |
|
Line-segment ingest from CSV |
|
TCK / TRK / TRX streamline round trip |
|
GraphML and edge-list ingest |
|
SWC ingest with Strahler / depth / node-kind enrichments |
|
OBJ, PLY, and STL mesh ingest and export |
|
k-core, label propagation, Louvain, and connected components |
|
BFS, Dijkstra, and A* path queries |
|
Mesh summary, normals, mean curvature, closest-point, ray casting |
|
Community detection comparison on the same graph |
|
Larger end-to-end streamline ingest workflow |
Running the notebooks¶
Clone the repo and install the [all,dev] extras:
git clone https://github.com/AllenInstitute/zarr-vectors-tools
cd zarr-vectors-tools
pip install -e ".[all,dev]"
jupyter notebook examples/
The notebooks build the stores they need as they run, so none of them
depend on a committed sample store or on downloading external data.
tractogram_to_zarrvectors.ipynb writes tracts.zarrvectors from
scratch; run it first if you want that store on disk.