writeLadders: Traverse a phylogeny and write ladders

View source: R/summaryStatistics.R

writeLaddersR Documentation

Traverse a phylogeny and write ladders

Description

Traverse the phylogeny in preoder and write node indexes belonging to ladders. Nodes that don't belong to ladder are marked with -1. A node is in a ladder if one of its children is a tip AND the other is not.

Usage

writeLadders(phylo, i, preorder)

Arguments

phylo

phylogeny (ape format)

i

node index

preorder

vector

Value

vector with ladders

See Also

isInLadder, getChildLeftRight


ilajaait/deephylo documentation built on April 10, 2022, 11:03 a.m.