`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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.