getEdgeAnnot {lpNet} | R Documentation |
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.
getEdgeAnnot(n, allpos)
n |
Integer: number of genes. |
allpos |
Logical: should all edges be positive? Corresponds to learning only activating edges. Default: FALSE. |
n <- 5 annot <- getEdgeAnnot(n)