imputeKnnSCoPE2: KNN imputation (for replication)

View source: R/utils.R

imputeKnnSCoPE2R Documentation

KNN imputation (for replication)

Description

The function imputes missing data using the k-nearest neighbours (KNN) approach using Euclidean distance as a similarity measure between the cells. This function was provided as part of the SCoPE2 publication (Specht et al. 2021).

Usage

imputeKnnSCoPE2(object, i, name = "KNNimputedAssay", k = 3)

Arguments

object

A QFeatures object

i

A numeric() or character() vector indicating from which assays the rowData should be taken.

name

A character(1) naming the new assay name. Default is KNNimputedAssay.

k

An integer(1) giving the number of neighbours to use.

Value

An object of class QFeatures containing an extra assay with imputed values.

Source

The implementation of the imputation was retrieved from https://github.com/SlavovLab/SCoPE2

References

Specht, Harrison, Edward Emmott, Aleksandra A. Petelski, R. Gray Huffman, David H. Perlman, Marco Serra, Peter Kharchenko, Antonius Koller, and Nikolai Slavov. 2021. “Single-Cell Proteomic and Transcriptomic Analysis of Macrophage Heterogeneity Using SCoPE2.” Genome Biology 22 (1): 50.


UCLouvain-CBIO/2021-SCoPE2-replication documentation built on March 29, 2025, 12:10 p.m.