read_ontology: Function to create a trait ontology from a tabular text file

View source: R/read_ontology.R

read_ontologyR Documentation

Function to create a trait ontology from a tabular text file

Description

Function to create a trait ontology from a tabular text file

Usage

read_ontology(file, root = FALSE)

Arguments

file

path to text file containing a tab-delimited trait ontology

root

whether to add a root node

Details

The text file should contain hierarchical data about relationships among traits (e.g., for feathers: feather -> rachis -> barb -> barbules -> barbule hooklets)

References

Baumel, J. J., and L. M. Witmer. 1993. Osteologia. P. in Handbook of avian anatomy: nomina anatomica avium. Publications of the Nuttall Ornithological Club.

Examples

## 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)

celiason/phenotools documentation built on Sept. 29, 2024, 5:43 p.m.