R/annotate.R
map_cl_summary.RdMap a dataset to a reference, and compare existing cluster calls to the reference comparison
map_cl_summary(ref.dat, ref.cl, map.dat, map.cl, method = "median")Training data matrix, usually log-transformed CPM
Training cluster factor object
Data for cells to map to the training set. Should have the same genes as train.dat.
Cluster assignments for the training set to compare to results of mapping.
Which statistic to compare. "median" or "mean". Default is "median".
a list object with two objects:
map.df: A data.frame with the mapping results for each sample in map.dat to the reference
cl.map.df: A data.frame with cluster-level frequency of mapping for each cluster in map.cl to ref.cl