Learn R Programming

SITH (version 1.1.0)

progressionDAG_from_igraph: Define the progression of mutations from an igraph object

Description

A helper function for simulateTumor() which returns to the user the edge list for a DAG which is defined as an igraph object.

Usage

progressionDAG_from_igraph(iG)

Arguments

iG

An igraph object for a directed acyclic graph.

Value

A matrix with 4 columns which contains the edges of the graph as well as the rate of crossing each edge and the selective advantage/disadvantage obtained by crossing each edge.