R/fullGOProfile.R

Defines functions `fullGOProfile`

`fullGOProfile` <-
function(pGO, colNames) {
    if (!is.null(pGO)) {
        n <- attr(pGO,"ngenes")
        pGO <- pGO[pmatch(colNames,names(pGO))]
        naPositions <- is.na(pGO)
        names(pGO)[naPositions] <- colNames[naPositions]
        pGO[naPositions] <- 0
        attr(pGO,"ngenes") <- n
    }
    return(pGO)
}

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.