map_cl_summary: Map a dataset to a reference, and compare existing cluster...

View source: R/annotate.R

map_cl_summaryR Documentation

Map a dataset to a reference, and compare existing cluster calls to the reference comparison

Description

Map a dataset to a reference, and compare existing cluster calls to the reference comparison

Usage

map_cl_summary(ref.dat, ref.cl, map.dat, map.cl, method = "median")

Arguments

ref.dat

Training data matrix, usually log-transformed CPM

ref.cl

Training cluster factor object

map.dat

Data for cells to map to the training set. Should have the same genes as train.dat.

map.cl

Cluster assignments for the training set to compare to results of mapping.

method

Which statistic to compare. "median" or "mean". Default is "median".

Value

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


AllenInstitute/scrattch.hicat documentation built on Oct. 20, 2023, 6:55 a.m.