R/expandRndGO.R

Defines functions `expandRndGO`

`expandRndGO` <-
function(prevRndGO, mnom) 
{
        ssize <- ncol(prevRndGO)
        n <- attr(prevRndGO,"ngenes")
        x <- as.data.frame(t(generate.multinomial(mnom, ssize)))
        result <- (prevRndGO*n + sapply(x, contractCol, row.names(x))) / (n2 <- n + mnom$n)
        attr(result, "ngenes") <- n2
        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.