R/compute.gset.dstats.R

Defines functions compute.gset.dstats

compute.gset.dstats <-
function(dstats,            # vector of d-stats from one experiment
                              gset.index.list)   # list of row-indices for gene-sets

{
   n.gset <- length(gset.index.list)
   gset.dstats <- rep(NA,n.gset)
   abs.dstats <- abs(dstats)
   for (i in 1:n.gset)
   {
     gset.index <- unlist(gset.index.list[[i]])
     gset.dstats[i] <- mean(abs.dstats[gset.index])
   }
   return(gset.dstats)
}

Try the AGDEX package in your browser

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

AGDEX documentation built on Nov. 8, 2020, 8:32 p.m.