path_eigen: Draw the heatmap for the eigengene for single cell

Description Usage Arguments Examples

Description

Due to the problem with the sign of eigenvector, this function is not recommendd to visualise pathway activity. Instead, you may use the get_module_score function and plot the results using seurat_heat

Usage

1
2
3
4
5
6
7
path_eigen(
  x,
  all_path = NULL,
  threshold = 0.02,
  select_cells = NULL,
  return_mat = F
)

Arguments

x

a Seurat object

threshold

This function assigns the cells with the highest total gene expressions in a particular pathway to have positive eigen values. This threshold argument sets the range of cells to calculate the total expression. For example, a threshold of 0.02 means that the total expression will be calculated for the bottom 2% and top 2% of the cells

Examples

1
path_eigen (all_data)

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