R/dimsGO.R

Defines functions dimsGO.character dimsGO.ExpandedGOProfile dimsGO

dimsGO <- function(prof) {
    UseMethod("dimsGO")
}

dimsGO.ExpandedGOProfile <- function(prof) {
    dimsGO.character(rownames(prof))
}

dimsGO.character <- function(categNamesGO) {
        categsList <- strsplit(categNamesGO,"\\.")
        ncateg <- max(as.integer(unlist(categsList)))
        simult <- max(sapply(categsList, length))
        return(list(ncateg=ncateg, simult=simult))
}

Try the goProfiles package in your browser

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

goProfiles documentation built on Nov. 8, 2020, 8:12 p.m.