Layer summary table
Usage
sg_roi_layers(project, call = rlang::caller_env())Arguments
- project
An sg_roi_project.
- call
The calling environment, for error reporting.
Value
A tibble::tibble with one row per layer and the columns name
(character), n_rois (integer), labels (list of character), visible
(logical), locked (logical), and z (integer). A 0-row tibble with these
columns when the project has no layers.
Examples
proj <- sg_roi_project(sg_roi_frame(c(20, 20)),
list(sg_roi_layer("tumour"), sg_roi_layer("stroma")))
sg_roi_layers(proj)
#> # A tibble: 2 × 6
#> name n_rois labels visible locked z
#> <chr> <int> <list> <lgl> <lgl> <int>
#> 1 tumour 0 <chr [0]> TRUE FALSE 1
#> 2 stroma 0 <chr [0]> TRUE FALSE 1