| 0 | 1 require("minfi", quietly = TRUE) | 
|  | 2 | 
|  | 3 options(warn = -1) | 
|  | 4 options("download.file.method"="wget") | 
|  | 5 | 
|  | 6 args <- commandArgs(trailingOnly = TRUE) | 
|  | 7 | 
|  | 8 input = args[1] | 
|  | 9 output = args[2] | 
|  | 10 | 
|  | 11 GRset <- get(load(input)) | 
|  | 12 | 
|  | 13 blocks <- blockFinder(GRset, design, coef = 2, what = c("Beta", "M"), | 
|  | 14             cluster = NULL, cutoff = NULL, | 
|  | 15             pickCutoff = FALSE, pickCutoffQ = 0.99, | 
|  | 16             nullMethod = c("permutation","bootstrap"), | 
|  | 17             smooth = TRUE, smoothFunction = locfitByCluster, | 
|  | 18             B = ncol(permutations), permutations = NULL, | 
|  | 19             verbose = TRUE) | 
|  | 20 | 
|  | 21 write.table(blocks, output) |