knn_smooth_scores: Smoothing scores by KNN

View source: R/HelperFunctions.R

knn_smooth_scoresR Documentation

Smoothing scores by KNN

Description

Smoothing scores by KNN

Usage

knn_smooth_scores(matrix = NULL, nn = NULL, decay = 0.1, up.only = FALSE)

Arguments

matrix

Input data matrix

nn

A nearest neighbor object returned by BiocNeighbors::findKNN

decay

Exponential decay for nearest neighbor weight: (1-decay)^n

up.only

If set to TRUE, smoothed scores will only be allowed to increase by smoothing

Value

A dataframe of knn-smoothed scores


carmonalab/UCell documentation built on April 26, 2024, 11:51 p.m.