Skip to contents

Fetch one or more ROI meshes for fish2

Usage

fish_roi_meshes(
  rois,
  units = c("nm", "raw", "microns"),
  conn = NULL,
  ...,
  dataset = fish_default_dataset()
)

Arguments

rois

Character vector of ROI names.

units

One of "nm" (default), "raw" (voxels), or "microns".

conn

Optional, a neuprint_connection object. Defaults to fish_neuprint to ensure that the query targets fish2.

...

Additional arguments passed to nlapply. This allows progress reporting and simple parallelisation.

dataset

The name of the dataset as reported in Clio (default "fish2").

Value

A shapelist3d containing one or more ROI mesh3d objects. Missing meshes are dropped with a warning.

Details

Since September 2026 fish2 ROI meshes are returned from neuprint in nm (previously they were in raw 16 x 16 x 15 nm voxel space). For units="raw" they are scaled down by these voxel dimensions.

Examples

# \donttest{
fish_roi_meshes(c("Midbrain", "Hindbrain"), .progress = "none")
#>  shapelist3d object with 2 items:
#> [[1]] mesh3d object with 288612 vertices, 577186 triangles.
#> [[2]] mesh3d object with 282739 vertices, 565580 triangles.
# }