Skip to contents

Plot a gene regulatory network

Usage

GRNPlot(
  object,
  group = NULL,
  layer = "tf_gene",
  type = c("network", "layered", "overlap"),
  top_n = 100,
  layout = "auto",
  label_nodes = TRUE,
  compare = NULL,
  compare_group = NULL,
  tool_name = NULL,
  title = NULL
)

Arguments

object

A GRNResult or a Seurat object containing one.

group

Network group. Required when several groups are stored.

layer

Evidence layer, such as "tf_gene", "tf_region", or "region_gene".

type

"network" for edges, "layered" for native chains, and "overlap" for shared edges.

top_n

Maximum edges or chains to show per result. Inf shows all.

layout

"auto", "star", "hub", "tripartite", "kk", or "fr".

label_nodes

Show node labels.

compare

Another GRN result or a named list of results for "overlap".

compare_group

One group per comparison, or a single group for all. Defaults to group.

tool_name

Seurat tools entry. Omit when only one GRN is stored.

title

Plot title.

Value

A ggplot object.

See also