inst/scripts/QRtimes2.R

library(geeni)
data(bigd)



source("engine.R")


library(biglm)


choppedlm = function(fmla, data, chunks) {
  ai = function(x) as.integer(as.hi(x))
  m = biglm(fmla, data[ai(chunks[[1]]),])
  if (length(chunks)==1) return(m)
  for (j in 2:length(chunks)) m = update(m, bigd[ai(chunks[[j]]),])
  m
}

library(ff)

c1m = chunk(from=1, to=5e6, by=1e6, max=5e6)
c100k = chunk(from=1, to=5e6, by=1e5, max=5e6)

qr100km = list()
qr100km$M1M = list()
qr100km$M1M[[1]] = unix.time( choppedlm( isT~GCcon, bigd, c100k[1:10] ) )
qr100km$M1M[[2]] = unix.time( choppedlm( isT~GCcon, bigd, c100k[1:10] ) )
qr100km$M1M[[3]] = unix.time( choppedlm( isT~GCcon, bigd, c100k[1:10] ) )
qr100km$M1M[[4]] = unix.time( choppedlm( isT~GCcon, bigd, c100k[1:10] ) )
qr100km$M1M[[5]] = unix.time( choppedlm( isT~GCcon, bigd, c100k[1:10] ) )

qr100km$M2M = list()
qr100km$M2M[[1]] = unix.time( choppedlm( isT~GCcon, bigd, c100k[1:20] ) )
qr100km$M2M[[2]] = unix.time( choppedlm( isT~GCcon, bigd, c100k[1:20] ) )
qr100km$M2M[[3]] = unix.time( choppedlm( isT~GCcon, bigd, c100k[1:20] ) )
qr100km$M2M[[4]] = unix.time( choppedlm( isT~GCcon, bigd, c100k[1:20] ) )
qr100km$M2M[[5]] = unix.time( choppedlm( isT~GCcon, bigd, c100k[1:20] ) )

qr100km$M3M = list()
qr100km$M3M[[1]] = unix.time( choppedlm( isT~GCcon, bigd, c100k[1:30] ) )
qr100km$M3M[[2]] = unix.time( choppedlm( isT~GCcon, bigd, c100k[1:30] ) )
qr100km$M3M[[3]] = unix.time( choppedlm( isT~GCcon, bigd, c100k[1:30] ) )
qr100km$M3M[[4]] = unix.time( choppedlm( isT~GCcon, bigd, c100k[1:30] ) )
qr100km$M3M[[5]] = unix.time( choppedlm( isT~GCcon, bigd, c100k[1:30] ) )

qr100km$M4M = list()
qr100km$M4M[[1]] = unix.time( choppedlm( isT~GCcon, bigd, c100k[1:40] ) )
qr100km$M4M[[2]] = unix.time( choppedlm( isT~GCcon, bigd, c100k[1:40] ) )
qr100km$M4M[[3]] = unix.time( choppedlm( isT~GCcon, bigd, c100k[1:40] ) )
qr100km$M4M[[4]] = unix.time( choppedlm( isT~GCcon, bigd, c100k[1:40] ) )
qr100km$M4M[[5]] = unix.time( choppedlm( isT~GCcon, bigd, c100k[1:40] ) )

qr100km$M5M = list()
qr100km$M5M[[1]] = unix.time( choppedlm( isT~GCcon, bigd, c100k ) )
qr100km$M5M[[2]] = unix.time( choppedlm( isT~GCcon, bigd, c100k ) )
qr100km$M5M[[3]] = unix.time( choppedlm( isT~GCcon, bigd, c100k ) )
qr100km$M5M[[4]] = unix.time( choppedlm( isT~GCcon, bigd, c100k ) )
qr100km$M5M[[5]] = unix.time( choppedlm( isT~GCcon, bigd, c100k ) )

save(qr100km, file="qr100km.rda")
Bioconductor/geeni documentation built on May 6, 2019, 7:52 a.m.