This function can be used to update an existing penalization matrix
penUpdateInter(
penmat,
bnnames,
type1,
type2,
intlist = NULL,
pfbase = 2,
intpf = 1,
intsame = 1,
bi = FALSE
)
returns a square matrix containing edge specific penalization factors
a square penalization matrix; to initialize use penInit
object of class bnInfo; see bnInfo
name of omics type (from)
name of omics type (to)
(optional) a matrix or data frame containing a list of interactions and optionally their scores; 2 columns are necessary 'gene1' and 'gene2'
a numeric value more or equal to 1, base penalization factor; 2 by default (1 corresponds to no penalization)
(optional) a numeric value more or equal to 1, this value will be used to penalize interactions from 'intlist'
penalization factor for edges connecting the same genes
(logical) indicates if interactions should be considered bi-directed
Polina Suter