inst/oldRsrc/filterCode.R

topSingSnps = function(x, n=250, df=1) {
  pp = p.value(x) #, df)
  opp = order(pp)
  x[opp[1:n]]
}

filterGWS = function(x, ...) {
  gc()
  x@.Data = lapply(x@.Data, topSingSnps, ...)
  new("filteredGwSnpScreenResult", x)
}

Try the GGtools package in your browser

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

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