Load 10X Genomics Visium Cell Segmentations
Read10X_Segmentations(
image.dir,
data.dir,
image.name = "tissue_lowres_image.png",
assay = "Spatial.Polygons",
slice = "slice1.polygons",
segmentation.type = "cell",
compact = TRUE,
cells = NULL
)A VisiumV2 object with segmentations
Path to directory with 10X Genomics visium image data;
Directory of the base spaceranger outs
Name of the tissue image to be plotted. tissue_lowres_image.png or tissue_hires_image.png
Name of assay to associate segmentations to
Name of the slice to associate the segmentations to
Which segmentations to load, cell or nucleus. If using nucleus the full matrix from cells is still used
Whether to store segmentations in only the sf.data slot
in the corresponding Segmentation object (default TRUE) to save memory and processing time.
If FALSE, segmentations are also stored in sp format in addition to the sf.data slot.
Optional vector of cell barcodes to retain.