annotate findSNPs/findSNPs.R @ 2:15bb9a34d924 draft

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