concor.node: Concordances of Trees with All Nodes of A Reference Tree

Description Usage Arguments Details Examples

View source: R/concor.node.R

Description

concor.node analyzes and returns for each node on the ref tree the number and names of trees showing concordances.

Usage

1
concor.node(ref, trees, bp = 0, getTreeNames = FALSE, node = NULL)

Arguments

ref

an object of class "phylo". A reference tree.

trees

a list of objects of class "phylo". A list of test trees such as single gene trees.

bp

a bootstrape value, which the concordance is counted when the corresponding node label of trees is higher than.

getTreeNames

a logical specifying whether to return the names of trees showing concordances for each node on ref. Defaults to FALSE.

node

a numeric or integer specifying the node(s) on ref to analyze the concordance. Defaults to NULL and all the nodes on ref are analyzed.

Details

Concordance for a node is defined as all descendent tips of the node of ref are grouped together without other tips in trees. The main analysis of this function requires rooted trees; when the trees are not rooted, concor.node roots trees according to ref during the analysis. concor.node returns an object of class "concor" as a list of: (1) tree: the ref; (2) data: a data.frame showing the counts and percents of concordances for each node; (3) conTrees: names of trees that are concordant with ref for each node (when getTreeNames = TRUE).

Examples

1
2
3
4
5
6
7
## Not run: 
data(Brassidata)
trees <- Brassidata$trees
ref <- Brassidata$ref
concor.n<-concor.node(ref = ref,trees = trees, bp = c(0,30,50), getTreeNames = FALSE)

## End(Not run)

Chien-Hsun/rePhylo documentation built on May 19, 2020, 3:15 a.m.