plotSelectedCell: Plot the PBN of a cell selected in an interactive plot.

View source: R/plotSelectedCell.R

plotSelectedCellR Documentation

Plot the PBN of a cell selected in an interactive plot.

Description

Launches a Shiny app with an interactive tSNE plot from a Seurat object. When a cell is clicked, the PBN for that cell is plotted side by side with the tSNE plot. Internally, it uses cellPbnPlot on the selected cell.

Usage

plotSelectedCell(ingres.object, seurat.object)

Arguments

ingres.object

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

seurat.object

A Seurat object created with the same dataset as the ingres object. Ideally, this object was used to create the ingres object through createIngresObjectFromSeurat.

Value

No return value, called only to launch the Shiny app.

Examples


ing = createIngresObjectFromSeurat(
  small_blca_wang, "RNA", "data", network_genes, network
)
ing@viper = viper_results
ing = computePbnBySingleCell(ing)
plotSelectedCell(ing, small_blca_wang)


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