| computePbnByCluster | R Documentation |
After running performViper, this can be run to produce a
PBN with the identity function probability for each node relative to the
VIPER normalised enrichment score (NES) for cell. For computePbnByCluster,
the median NES for all cells in that cluster will be used.
computePbnByCluster(ingres.object, range = c(-1, 1)) computePbnBySingleCell(ingres.object, range = c(-1, 1))
ingres.object |
An |
range |
A vector representing the range to which the NES are
to be re-scaled. |
An ingres object with
the cluster.pbn or the single.cell.pbn slot filled
computePbnByCluster: Compute a Probabilistic Boolean Network (PBN) for each cluster
computePbnBySingleCell: Compute a Probabilistic Boolean Network (PBN) for each cell
# Create an ingres object with viper slot ing = createIngresObjectFromSeurat( small_blca_wang, "RNA", "data", network_genes, network ) ing@viper = viper_results ing = computePbnByCluster(ing) head(ing@cluster.pbn) ing = computePbnBySingleCell(ing) head(ing@single.cell.pbn) # Restrict range to (-0.5, 0.5) ing = computePbnByCluster(ing, range = c(-0.5, 0.5)) head(ing@cluster.pbn) ing = computePbnBySingleCell(ing, range = c(-0.5, 0.5)) head(ing@single.cell.pbn)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.