View source: R/read_ontology.R
read_ontology | R Documentation |
Function to create a trait ontology from a tabular text file
read_ontology(file, root = FALSE)
file |
path to text file containing a tab-delimited trait ontology |
root |
whether to add a root node |
The text file should contain hierarchical data about relationships among traits (e.g., for feathers: feather -> rachis -> barb -> barbules -> barbule hooklets)
Baumel, J. J., and L. M. Witmer. 1993. Osteologia. P. in Handbook of avian anatomy: nomina anatomica avium. Publications of the Nuttall Ornithological Club.
## Not run:
# Read in the ontology of Baumel and Whitmer (1993):
ont <- read_ontology(file = system.file("extdata", "baumel_ontology.txt",
package = "phenotools"))
ont
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.