Skip to contents

Convert an ingres network into a BoolNet one

Usage

produceBoolnetNetwork(network)

Arguments

network

The network to be converted, created by produceNetworkForCluster() or produceNetworkForCell()

Value

A BoolNet object.

Examples

# Create an ingres object with viper slot
ing <- createIngresObjectFromSeurat(
  small_blca_wang, "RNA", "data", network_genes, network
)
ing@viper <- viper_results
#> Error in eval(expr, envir, enclos): object 'viper_results' not found

# Compute PBNs by cluster
ing <- computePbnByCluster(ing)
#> Error in select(., c(1, 2)): Can't subset columns past the end.
#>  Locations 1 and 2 don't exist.
#>  There are only 0 columns.

# Produce a network for an arbitrary cluster
network <- produceNetworkForCluster(ing, "1")
#> Error in filter(., .data$cluster == cluster.id): Problem while computing `..1 = .data$cluster == cluster.id`.
#> Caused by error in `.data$cluster`:
#> ! Column `cluster` not found in `.data`.

produceBoolnetNetwork(network)
#> Error in mutate(d_tmp, ...): Problem while computing `line1 = case_when(...)`.
#> Caused by error in `.data$fixed_p`:
#> ! Column `fixed_p` not found in `.data`.