Read selected polygon files for the FOVs present in the Giotto object and add the smoothed polygons to the object
readPolygonFilesVizgen(
gobject,
boundaries_path,
fovs = NULL,
polygon_feat_types = 0:6,
flip_x_axis = FALSE,
flip_y_axis = FALSE,
smooth_polygons = TRUE,
smooth_vertices = 60,
set_neg_to_zero = FALSE,
return_gobject = TRUE,
verbose = TRUE
)
.h5_read_vizgen(
h5File,
z_indices = 1L:7L,
segm_to_use = "p_0",
H5Fopen_flags = "H5F_ACC_RDWR"
)
giotto object
path to the cell_boundaries folder
selected fovs, if NULL select all fovs within Giotto object
a vector containing the polygon feature types
flip x axis of polygon coordinates (multiply by -1)
flip y axis of polygon coordinates (multiply by -1)
smooth polygons (default = TRUE)
number of vertices for smoothing
set negative values to zero when smoothing
return giotto object
be verbose
giotto object or cell polygons list
.h5_read_vizgen()
: (internal) Optimized .hdf5 reading for
vizgen merscope output. Returns a data.table of xyz coords and cell_id