diff collection_paired_render.R @ 47:fb05ca474127 draft

planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit a7ad932a1725b4ef26d522040c5395ae0026fb35-dirty
author mingchen0919
date Tue, 26 Sep 2017 12:24:21 -0400
parents 8dacd341b8b7
children 68da32dbc6e2
line wrap: on
line diff
--- a/collection_paired_render.R	Tue Sep 26 12:10:20 2017 -0400
+++ b/collection_paired_render.R	Tue Sep 26 12:24:21 2017 -0400
@@ -31,14 +31,14 @@
 ##------- 1. input data ---------------------
 spec_list=list()
 spec_list$FORWARD_INPUT = c('forward_input', 'L', '1', 'character')
-spec_list$REVERSE_INPUT = c('reverse_forward_input', 'R', '1', 'character')
+spec_list$REVERSE_INPUT = c('reverse_input', 'R', '1', 'character')
 spec_list$ECHO = c('echo', 'e', '1', 'character')
 spec_list$FORMAT = c('format', 'f', '1', 'character')
 ##--------2. output report and outputs --------------
 spec_list$OUTPUT_HTML = c('paired_collection_html', 'r', '1', 'character')
 spec_list$OUTPUT_DIR = c('paired_collection_dir', 'd', '1', 'character')
 ##--------3. Rmd templates in the tool directory ----------
-spec_list$LIST_COLLECTION_RMD = c('list_collection_rmd', 't', '1', 'character')
+spec_list$PAIRED_COLLECTION_RMD = c('paired_collection_rmd', 't', '1', 'character')
 
 spec = t(as.data.frame(spec_list))
 opt = getopt(spec)
@@ -58,8 +58,8 @@
 #   b. templates with placeholder variables:
 #         substitute variables with user input values and place them in the working directory.
 
-#----- 01 list_collection.Rmd -----------------------
-readLines(opt$list_collection_rmd) %>%
+#----- 01 paired_collection.Rmd -----------------------
+readLines(opt$paired_collection_rmd) %>%
   (function(x) {
     gsub('ECHO', opt$echo, x)
   }) %>%