spatialSmoother.Rd
Spatial smoother wrapper for SpatialExperiment and SingleCellExperiment objects
spatialSmoother(
object,
assay2smooth = "logcounts",
smoothedAssay = NULL,
smoothReducedDim = FALSE,
reducedDim2smooth = "PhiSpace",
smoothedReducedDim = NULL,
x_coord = NULL,
y_coord = NULL,
k = 10,
kernel = "linear",
sigma = NULL,
include_self = TRUE,
verbose = TRUE
)
SpatialExperiment or SingleCellExperiment object
Name of assay to smooth (for gene expression smoothing)
Name for the new smoothed assay (default: paste0(assay2smooth, "_smoothed"))
Logical, whether to smooth reduced dimensions instead of gene expression
Name of reduced dimension to smooth (default: "PhiSpace")
Name for the new smoothed reduced dimension (default: paste0(reducedDim2smooth, "_smoothed"))
Column name in colData for x coordinates (required for SCE objects)
Column name in colData for y coordinates (required for SCE objects)
Number of nearest neighbors (default: 10)
Kernel function: "gaussian", "uniform", or "linear" (default: "gaussian")
Bandwidth parameter for Gaussian kernel (default: auto-computed)
Whether to include the cell itself in smoothing (default: TRUE)
Show progress bar or not.
Modified object with new smoothed assay or reduced dimension