produceNetworkForCluster: Produce a tidygraph network for a given cluster

View source: R/produceNetwork.R

produceNetworkForClusterR Documentation

Produce a tidygraph network for a given cluster

Description

Produce a tidygraph network for a given cluster

Usage

produceNetworkForCluster(ingres.object, cluster.id)

Arguments

ingres.object

The ingres object containing the relevant data.

cluster.id

The id of the cluster for which the network is to be produced.

Value

A tidygraph object containing the network for the given cluster.

Examples

# Create an ingres object with viper slot
ing = createIngresObjectFromSeurat(
  small_blca_wang, "RNA", "data", network_genes, network
)
ing@viper = viper_results

ing = computePbnByCluster(ing)

network = produceNetworkForCluster(ing, "1")
print(network)


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