powered by
ontology_index
Create ontology_index object from vectors and lists of term properties
ontology_index( parents, id = names(parents), name = id, obsolete = setNames(nm = id, rep(FALSE, length(id))), version = NULL, ... )
List of character vectors of parents per term.
Character vector of term IDs. Defaults to the "names" attribute of the parents argument and must be the same length as parents.
"names"
parents
Character vector of term labels.
Logical vector indicating whether given terms are obsolete.
Version information about the ontology.
Additional arguments, each of which should be either a vector or list of term properties, each with the same length as id.
id
animal_superclasses <- list(animal=character(0), mammal="animal", cat="mammal", fish="animal") animal_ontology <- ontology_index(parents=animal_superclasses) unclass(animal_ontology)
Run the code above in your browser using DataLab