ModuleTFNetwork: ModuleTFNetwork

View source: R/plotting.R

ModuleTFNetworkR Documentation

ModuleTFNetwork

Description

Plotting the relationships between a TF and the co-expression modules

Usage

ModuleTFNetwork(
  seurat_obj,
  tf_name,
  tf_gene_name,
  edge.alpha = 0.75,
  cor_thresh = 0.25,
  high_color = "red",
  mid_color = "grey",
  low_color = "blue",
  slot = "data",
  size.scale = 30,
  tf_x = 0,
  tf_y = 0,
  wgcna_name = NULL
)

Arguments

seurat_obj

A Seurat object

tf_name

the Motif name for the tf

tf_gene_name

the gene associated with this tf in the rownames(seurat_obj)

edge.alpha

scaling factor for edge opacity in the network

cor_thresh

threshold to plot correlation edges between modules

high_color

color for positive correlation

mid_color

color for zero correlation

low_color

color for negative correlation

slot

the slot in the seurat object to extract expression data for the tf_gene_name

size.scale

scaling factor for the size of each node

tf_x

x coordinate for the TF if the TF is not found in the UMAP

tf_y

y coordinate for the TF if the TF is not foudn in the UMAP

wgcna_name

the name of the WGCNA experiment in the seurat object

Examples

ModuleTFNetwork

smorabit/scWGCNA documentation built on April 4, 2024, 10:32 a.m.