cave-mapper
Tools for mapping between objects and representations in the Connectome Annotation and Versionining Engine (CAVE) ecosystem.
This package is a work in progress and is mainly a place to stash functions that I find useful.
Installation
pip install cave-mapper
or
uv pip install cave-mapper
or
uv add install cave-mapper
Available Functions
-
map_points: This takes points, and a root ID (likely points annotated inside an object) and maps them to voxels/supervoxel IDs that are guaranteed to be part of the root ID. This is useful for mapping points to a specific object in a 3D space. -
map_points_via_mesh: This takes points and a root ID (likely points that were annotated on the surface of that object) and maps them to voxels/supervoxel IDs that are guaranteed to be part of the root ID.
Mapping points from a mesh
For a point inside an object's mesh (for example, a point in a dendritic spine), use the mesh offset and the floor convention:
from caveclient import CAVEclient, set_session_defaults
from cave_mapper import map_points
# Optional: more retries for the chunkedgraph calls than the client default. This applies
# to every client created after it, so call it before building the client.
set_session_defaults(
max_retries=10,
backoff_factor=1,
backoff_max=240,
status_forcelist=(429, 500, 502, 503, 504),
)
client = CAVEclient("minnie65_phase3_v1")
mapping = map_points(points, root_id, client, point_offset="mesh", convention="floor")
The anchor_pt_x, anchor_pt_y and anchor_pt_z columns are the chosen voxel's minimum corner in nanometers. The CAVE materialization engine looks up the same voxel for this point. Points deep inside the mesh map more reliably than points near its surface.
Metadata
Release files for cave-mapper 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cave_mapper-0.3.0.tar.gz | 174.6 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cave_mapper-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 182.7 kB
Release files / cave_mapper-0.3.0.tar.gz
| Download URL | cave_mapper-0.3.0.tar.gz |
|---|---|
| Size | 174.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22eb9064a3beac4a21cc1f89be2150787092bf8d18bd3002905ddb30db7861b6
|
|
BLAKE2b-256 checksum How to use checksums |
5ce30693e8870e6d249c5b0b91fd5d66b7e50d86a03de921fc18a570d6753fc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / cave_mapper-0.3.0-py3-none-any.whl
| Download URL | cave_mapper-0.3.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f0f596ca1c1997ff7380dbf27a2549a1fc0c2a5c8f54a3bd34230045158415a
|
|
BLAKE2b-256 checksum How to use checksums |
64a33b1b0e4be043140a509f0283a896d679de1d70dd8ef0b5e7ea7b9de5f1a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logSecurity for cave-mapper 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for cave_mapper-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.