energy_function_node_specific: Node energy function

View source: R/OMICS_module_func.R

energy_function_node_specificR Documentation

Node energy function

Description

energy_function_node_specific For each node returns its energy over all parent set configurations, the empty parent set is included.

Usage

energy_function_node_specific(all_parents_config, B_prior_mat, int_node)

Arguments

all_parents_config

matrix with all possible parent set configurations (column indicates parents of given int_node).

B_prior_mat

a biological prior matrix.

int_node

character vector with given node name.

Value

Numeric vector of length 1

Examples

data(list=c("PK", "TFtarg_mat", "annot", "layers_def", "omics"),
package="IntOMICS")
B <- B_prior_mat(omics = omics, PK = PK, layers_def = layers_def, 
   annot = annot, lm_METH = TRUE, r_squared_thres = 0.3, p_val_thres = 0.05,
   TFtargs = TFtarg_mat, TFBS_belief = 0.75, nonGE_belief = 0.5, 
   woPKGE_belief = 0.5)
all_parents_config <- matrix(c("ENTREZID:2535", "ENTREZID:2535", 
"ENTREZID:1857", "ENTREZID:2932"), byrow = TRUE, nrow=2)
energy_function_node_specific(all_parents_config = all_parents_config,
B_prior_mat = B$B_prior_mat, int_node = "ENTREZID:7482")


anna-pacinkova/intomics_package documentation built on Aug. 13, 2022, 11:38 a.m.