grow_off_leaf: Grow a tree at a given leaf node

Description Usage Arguments Value Examples

View source: R/editTree.R

Description

Add a pair of leaves branching off of a given leaf node on a tree. Assigns the two newly added leaves labels from node_names. The old leaf where the two new branches were add is also assigned as an internal node.

Usage

1
grow_off_leaf(icceTree, leaf, node_names)

Arguments

icceTree

icceTree data structure

leaf

node number

node_names

list of two node names

Value

new tree topology–two branches added to given leaf and labeled accordingly

Examples

1
icceTree <- grow_off_leaf(icceTree, 1, c('Fibroblasts', 'Fibrocytes'))

ethanmoyer/ICCE documentation built on Aug. 25, 2020, 5:18 p.m.