average_by_group: Average the expression matrix of Seurat by category

Description Usage Arguments Value

Description

Average the expression matrix of Seurat by category

Usage

1
2
3
4
5
6
7
8
average_by_group(
  x,
  group.by,
  color_row,
  select_cells = NULL,
  slot_data = "data",
  assay = "RNA"
)

Arguments

x

a Seurat object

group.by

a vector whose first item is the feature on which averaging is performed. Only the first item will be used in averaging. If a second item is supplied, then a metadata field will appear containing the most frequent item in the second category among the first category.

select_cells

on which subset of cells averaging is performed

Value

a Seurat object


Yutong441/TBdev documentation built on Dec. 18, 2021, 8:22 p.m.