penUpdateIntra: Updating penalization matrix (intra one omics type)

View source: R/penalization.R

penUpdateIntraR Documentation

Updating penalization matrix (intra one omics type)

Description

This function can be used to update an existing penalization matrix

Usage

penUpdateIntra(
  penmat,
  bnnames,
  type,
  intlist,
  pfbase = 2,
  intpf = 1,
  intsame = 1,
  bi = FALSE
)

Arguments

penmat

a square penalization matrix; to initialize use penInit

bnnames

object of class bnInfo; see bnInfo

type

name of omic type

intlist

(optional) a matrix or data frame containing a list of interactions and optionally their scores; 2 columns are necessary 'gene1' and 'gene2'

pfbase

a numeric value more or equal to 1, base penalization factor; 2 by default (1 corresponds to no penalization)

intpf

(optional) a numeric value more or equal to 1, this value will be used to penalize interactions from 'intlist'

intsame

penalization factor for edges connecting the same genes

bi

(logical) indicates if interactions should be considered bi-directed

Value

returns a square matrix containing edge specific penalization factors

Author(s)

Polina Suter


bnClustOmics documentation built on Aug. 5, 2022, 5:11 p.m.