Skip to contents

get the ontology based on a short tag and year

Usage

getOnto(ontoname = "cellOnto", year_added = "2023")

Arguments

ontoname

character(1) must be an element in `valid_ontonames()`

year_added

character(1) refers to `rdatadateadded` in AnnotationHub metadata

Note

This queries AnnotationHub for "ontoProcData" and then filters to find the AnnotationHub accession number and retrieves the ontologyIndex serialization of the associated OBO representation of the ontology.

Examples

co = getOnto()
#> loading from cache
tail(co$name[1000:1500])
#>                                  CL:0000832 
#>                   "eosinophilic myeloblast" 
#>                                  CL:0000833 
#>                 "eosinophilic promyelocyte" 
#>                                  CL:0000834 
#>                "neutrophil progenitor cell" 
#>                                  CL:0000835 
#>                                "myeloblast" 
#>                                  CL:0000836 
#>                              "promyelocyte" 
#>                                  CL:0000837 
#> "hematopoietic multipotent progenitor cell"