annotate findBlocks/findBlocks.R @ 0:fea57210de6c draft

Uploaded
author testtool
date Sun, 11 Jun 2017 08:53:04 -0400
parents
children 7ce7fb0f8d05
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
fea57210de6c Uploaded
testtool
parents:
diff changeset
1 require("IlluminaHumanMethylation450kanno.ilmn12.hg19", quietly = TRUE)
fea57210de6c Uploaded
testtool
parents:
diff changeset
2 require("minfi", quietly = TRUE)
fea57210de6c Uploaded
testtool
parents:
diff changeset
3
fea57210de6c Uploaded
testtool
parents:
diff changeset
4 options(warn = -1)
fea57210de6c Uploaded
testtool
parents:
diff changeset
5 options("download.file.method"="wget")
fea57210de6c Uploaded
testtool
parents:
diff changeset
6
fea57210de6c Uploaded
testtool
parents:
diff changeset
7 args <- commandArgs(trailingOnly = TRUE)
fea57210de6c Uploaded
testtool
parents:
diff changeset
8
fea57210de6c Uploaded
testtool
parents:
diff changeset
9 input = args[1]
fea57210de6c Uploaded
testtool
parents:
diff changeset
10 output = args[2]
fea57210de6c Uploaded
testtool
parents:
diff changeset
11
fea57210de6c Uploaded
testtool
parents:
diff changeset
12 GRset <- get(load(input))
fea57210de6c Uploaded
testtool
parents:
diff changeset
13
fea57210de6c Uploaded
testtool
parents:
diff changeset
14 blocks <- blockFinder(GRset, design, coef = 2, what = c("Beta", "M"),
fea57210de6c Uploaded
testtool
parents:
diff changeset
15 cluster = NULL, cutoff = NULL,
fea57210de6c Uploaded
testtool
parents:
diff changeset
16 pickCutoff = FALSE, pickCutoffQ = 0.99,
fea57210de6c Uploaded
testtool
parents:
diff changeset
17 nullMethod = c("permutation","bootstrap"),
fea57210de6c Uploaded
testtool
parents:
diff changeset
18 smooth = TRUE, smoothFunction = locfitByCluster,
fea57210de6c Uploaded
testtool
parents:
diff changeset
19 B = ncol(permutations), permutations = NULL,
fea57210de6c Uploaded
testtool
parents:
diff changeset
20 verbose = TRUE)
fea57210de6c Uploaded
testtool
parents:
diff changeset
21
fea57210de6c Uploaded
testtool
parents:
diff changeset
22 write.table(blocks, output)