View source: R/projection-dist.r
projection_dist | R Documentation |
Projection distance
projection_dist(dm, new_dcs = NULL, ..., new_data, verbose = FALSE)
dm |
A |
new_dcs |
Diffusion component matrix of which to calculate the distance to the data. |
... |
Passed to |
new_data |
New data points to project into the diffusion map. Can be a matrix, data.frame, ExpressionSet, or SingleCellExperiment. |
verbose |
If |
A vector of distances each new data point has to the existing data.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.