R/P.preestimation.R

Defines functions `P.preestimation`

`P.preestimation` <-
function(X,topK)
{

    nExp   <- ncol(X)
    nGenes <- nrow(X)
    IX   <- matrix(0,nrow=nGenes,ncol=nExp)
    for(j in 1:nExp)
   {
      colX <- abs(X[,j])
	    srt  <- sort(colX,decreasing=TRUE,index.return=TRUE)
	    IX[srt$ix[1:topK],j] <- 1
   }
   IX
}

Try the NTW package in your browser

Any scripts or data that you put into this service are public.

NTW documentation built on Nov. 8, 2020, 6:51 p.m.