R/pDisPathway-utils.R

Defines functions get.totalpDisNorm get.totalpDis compute.pORA compute.ppDis

compute.ppDis <- function(pDisPath)
  ifelse( !all(pDisPath@boot$t[,"tpDis"] == 0),
          compute.bootPV(pDisPath@boot$t0["tpDis"], pDisPath@boot$t[,"tpDis"]),
          NA)


compute.pORA <- function(pDisPath, inputSize, refSize)
  phyper(q = length(pDisPath@input)-1,
         m = length(pDisPath@ref),
         n = refSize-length(pDisPath@ref),
         k = inputSize,
         lower.tail = FALSE) 


get.totalpDis <- function(pDisPath)
  as.numeric(pDisPath@boot$t0["tpDis"])

get.totalpDisNorm <- function(pDisPath)
  ifelse( !all(pDisPath@boot$t[,"tpDis"] == 0),
          as.numeric((pDisPath@boot$t0["tpDis"] - mean(pDisPath@boot$t[,"tpDis"])) / sd(pDisPath@boot$t[,"tpDis"])),
          NA)

Try the ROntoTools package in your browser

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

ROntoTools documentation built on Nov. 8, 2020, 7:41 p.m.