View source: R/NET_manipulation_func.R
neighborhood_size | R Documentation |
neighborhood_size
This function is determines number of network structures
that can be reached from the current network structure.
neighborhood_size(net, layers_def, B_prior_mat, omics)
net |
adajcency matrix of given network. |
layers_def |
data.frame containing the modality ID, corresponding layer in BN and maximal number of parents from given layer to GE nodes. |
B_prior_mat |
a biological prior matrix. |
omics |
named list containing the gene expression (possibly copy number variation and methylation data). Each component of the list is a matrix with samples in rows and features in columns. |
Numeric of length 1: neighborhood size
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) adjacency_matrix <- B$B_prior_mat adjacency_matrix[,] <- 0 neighborhood_size(net = adjacency_matrix, layers_def = layers_def, B_prior_mat = B$B_prior_mat, omics = B$omics)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.