R/covGO.ExpandedGOProfile.R

Defines functions `covGO.ExpandedGOProfile`

`covGO.ExpandedGOProfile` <-
function(pn, simplify=T) {
  covMat.i <- function(i) {
    vecPn <- pn[,i]
    names(vecPn) <- rownames(pn)
    internal.covGO(vecPn)
  }
  ncolPn <- ncol(pn)
  result <- lapply(1:ncolPn, covMat.i)
  if (simplify && (ncolPn == 1))
    return(result[[1]])
  else {
    names(result) <- paste("covGO", deparse(substitute(pn)), 1:ncolPn, sep=".")
    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.