identity_map: Cell projections onto the reference dataset

Description Usage Arguments Value Examples

View source: R/identity_map.R

Description

This function infers cell identities by using the model learned by the reference dataset.

Usage

1
identity_map(scale.data, model, gene_cl.ref, p.threshold = NULL)

Arguments

scale.data

A scaled matrix of gene expressions like in the scale.data of the Seurat object. Rows are genes and columns are cells from the reference dataset.

model

The model as in output of the train_model function.

gene_cl.ref

A list of cluster-specific markers. Each element of the list contains markers of a cell type. Usually only top100 ranked markers are used.

p.threshold

Probability threshold to consider a cell classified. Default=0.5.

Value

A list with a vector with cell identities predicted by the model (ids) and a dataframe with probabilities at each identity class.

Examples

1
# TODO

elimereu/matchSCore2 documentation built on April 9, 2020, 5:41 p.m.