genRandomPoset: Generates a poset

Description Usage Arguments Details Value Author(s)

Description

genRandomPoset generates a random poset (partial order at the level of pathways) with a given number of events (pathways) and a given edge density.

Usage

1
genRandomPoset(k, ldenses, trans_reduced = TRUE)

Arguments

k

number of events (pathways)

trans_reduced

boolean indicating whether the poset should be a transitive reduction (default to TRUE)

ldense

ratio between 0 and 1 indicating how dense (in terms of edges) the poset is

Details

The poset is a binary upper triangular matrix in which if element [i,j]=1, then there is an order relation between i and j, i.e. event i happens before or at the same time as event j. The parameter ldenses represents the fraction (between 0 and 1) of edges from the maximal number of edges (which contains nr_muts choose 2 edges) to be included in the poset.

Value

a poset (a binary upper triangular matrix)

Author(s)

Simona Constantinescu, simona.constantinescu@bsse.ethz.ch


cbg-ethz/pathTiMEx documentation built on May 13, 2019, 2:03 p.m.