annotate RnBeadsGalaxy.R @ 17:29a00b4066a7 draft

Uploaded
author pavlo-lutsik
date Sun, 21 Apr 2013 18:30:00 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
1 #msg.file<-file("RnBeads.messages.out", open="w")
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
2 #sink(file=msg.file)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
3
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
4 suppressWarnings(suppressPackageStartupMessages(library(RnBeads)))
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
5 suppressWarnings(suppressPackageStartupMessages(library(getopt)))
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
6
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
7 #all.opts<-names(rnb.options())
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
8 opt.class<-RnBeads:::OPTION.TYPES[-28]
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
9 all.opts<-names(opt.class)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
10 #all.opts<-paste("--", all.opts, sep="")
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
11 #all.opts<-gsub("\\.([a-z])", "\\U\\1", all.opts, perl=TRUE)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
12 all.opts<-gsub("\\.","-", all.opts)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
13 #opt.class<-sapply(rnb.options(), class)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
14
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
15 rnb.opt.spec<-data.frame(
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
16 Long=all.opts,
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
17 Short=as.character(1:length(all.opts)),
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
18 Mask=c(1,2)[as.integer((opt.class=="logical"))+1],
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
19 Type=opt.class)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
20
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
21 ### automated xml file preparation
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
22 #xml.strings<-apply(rnb.opt.spec,1, function(row){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
23 #
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
24 # opt.lab<-gsub("-", ".", row[1])
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
25 # opt.def.val<-rnb.getOption(opt.lab)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
26 # opt.name<-gsub("-([0-9a-z])", "\\U\\1", row[1], perl=TRUE)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
27 # tf.opt<-"\t\t\t<option value=\"True\">True</option>\n\t\t\t<option value=\"False\">False</option>"
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
28 # opt.lab<-paste(opt.lab, gsub("\\."," ", row[4]), sep=", ")
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
29 # if(row[4]=="logical"){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
30 # opt.type<-'select'
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
31 # if(!is.null(opt.def.val) && opt.def.val)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
32 # opt.def.val<-"1" else
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
33 # opt.def.val<-"0"
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
34 # string<-sprintf("\t\t<param name=\"%s\" type=\"%s\" label=\"%s\" value=\"%s\">\n%s\n\t\t</param>\n", opt.name, opt.type, opt.lab, opt.def.val, tf.opt)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
35 # }else{
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
36 # opt.type<-'text'
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
37 # if(!is.null(opt.def.val) && opt.def.val!="")
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
38 # opt.def.val<-paste(opt.def.val, collapse=",") else
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
39 # opt.def.val<-""
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
40 # string<-sprintf("\t\t<param name=\"%s\" type=\"%s\" label=\"%s\" value=\"%s\"/>\n", opt.name, opt.type, opt.lab, opt.def.val)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
41 # }
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
42 # string
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
43 # })
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
44 #
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
45 #cat(xml.strings, sep="", file="automated.settings.xml.txt")
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
46 #
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
47 #opt.def.strings<-apply(rnb.opt.spec,1, function(row){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
48 #
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
49 # opt.name<-gsub("-([0-9a-z])", "\\U\\1", row[1], perl=TRUE)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
50 # opt.long<-row[1]
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
51 # opt.short<-row[2]
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
52 #
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
53 # if(row[4]=="logical"){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
54 # def.string<-sprintf("#if str( $options.%s ) == \"True\"\n\t--%s\n#end if\n", opt.name, opt.long)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
55 # }else{
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
56 # def.string<-sprintf("#if str( $options.%s ) != \"\"\n\t--%s=\"$options.%s\" \n#end if\n", opt.name, opt.long, opt.name)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
57 # }
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
58 # def.string
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
59 #
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
60 # })
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
61 #cat(opt.def.strings, sep="", file="automated.option.assignments.txt")
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
62
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
63
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
64 rnb.opt.spec$Type<-gsub("\\.vector", "", rnb.opt.spec$Type)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
65 rnb.opt.spec$Type<-gsub("numeric", "double", rnb.opt.spec$Type)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
66 rnb.opt.spec<-rbind(data.frame(
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
67 Long=c("data-type", "pheno", "idat-dir","idat-files","bed-files", "gs-report", "geo-series", "betas", "pvals","output-file", "report-dir"),
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
68 Short=c("d","s","a","i","f","g","e","b","p","r","o"),
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
69 Mask=c(1,2,2,2,2,2,2,2,2,1,1),
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
70 Type=c("character","character","character","character","character","character","character","character","character","character", "character")),
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
71 rnb.opt.spec)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
72
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
73 opts<-getopt(as.matrix(rnb.opt.spec))
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
74 #opts<-getopt(as.matrix(rnb.opt.spec), opt=list("--data-type=idats","--report-dir=dir", "--idats=file1\tfile2"))
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
75 print(opts)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
76
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
77 if(opts[["data-type"]]=="idatDir"){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
78
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
79 data.source<-list()
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
80 data.type<-"idat.dir"
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
81 data.source[["idat.dir"]]<-opts[["idat-dir"]]
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
82 data.source[["sample.sheet"]]<-opts[["pheno"]]
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
83
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
84 }else if(opts[["data-type"]]=="idatFiles"){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
85
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
86 data.type<-"idat.dir"
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
87 file.string<-gsub(" ","", opts[["idat-files"]])
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
88 files<-strsplit(file.string, ",")[[1]]
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
89 files<-files[files!=""]
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
90 bed.dir<-sprintf("%s_beds",opts[["report-dir"]])
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
91 dir.create(bed.dir)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
92 file.copy(files, bed.dir)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
93 for(dat.file in list.files(bed.dir, full.names = TRUE)){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
94 file.rename(dat.file, gsub("\\.dat", ".bed", dat.file))
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
95 }
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
96 data.source<-list()
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
97 data.source[["bed.dir"]]<-bed.dir
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
98 data.source[["sample.sheet"]]<-opts[["pheno"]]
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
99
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
100
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
101 }else if(opts[["data-type"]]=="GS.report"){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
102
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
103 data.type<-"GS.report"
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
104 data.source<-opts[["gs-report"]]
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
105
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
106 }else if(opts[["data-type"]]=="GEO"){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
107
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
108 data.type<-"GEO"
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
109 data.source<-opts[["geo-series"]]
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
110
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
111 }else if(opts[["data-type"]]=="data.files"){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
112
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
113 data.type<-"GEO"
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
114 data.source<-opts[["geo-series"]]
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
115
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
116 }else if(opts[["data-type"]]=="data.files"){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
117
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
118 data.type<-"data.files"
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
119 data.source<-c(opts[["pheno"]], opts[["betas"]])
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
120 if(!is.null(opts[["pvals"]]))
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
121 data.source<-c(data.source, opts[["pvals"]])
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
122
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
123 }else if(opts[["data-type"]]=="bed.dir"){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
124
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
125 data.type<-"bed.dir"
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
126 file.string<-gsub(" ","", opts[["bed-files"]])
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
127 files<-strsplit(file.string, ",")[[1]]
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
128 files<-files[files!=""]
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
129 bed.dir<-sprintf("%s_beds",opts[["report-dir"]])
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
130 dir.create(bed.dir)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
131 file.copy(files, bed.dir)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
132 for(dat.file in list.files(bed.dir, full.names = TRUE)){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
133 file.rename(dat.file, gsub("\\.dat", ".bed", dat.file))
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
134 }
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
135 data.source<-list()
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
136 data.source[["bed.dir"]]<-bed.dir
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
137
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
138 logger.start(fname="NA")
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
139 sample.sheet<-rnb.read.annotation(opts[["pheno"]])
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
140 logger.close()
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
141 if(length(files) < nrow(sample.sheet))
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
142 stop("Not all bed files are present")
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
143
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
144 cn<-colnames(sample.sheet)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
145 sample.sheet<-cbind(sample.sheet, gsub("\\.dat", ".bed", files))
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
146 colnames(sample.sheet)<-c(cn, "BED_files")
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
147 data.source[["sample.sheet"]]<-sample.sheet
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
148 }
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
149
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
150 if("logging" %in% names(opts)){ # TODO create a cleaner way of checking whether the full options set was supplied
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
151
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
152 dump<-sapply(names(opt.class), function(on){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
153 getoptname<-gsub("-", "\\.","-",on)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
154 if(getoptname %in% names(opts)){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
155 if(opt.class[on]=="logical"){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
156 ov<-TRUE
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
157 }else if(opt.class %in% c("character","character.vector")){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
158 ov<-opts[[getoptname]]
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
159 ov<-gsub("\"", "", ov)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
160 if(opt.class=="character.vector"){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
161 ov<-as.character(strsplit(ov,","))
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
162 }
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
163
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
164 }else if(opt.class %in% c("integer","numeric","integer.vector","numeric.vector")){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
165 ov<-opts[[getoptname]]
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
166 ov<-gsub("\"", "", ov)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
167 if(opt.class %in% c("integer.vector","numeric.vector")){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
168 ov<-as.character(strsplit(ov,","))
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
169 }
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
170 }
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
171 eval(parse(text=sprintf("rnb.options(%s=ov)",on)))
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
172 }
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
173 })
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
174
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
175 logical.opts<-names(opt.class[opt.class=="logical"])
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
176 logical.opts.false<-logical.opts[!logical.opts %in% gsub("-",".",names(opts))]
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
177
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
178
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
179 dump<-sapply(logical.opts.false, function(on){
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
180 eval(parse(text=sprintf("rnb.options(%s=FALSE)",on)))
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
181 })
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
182 }
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
183
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
184 print(rnb.options())
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
185
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
186 #report.out.dir<-sprintf("%s_rnbReport", tempdir())
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
187 report.out.dir<-opts[["report-dir"]]
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
188 #print("Starting RnBeads with the following inputs:")
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
189 #print(data.source)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
190 #print(report.out.dir)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
191 #print(data.type)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
192 rnb.run.analysis(data.source=data.source, dir.report=report.out.dir, data.type=data.type)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
193
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
194
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
195 #sink(file=NULL)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
196 #flush(msg.file)
29a00b4066a7 Uploaded
pavlo-lutsik
parents:
diff changeset
197 #close(msg.file)