sampleGridWithin: Make new spatial locations on unmeasured tissue through...

View source: R/CARD.imputation.R

sampleGridWithinR Documentation

Make new spatial locations on unmeasured tissue through grids.

Description

Make new spatial locations on unmeasured tissue through grids.

Usage

sampleGridWithin(location, numSample, concavity = 2)

Arguments

location

Data frame, spatial location data frame of the original spatial resolved transcriptomics dataset, stored in the CARD_object@spatial_location

numSample

Numeric, approximate number of cells in grid within the shape of the spatial location data frame

concavity

Numeric, a relative measure of concavity. The default is 2.0, which can prodecure detailed enough shapes. Infinity results in a convex hull while 1 results in a more detailed shape.

Value

Return a list of data frame with newly grided points


YingMa0107/CARD documentation built on Feb. 14, 2024, 12:23 p.m.