R/annotate.R
match_cl.Rdmatch_cl uses pearson correlation of cluster means.
match_cl(cl, dat, ref.cl, ref.cl.df, ref.dat, rename = TRUE)A cluster factor object to compare to a reference
a normalized data matrix for data to map to the reference
A cluster factor object for the reference clusters
A data.frame with reference cluster annotations that includes a "cluster_label" column
a reference normalized data matrix
a logical indicating whether or not to rename the results.
#' @return a list with 3 objects:
cl
cl.df
cor