traitlink | R Documentation |
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
traitlink(tree, x)
tree |
trait ontology (an 'igraph' object produced, e.g., by |
x |
nexus file |
a list with character names (chars), distance matrix (dmat), trait ontology links (ont), and node depths for each character(nodedepth)
Chad M. Eliason
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.