compdist {RaceID} | R Documentation |
Computing a distance matrix for cell type inference
Description
This functions computes the distance matrix used for cell type inference by RaceID3.
Usage
compdist(
object,
metric = "pearson",
FSelect = TRUE,
knn = NULL,
alpha = 1,
no_cores = 1
)
Arguments
object |
|
metric |
Distances are computed from the filtered expression matrix after optional feature selection, dimensional reduction, and/or transformation (batch correction).
Possible values for |
FSelect |
Logical parameter. If |
knn |
Positive integer number of nearest neighbours used for imputing gene expression values. Default is |
alpha |
Positive real number. Relative weight of a cell versus its k nearest neigbour applied for imputing gene expression. A cell receives a weight of |
no_cores |
Positive integer number. Number of cores for multithreading during imputation. If set to |
Value
SCseq
object with the distance matrix in slot distances
. If FSelect=TRUE
, the genes used for computing the distance object are stored in
slot cluster$features
.
Examples
sc <- SCseq(intestinalDataSmall)
sc <- filterdata(sc)
sc <- compdist(sc)