Plot the PBN of a cell selected in an interactive plot.
Source:R/plotSelectedCell.R
plotSelectedCell.RdLaunches 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.
Arguments
- ingres.object
An
ingresobject with a non-nullsingle.cell.pbnslot.- seurat.object
A
Seurat objectcreated with the same dataset as the ingres object. Ideally, this object was used to create the ingres object throughcreateIngresObjectFromSeurat.
Examples
if (FALSE) { # interactive()
ing <- createIngresObjectFromSeurat(
small_blca_wang, "RNA", "data", network_genes, network
)
ing@viper <- viper_results
ing <- computePbnBySingleCell(ing)
plotSelectedCell(ing, small_blca_wang)
}