Install¶
pip install zarr-vectors-tools
zvtools --version # zvtools (zarr-vectors-tools 0.3.0)
This needs Python 3.11 or newer. It installs the zvtools command and the core
package, zarr-vectors.
Optional extras¶
The base install converts CSV point tables, line CSVs, edge-list CSVs, SWC, OBJ and STL. Other formats need an extra:
pip install "zarr-vectors-tools[trk,h5ad]" # one or more extras
pip install "zarr-vectors-tools[all]" # every extra except gpu
Extra |
Enables |
Installs |
|---|---|---|
|
TRK and TCK ingest; TRK export |
nibabel |
|
TRX ingest and export |
trx-python |
|
|
nibabel, trx-python |
|
GIFTI and FreeSurfer ingest; GIFTI export; CIFTI through |
nibabel |
|
LAS and LAZ ingest |
laspy, lazrs |
|
PLY ingest and export |
plyfile |
|
AnnData |
anndata |
|
GraphML ingest; per-node metrics in Python |
networkx |
|
|
scipy |
|
per-vertex attributes on |
pyfqmr, scipy |
|
Neuroglancer precomputed ingest and export (multi-resolution mesh layers also need DracoPy) |
cloud-volume, mapbuffer, cloud-files |
|
|
dask[distributed] |
|
YAML recipes for |
pyyaml |
|
GPU CSV reading in |
cudf |
A command that needs a missing extra stops with an error naming it.
Core package version¶
The core must write Zarr Vectors format 0.10 and provide zarr_vectors.building,
or import zarr_vectors_tools fails. If it does not, install the latest core
from GitHub:
pip install "git+https://github.com/AllenInstitute/zarr-vectors-py"
pip install "git+https://github.com/AllenInstitute/zarr-vectors-tools"