R/GSA.genescores.R

Defines functions GSA.genescores

Documented in GSA.genescores

GSA.genescores=function(geneset.number, genesets,  GSA.obj,  genenames, negfirst=FALSE){
 
  tt=GSA.obj$gene.scores

  oo=match(genesets[[geneset.number]],genenames)
oo=oo[!is.na(oo)]
ooo=order(tt[oo],decreasing=!negfirst)
  res=cbind(genenames[oo], round(tt[oo],3))[ooo,,drop=F]

      dimnames(res)=list(NULL,c("Gene","Score"))
return(res)
}

Try the GSA package in your browser

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

GSA documentation built on May 29, 2024, 7:23 a.m.