R/GOParent.R

GOParent <- function (node) 
{

parent <- NULL

if (!is.null(GOTERM[[node]])) {
    res <- get(paste("GO", "PARENTS", sep = Ontology(GOTERM[[node]])))[[node]]
    # depending on GOstats version labels might differ as below
    # for "is a" relationship in GO graph
    parent <- res[names(res) %in% c("is.a", "is_a", "isa")][1]
}

parent

}

Try the PloGO2 package in your browser

Any scripts or data that you put into this service are public.

PloGO2 documentation built on Nov. 8, 2020, 5:40 p.m.