plot_gene_PC: Plot the contribution of genes to each PCs

Description Usage Arguments

Description

Plot the contribution of genes to each PCs

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
plot_gene_PC(
  x,
  group.by = NULL,
  show_markers = NULL,
  dims = c(1, 2),
  directory = NULL,
  label = "all",
  DR = "pca",
  color_markers = NULL,
  DE_rank = "logFC",
  cluster_col = "cluster",
  feature_col = "feature",
  AP = NULL
)

Arguments

x

a Seurat object

group.by

which feature of genes to color, default is the cell type in which the genes are differentially expressed

show_markers

the genes to shown in the final plot. If NULL, all genes will be shown. If TF, a list of transcriptional factors will be shown. Alternatively, the argument accepts a vector of genes.

dims

which pcs to plot

directory

where the DE gene results are stored. If NULL, the cells will not be coloured.

label

the label of the DE gene data

cluster_col

which column in the DE gene result that stores the cluster names

feature_col

which column in the DE gene result that stores the gene names

AP

aesthetic parameters


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