R/as.ExpandedGOProfile.default.R

Defines functions `as.ExpandedGOProfile.default`

`as.ExpandedGOProfile.default` <-
function(x, expandedCatNames=NULL) {
    x <- as.matrix(x)
    result <- as.data.frame(x)
    if (is.null(expandedCatNames))
        rowNames <- row.names(result)
    else
        rowNames <- expandedCatNames
    result <- data.frame(lapply(result, frelGO))
    row.names(result) <- rowNames
    class(result)<- c("ExpandedGOProfile", class(result))
    return(result)
}

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.