getEdgeAnnot: Get the annotation of the edges.

Description Usage Arguments Examples

View source: R/getEdgeAnnot.R

Description

The function returns the annotation of the edges needed for the LP. Positive edges are annotated with "w+" and negative with "w-". The given nodes are just enumerated from 1 to n and the edge between node i and j is given by "w+_i_j" for the positive, respectively by "w-_i_j" for the negative edges. The annotation "w_i_^_0" defines the baseline activity of gene i.

Usage

1
getEdgeAnnot(n, allpos)

Arguments

n

Integer: number of genes.

allpos

Logical: should all edges be positive? Corresponds to learning only activating edges. Default: FALSE.

Examples

1
2
n <- 5
annot <- getEdgeAnnot(n)

lpNet documentation built on Nov. 8, 2020, 7:08 p.m.