assign_cells: Assign cells to a cell type based on maximum marker scores.

Description Usage Arguments Value

View source: R/annotation.R

Description

Assign cells to a cell type based on maximum marker scores.

Usage

1
assign_cells(scores, group_assignment = NULL)

Arguments

scores

A marker score matrix as returned by score_cells.

group_assignment

Character vector specifying to which group (or superclass) each cell has been assigned when performing hierarchical assignment. The cell can then only be assigned a cell type within this group. If no vector is provided, any cell can be assigned to any cell type. For this option to work, score_cells must be run on a MetaMarkers marker table where groups have been specified.

Value

A data.frame containing one row per cell, showing its group, its assigned cell type, the marker score for that cell type and the marker enrichment for that cell type.


gillislab/MetaMarkers documentation built on April 24, 2021, 9:25 p.m.