foreground2TreeClades: Generates a binary phenotype tree using the list of tip...

View source: R/PermulationFuncs.R

foreground2TreeCladesR Documentation

Generates a binary phenotype tree using the list of tip foreground animals, foreground common ancestors, and their phylogenetic relationships

Description

Generates a binary phenotype tree using the list of tip foreground animals, foreground common ancestors, and their phylogenetic relationships

Usage

foreground2TreeClades(
  fg_vec,
  sisters_list = NULL,
  trees,
  plotTree = T,
  useSpecies = NULL
)

Arguments

fg_vec

A vector containing the tip foreground species

sisters_list

A list containing pairs of "sister species" in the foreground set (put NULL if empty)

trees

treesObj from readTrees

plotTree

A boolean indicator for plotting the output tree (default=FALSE)

useSpecies

An array containing the tip labels in the output tree

Value

fg.tree A binary phenotype tree corresponding to the input information


nclark-lab/RERconverge documentation built on March 2, 2024, 8:51 a.m.