annotate findSNP/findSNPs.R @ 0:803decff7ac8 draft

Uploaded
author testtool
date Sun, 11 Jun 2017 10:00:48 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
803decff7ac8 Uploaded
testtool
parents:
diff changeset
1 require("minfi", quietly = TRUE)
803decff7ac8 Uploaded
testtool
parents:
diff changeset
2
803decff7ac8 Uploaded
testtool
parents:
diff changeset
3 options(warn = -1)
803decff7ac8 Uploaded
testtool
parents:
diff changeset
4 options("download.file.method"="wget")
803decff7ac8 Uploaded
testtool
parents:
diff changeset
5
803decff7ac8 Uploaded
testtool
parents:
diff changeset
6 args <- commandArgs(trailingOnly = TRUE)
803decff7ac8 Uploaded
testtool
parents:
diff changeset
7
803decff7ac8 Uploaded
testtool
parents:
diff changeset
8 input = args[1]
803decff7ac8 Uploaded
testtool
parents:
diff changeset
9 output = args[2]
803decff7ac8 Uploaded
testtool
parents:
diff changeset
10
803decff7ac8 Uploaded
testtool
parents:
diff changeset
11 GRset <- get(load(input))
803decff7ac8 Uploaded
testtool
parents:
diff changeset
12
803decff7ac8 Uploaded
testtool
parents:
diff changeset
13 snps <- getSnpInfo(GRset)
803decff7ac8 Uploaded
testtool
parents:
diff changeset
14
803decff7ac8 Uploaded
testtool
parents:
diff changeset
15 write.table(snps, output)
803decff7ac8 Uploaded
testtool
parents:
diff changeset
16
803decff7ac8 Uploaded
testtool
parents:
diff changeset
17