getNodeIDs: Get node IDs from tree

View source: R/merge_order.R

getNodeIDsR Documentation

Get node IDs from tree

Description

Get node IDs from tree

Usage

getNodeIDs(tree)

Arguments

tree

(phylo) a phylogenetic tree.

Value

(integer) a vector with names being node IDs.

Author(s)

Shubham Gupta, shubh.gupta@mail.utoronto.ca

ORCID: 0000-0003-3500-8152

License: (c) Author (2020) + GPL-3 Date: 2020-05-31

See Also

getTree

Examples

m <- matrix(c(0,1,2,3, 1,0,1.5,1.5, 2,1.5,0,1, 3,1.5,1,0), byrow = TRUE,
            ncol = 4, dimnames = list(c("run1", "run2", "run3", "run4"),
                                      c("run1", "run2", "run3", "run4")))
distMat <- as.dist(m)
## Not run: 
tree <- getTree(distMat)
getNodeIDs(tree)

## End(Not run)

shubham1637/DIAlign documentation built on March 27, 2023, 7:12 a.m.