foregroundNodes: Identifies those tip and inner nodes of the phylogenetic tree...

View source: R/selection_funks.R

foregroundNodesR Documentation

Identifies those tip and inner nodes of the phylogenetic tree that span subtrees whose tips are true subsets of the argument 'foreground.nodes'.

Description

Identifies those tip and inner nodes of the phylogenetic tree that span subtrees whose tips are true subsets of the argument 'foreground.nodes'.

Usage

foregroundNodes(phylo.tr, foreground.nodes)

Arguments

phylo.tr

instance of ape::phylo representing a phylogenetic tree

foreground.nodes

a vector of tip indices or tip labels that represent candidate foreground tips.

Value

integer vector of inner node indices that span subtrees containing only foreground tips merged with the argument 'foreground.nodes' If tip labels are passed as argument infer their index in the tree's nodes slot: Find those inner nodes that spawn subtrees whose tips are true subsets of 'foreground.nodes'


asishallab/GeneFamilies documentation built on May 22, 2023, 11:30 a.m.