Plot the PBN of a cell selected in an interactive plot.
Source:R/plotSelectedCell.R
plotSelectedCell.Rd
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.
Arguments
- ingres.object
An
ingres
object with a non-nullsingle.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 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)
}