traitlink: Function to link character descriptions to a trait ontology

Description Usage Arguments Value Author(s) Examples

View source: R/traitlink.R

Description

Function uses fuzzy text matching to output a list of potentially redundant characters in a 'nex' object, waits for user input to confirm, and then handles merging of characters and outputs a new 'nex' object

Usage

1
traitlink(tree, x)

Arguments

tree

trait ontology (an 'igraph' object produced, e.g., by read_ontology)

x

nexus file

Value

a list with character names (chars), distance matrix (dmat), trait ontology links (ont), and node depths for each character(nodedepth)

Author(s)

Chad M. Eliason

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
x <- twig
ont <- read_ontology(file = system.file("extdata", "baumel_ontology.txt",
package = "phenotools"))
tl <- traitlink(tree=ont, x=x)
# first five characters, links to trait ontology:
tl$ont[1:5]

## End(Not run)

celiason/phenotools documentation built on Sept. 12, 2019, 6:49 p.m.