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)
}
alexsanchezpla/goProfiles documentation built on May 28, 2019, 4:54 p.m.