Learn R Programming

destiny (version 2.0.4)

dm_predict: Predict new data points using an existing DiffusionMap. The resulting matrix can be used in

Description

Predict new data points using an existing DiffusionMap. The resulting matrix can be used in the plot method for the DiffusionMap

Usage

dm_predict(dm, new_data, verbose = FALSE)

Arguments

dm
A DiffusionMap object
new_data
New data points to project into the diffusion map. Can be a matrix, data.frame, or an ExpressionSet.
verbose
Show progress messages?

Value

A \(nrow(new_data) \times ncol(eigenvectors(dif))\) matrix of projected diffusion components for the new data.

Examples

Run this code
data(guo)
g1 <- guo[, guo$num_cells != 32L]
g2 <- guo[, guo$num_cells == 32L]
dm <- DiffusionMap(g1)
dc2 <- dm_predict(dm, g2)
plot(dm, new_dcs = dc2)

Run the code above in your browser using DataLab