Read polygon info for all cells or for only selected FOVs from Vizgen HDF5 files. Data is returned as a list of giottoPolygons or data.tables of the requested z indices.
readPolygonFilesVizgenHDF5(
boundaries_path,
fovs = NULL,
z_indices = 1L:7L,
segm_to_use = 1L,
custom_polygon_names = NULL,
flip_x_axis = FALSE,
flip_y_axis = TRUE,
calc_centroids = FALSE,
smooth_polygons = TRUE,
smooth_vertices = 60L,
set_neg_to_zero = FALSE,
H5Fopen_flags = "H5F_ACC_RDWR",
cores = determine_cores(),
create_gpoly_parallel = TRUE,
create_gpoly_bin = FALSE,
verbose = TRUE,
output = c("giottoPolygon", "data.table"),
polygon_feat_types = NULL
)
path to the cell_boundaries folder
subset of fovs to use
z indices of polygons to use
segmentation results to use (usually = 1. Depends on if alternative segmentations were generated)
a character vector to provide custom polygon names (optional)
flip x axis of polygon coordinates (multiply by -1)
flip y axis of polygon coordinates (multiply by -1)
calculate centroids (default = FALSE)
smooth polygons (default = TRUE)
number of vertices for smoothing
set negative values to zero when smoothing
see H5Fopen
for more details
cores to use
(default = TRUE) Whether to run gpoly creation in parallel
(Optional, default = FALSE) Parallelization option. Accepts integer values as an binning size when generating giottoPolygon objects
be verbose
whether to return as list of giottoPolygon or data.table
deprecated. Use z_indices
list of giottoPolygon or data.table
Set H5Fopen_flags to "H5F_ACC_RDONLY" if you encounter permission issues.