cellPbnPlot: Plot a cell PBN

View source: R/plotting.R

cellPbnPlotR Documentation

Plot a cell PBN

Description

Plots the PBN produced by computePbnBySingleCell for a given cell and returns it as a ggplot object

Usage

cellPbnPlot(ingres.object, cell.id)

Arguments

ingres.object

An ingres object with a non-null single.cell.pbn slot.

cell.id

A string containing the id of the cell to be plotted.

Value

A ggplot object containing the cell PBN plot.

Examples

# Create an ingres object with viper slot
ing = createIngresObjectFromSeurat(
  small_blca_wang, "RNA", "data", network_genes, network
)
ing@viper = viper_results

ing = computePbnBySingleCell(ing)
cellPbnPlot(ing, "sample1@ACAGCTAAGATCCCGC-1")


ingres documentation built on Sept. 14, 2022, 9:05 a.m.