Learn R Programming

ingres (version 1.0.0)

cellPbnPlot: 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)

Value

A ggplot object containing the cell PBN plot.

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.

Examples

Run this code
# 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")

Run the code above in your browser using DataLab