getEdgeAnnot {lpNet}R Documentation

Get the annotation of the edges.

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

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

n <- 5
annot <- getEdgeAnnot(n)

[Package lpNet version 2.25.0 Index]