match_cl uses pearson correlation of cluster means.

match_cl(cl, dat, ref.cl, ref.cl.df, ref.dat, rename = TRUE)

Arguments

cl

A cluster factor object to compare to a reference

dat

a normalized data matrix for data to map to the reference

ref.cl

A cluster factor object for the reference clusters

ref.cl.df

A data.frame with reference cluster annotations that includes a "cluster_label" column

ref.dat

a reference normalized data matrix

rename

a logical indicating whether or not to rename the results.

#' @return a list with 3 objects:

  • cl

  • cl.df

  • cor