convert {oncomodel}R Documentation

Converts Matrix to Newick Format

Description

Converts a tree from matrix to Newick format, assigning to each edge the negative log of the corresponding model probability.

Usage

convert(tree, p, var.names)

Arguments

tree the tree in matrix format.
p a vector of edge parameters (model probabilities).
var.names a character vector of variable names.

Value

a character vector of the tree in Newick format

Examples

data(kidney)
convert(kidney$tree, kidney$p, colnames(kidney$x))

[Package oncomodel version 0.8 Index]