do_spatial_knn_smoothing | R Documentation |
smooth gene expression over a kNN spatial network
do_spatial_knn_smoothing(
expression_matrix,
spatial_network,
subset_feats = NULL,
b = NULL
)
subset_feats |
subset of features to use |
b |
smoothing factor beteen 0 and 1 (default: automatic) |
gobject |
giotto object |
expression_values |
gene expression values to use |
spatial_network_name |
name of spatial network to use |
This function will smoothen the gene expression values per cell according to
its neighbors in the selected spatial network.
b is a smoothening factor that defaults to 1 - 1/k, where k is the median number of
k-neighbors in the selected spatial network. Setting b = 0 means no smoothing and b = 1
means no contribution from its own expression.
matrix with smoothened gene expression values based on kNN spatial network
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.