annotate minfi_qc.R @ 2:e1623ee43bc6 draft default tip

planemo upload for repository https://github.com/kpbioteam/minfi_qc commit bb1622e57b83aa260687997e48fc4ec7011f8642-dirty
author kpbioteam
date Wed, 27 Jun 2018 14:23:05 -0400
parents 7bd0d3c7a8d3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7bd0d3c7a8d3 planemo upload
kpbioteam
parents:
diff changeset
1 require("minfi", quietly = TRUE)
7bd0d3c7a8d3 planemo upload
kpbioteam
parents:
diff changeset
2
7bd0d3c7a8d3 planemo upload
kpbioteam
parents:
diff changeset
3 args <- commandArgs(trailingOnly = TRUE)
7bd0d3c7a8d3 planemo upload
kpbioteam
parents:
diff changeset
4
7bd0d3c7a8d3 planemo upload
kpbioteam
parents:
diff changeset
5 input = args[1]
7bd0d3c7a8d3 planemo upload
kpbioteam
parents:
diff changeset
6 output1 = args[2]
7bd0d3c7a8d3 planemo upload
kpbioteam
parents:
diff changeset
7 output2 = args[3]
7bd0d3c7a8d3 planemo upload
kpbioteam
parents:
diff changeset
8
7bd0d3c7a8d3 planemo upload
kpbioteam
parents:
diff changeset
9 MSet <- get(load(input))
7bd0d3c7a8d3 planemo upload
kpbioteam
parents:
diff changeset
10
7bd0d3c7a8d3 planemo upload
kpbioteam
parents:
diff changeset
11 qc <- getQC(MSet)
7bd0d3c7a8d3 planemo upload
kpbioteam
parents:
diff changeset
12
7bd0d3c7a8d3 planemo upload
kpbioteam
parents:
diff changeset
13 write.table(qc, output1)
7bd0d3c7a8d3 planemo upload
kpbioteam
parents:
diff changeset
14
7bd0d3c7a8d3 planemo upload
kpbioteam
parents:
diff changeset
15 png(output2)
7bd0d3c7a8d3 planemo upload
kpbioteam
parents:
diff changeset
16 plotQC(qc)
7bd0d3c7a8d3 planemo upload
kpbioteam
parents:
diff changeset
17 dev.off()