ONTPARENTS: Annotation of ontology Identifiers to their Parents

Description Details Examples

Description

This data set describes associations between ontology terms and their direct parent terms, based on the directed acyclic graph (DAG). The format is an R object mapping the ontology terms to all direct parent terms, where a direct parent term is a more general ontology term that immediately precedes the given ontology term in the DAG.

Details

Each ontology term is mapped to a named vector of ontology terms. The name associated with the parent term will be either isa, partof, where isa indicates that the child term is a more specific version of the parent, and partof indicate that the child term is a part of the parent.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
  # Convert the object to a list
  xx <- as.list(ONTPARENTS)
  # Remove ontology IDs that do not have any parent
  xx <- xx[!is.na(xx)]
  if(length(xx) > 0){
     ids <- xx[[1]]
     # Find out the  terms for the first parent ID
     #ID(ONTTERM[[ids[1]]])
     Term(ONTTERM[[ids[1]]])
     Synonym(ONTTERM[[ids[1]]])
     Secondary(ONTTERM[[ids[1]]])
  }

hxin/topOnto.HDO.db documentation built on May 17, 2019, 9:15 p.m.