Primary function for doing correlation-based mapping to cluster medians and also reporting the correlations and confidences. This is wrapper for getTopMatch and corTreeMapping.

cellToClusterMapping_byCor(
  medianDat,
  mapDat,
  refDat = NA,
  clusters = NA,
  genesToMap = rownames(mapDat),
  use = "p",
  method = "p",
  returnCor = FALSE,
  ...
)

Arguments

medianDat

representative value for each leaf and node. If not entered, it is calculated

mapDat

normalized data of the MAPPING data set. Default is to map the data onto itself.

refDat

normalized data of the REFERENCE data set. Ignored if medianDat is passed

clusters

cluster calls for each cell. Ignored if medianDat is passed

genesToMap

which genes to include in the correlation mapping

use

additional parameter for cor (use='p' as default)

method

additional parameter for cor (method='p' as default)

returnCor

should the correlation matrix be appended to the return?

...

not used

Value

data frame with the top match and associated correlation