projection_dist: Projection distance

Description Usage Arguments Examples

View source: R/projection-dist.r

Description

Projection distance

Usage

1
projection_dist(dm, new_dcs = NULL, ..., new_data, verbose = FALSE)

Arguments

dm

A DiffusionMap object.

new_dcs

Diffusion component matrix of which to calculate the distance to the data.

...

Passed to proxy::dist if new_data was passed.

new_data

New data points to project into the diffusion map. Can be a matrix, data.frame, ExpressionSet, or SingleCellExperiment.

verbose

If TRUE, log additional info to the console.

Examples

1
2
3
4
5
data(guo_norm)
g2_32 <- guo_norm[, guo_norm$num_cells < 64]
g64  <- guo_norm[, guo_norm$num_cells == 64]
dm <- DiffusionMap(g2_32)
d <- projection_dist(dm, new_data = g64)

destiny documentation built on Nov. 8, 2020, 7:38 p.m.