fafbseg.flywire.locs_to_supervoxels¶
-
fafbseg.flywire.
locs_to_supervoxels
(locs, mip=2, coordinates='pixel')[source]¶ Retrieve flywire supervoxel IDs at given location(s).
Use Eric Perlman’s service on spine.
- Parameters
locs (list-like) – Array of x/y/z coordinates.
mip (int [2-8]) – Scale to query. Lower mip = more precise but slower; higher mip = faster but less precise (small supervoxels might not show at all).
coordinates ("pixel" | "nm") – Units in which your coordinates are in. “pixel” is assumed to be 4x4x40 (x/y/z) nanometers.
- Returns
List of segmentation IDs in the same order as
locs
. Invalid locations will be returned with ID 0.- Return type
numpy.array
Examples
>>> from fafbseg import flywire >>> # Fetch supervoxel at two locations >>> locs = [[133131, 55615, 3289], [132802, 55661, 3289]] >>> flywire.locs_to_supervoxels(locs) array([79801454835332154, 79731086091150780], dtype=uint64)