Skip to contents

Returns the ids of the sister(s) of nd ids given.

Usage

getNdsSstr(tree, ids, parallel = FALSE, progress = "none")

Arguments

tree

TreeMan object

ids

nd ids

parallel

logical, make parallel?

progress

name of the progress bar to use, see create_progress_bar

Details

An error is raised if there is no sister (e.g. for the root). There can be more than one sister if tree is polytomous. Parallelizable.

Examples


tree <- randTree(10)
getNdsSstr(tree, ids = tree["tips"])
#>  [1] "t9"  "t3"  "t8"  "t10" "t6"  "n8"  "t4"  "n7"  "t2"  "t1"