info2input: Convert 'info' to 'input'.

View source: R/build_input.R

info2inputR Documentation

Convert 'info' to 'input'.

Description

Convert an 'info' data frame into an 'input' object.

Usage

info2input(info, tree, parallelize = T, ncores = NULL, verbose = T)

Arguments

info

A definitive info data frame.

tree

Backbone tree.

parallelize

Logical. If TRUE it allows the function to look for phyletic status using multiple processing cores.

ncores

Number of cores to use in parallelization. If no number is provided it defaults to all but one of system logical cores.

verbose

Logical. Whether or not to print the progress.

Value

An input data frame to feed the rand_tip function.

Author(s)

Ignacio Ramos-Gutierrez, Rafael Molina-Venegas, Herlander Lima

Examples


catspecies <- c("Lynx_lynx", "Panthera_uncia",
"Panthera_onca", "Felis_catus", "Puma_concolor",
"Lynx_canadensis", "Panthera_tigris", "Panthera_leo",
"Felis_silvestris")

cats.info <- build_info(species=catspecies, tree= cats,
     find.ranks=TRUE, db="ncbi", mode="backbone")

cats.input <- info2input(info=cats.info, tree=cats)


iramosgutierrez/randtip documentation built on March 19, 2024, 6:35 p.m.