annotate RnBeadsGalaxy.R @ 25:6f4321495d9d draft

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