spatial_smooth_expression.Rd
Spatial smoothing of gene expression using KNN with kernel weighting
spatial_smooth_expression(
expression_matrix,
coordinates,
k = 10,
kernel = "linear",
sigma = NULL,
include_self = TRUE,
verbose = TRUE
)
Gene x Cell matrix of expression values
Data frame with columns 'x' and 'y' for cell coordinates
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.
Smoothed gene x cell expression matrix