splitOntologies {mdgsa} | R Documentation |
Splits an annotation list of GO terms according to the ontology to which each term belongs to.
splitOntologies(annot, na.rm = TRUE, verbose = TRUE)
annot |
annotation list. |
na.rm |
if TRUE 'unknown' terms are excluded. |
verbose |
verbose |
Uses the information form the library GO.db. If some id could not be associated to any ontology, they are returned in an unknown ontology named "missing".
A list with tree components, one for each ontology. A fourth component is included is some term could not be allocated to any of the three GO ontologies.
David Montaner dmontaner@cipf.es
getGOnames (c ("GO:0006915", "GO:0016020", "GO:0008152", "GO:0015288")) annot <- list ("GO:0006915" = c ("g1"), "GO:0016020" = c ("g2", "g3"), "GO:0008152" = c ("g1", "g2", "g3"), "GO:0015288" = c ("g4", "g5")) annot splitOntologies (annot)