annotate GetAllPatterns.R @ 40:2f3c2a102dc3 draft

Uploaded
author ning
date Mon, 16 Jun 2014 16:24:00 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
40
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
1 sink(file="/tmp/none")
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
2 sink("/dev/null")
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
3 options(warn=-1)
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
4 options(echo=F)
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
5
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
6 invisible("EBSeq")
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
7 suppressMessages(library("EBSeq"))
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
8
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
9 args <- commandArgs()
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
10 inputfile <- args[6]
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
11 outputfile <- args[7]
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
12 #PairwisePlots <-args[6]
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
13
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
14 print(args)
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
15
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
16 Conds=strsplit(inputfile,split=",")[[1]]
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
17
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
18
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
19 Out=GetPatterns(Conds)
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
20
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
21
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
22 #write.table(Out,file=outputfile,quote=F,col.names=T,row.names=T,sep = "\t")
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
23 write.table(Out,file=outputfile,quote=F,col.names=NA,row.names=T,sep = "\t") ##cms - changed on 11/11/13
2f3c2a102dc3 Uploaded
ning
parents:
diff changeset
24