map_by_cor: Map samples to a training dataset by correlation

Description Usage Arguments Value

View source: R/annotate.R

Description

Map samples to a training dataset by correlation

Usage

1
map_by_cor(train.dat, train.cl, test.dat, method = "median")

Arguments

train.dat

Training data matrix, usually log-transformed CPM

train.cl

Training cluster factor object

test.dat

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

method

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

Value

a list object containing two objects:


AllenInstitute/scrattch.hicat documentation built on May 5, 2019, 1:32 a.m.