annotate bdss_client_sra_render.R @ 21:a709a705ce09 draft

planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
author mingchen0919
date Sat, 14 Oct 2017 19:54:57 -0400
parents
children 89cc5b026494
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
1 library(getopt)
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
2 library(rmarkdown)
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
3 library(htmltools)
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
4 library(dplyr)
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
5 library(RCurl)
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
6
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
7
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
8 ##============ Sink warnings and errors to a file ==============
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
9 ## use the sink() function to wrap all code within it.
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
10 ##==============================================================
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
11 zz = file('warnings_and_errors.txt')
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
12 sink(zz)
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
13 sink(zz, type = 'message')
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
14 ##---------below is the code for rendering .Rmd templates-----
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
15
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
16 ##=============STEP 1: handle command line arguments==========
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
17 ##
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
18 ##============================================================
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
19 # column 1: the long flag name
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
20 # column 2: the short flag alias. A SINGLE character string
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
21 # column 3: argument mask
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
22 # 0: no argument
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
23 # 1: argument required
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
24 # 2: argument is optional
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
25 # column 4: date type to which the flag's argument shall be cast.
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
26 # possible values: logical, integer, double, complex, character.
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
27 #-------------------------------------------------------------
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
28 #++++++++++++++++++++ Best practice ++++++++++++++++++++++++++
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
29 # 1. short flag alias should match the flag in the command section in the XML file.
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
30 # 2. long flag name can be any legal R variable names
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
31 # 3. two names in args_list can have common string but one name should not be a part of another name.
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
32 # for example, one name is "ECHO", if another name is "ECHO_XXX", it will cause problems.
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
33 #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
34 ##------- 1. input data ---------------------
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
35 args_list=list()
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
36 args_list$SRA_IDS_SE = c('sra_ids_se', 'i', '1', 'character')
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
37 args_list$SRA_IDS_PE = c('sra_ids_pe', 'i', '1', 'character')
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
38 args_list$ECHO = c('echo', 'e', '1', 'character')
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
39 ##--------2. output report and outputs --------------
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
40 args_list$REPORT_HTML = c('report_html', 'r', '1', 'character')
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
41 args_list$REPORT_DIR = c('report_dir', 'd', '1', 'character')
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
42 args_list$SINK_OUTPUT = c('sink_message', 's', '1', 'character')
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
43 ##--------3. Rmd templates in the tool directory ----------
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
44 args_list$BDSS_CLIENT_RMD = c('bdss_client_rmd', 't', '1', 'character')
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
45
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
46 opt = getopt(t(as.data.frame(args_list)))
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
47
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
48
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
49 ##=======STEP 2: create report directory (optional)==========
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
50 ##
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
51 ##===========================================================
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
52 dir.create(opt$report_dir)
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
53
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
54 ##=STEP 3: replace placeholders in .Rmd with argument values=
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
55 ##
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
56 ##===========================================================
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
57 #++ need to replace placeholders with args values one by one+
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
58 #----- 01 bdss_client.Rmd -----------------------
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
59 readLines(opt$bdss_client_rmd) %>%
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
60 (function(x) {
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
61 gsub('SRA_IDS_SE', opt$sra_ids_se, x)
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
62 }) %>%
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
63 (function(x) {
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
64 gsub('SRA_IDS_PE', opt$sra_ids_pe, x)
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
65 }) %>%
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
66 (function(x) {
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
67 gsub('FORMAT', opt$format, x)
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
68 }) %>%
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
69 (function(x) {
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
70 gsub('ECHO', opt$echo, x)
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
71 }) %>%
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
72 (function(x) {
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
73 gsub('REPORT_DIR', opt$report_dir, x)
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
74 }) %>%
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
75 (function(x) {
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
76 fileConn = file('bdss_client.Rmd')
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
77 writeLines(x, con=fileConn)
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
78 close(fileConn)
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
79 })
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
80
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
81 ##=============STEP 4: render .Rmd templates=================
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
82 ##
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
83 ##===========================================================
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
84 render('bdss_client.Rmd', output_file = opt$report_html)
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
85
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
86
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
87 ##--------end of code rendering .Rmd templates----------------
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
88 sink()
a709a705ce09 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 813dcaa22f297814dd6d6a8c4c5ff01664942aa6-dirty
mingchen0919
parents:
diff changeset
89 ##=========== End of sinking output=============================