0
|
1 ---
|
1
|
2 title: 'Aurora STAR Report'
|
0
|
3 output:
|
|
4 html_document:
|
|
5 highlight: pygments
|
|
6 ---
|
|
7
|
|
8 ```{r setup, include=FALSE, warning=FALSE, message=FALSE}
|
|
9 knitr::opts_chunk$set(error = TRUE, echo = FALSE)
|
|
10 ```
|
|
11
|
|
12 ```{css echo=FALSE}
|
|
13 # code chunks scrollable
|
|
14 pre code, pre, code {
|
|
15 white-space: pre !important;
|
|
16 overflow-x: scroll !important;
|
|
17 word-break: keep-all !important;
|
|
18 word-wrap: initial !important;
|
|
19 }
|
|
20 ```
|
|
21
|
|
22
|
|
23 ```{r, echo=FALSE}
|
|
24 # to make the css theme to work, <link></link> tags cannot be added directly
|
|
25 # as <script></script> tags as below.
|
|
26 # it has to be added using a code chunk with the htmltool functions!!!
|
|
27 css_link = tags$link()
|
|
28 css_link$attribs = list(rel="stylesheet", href="vakata-jstree-3.3.5/dist/themes/default/style.min.css")
|
|
29 css_link
|
|
30 ```
|
|
31
|
|
32 ```{r, eval=FALSE, echo=FALSE}
|
|
33 # this code chunk is purely for adding comments
|
|
34 # below is to add jQuery and jstree javascripts
|
|
35 ```
|
|
36 <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
|
|
37 <script src="vakata-jstree-3.3.5/dist/jstree.min.js"></script>
|
|
38
|
|
39 ---
|
|
40 # javascript code below is to build the file tree interface
|
|
41 # see this for how to implement opening hyperlink: https://stackoverflow.com/questions/18611317/how-to-get-i-get-leaf-nodes-in-jstree-to-open-their-hyperlink-when-clicked-when
|
|
42 ---
|
|
43 <script>
|
|
44 $(function () {
|
|
45 // create an instance when the DOM is ready
|
|
46 $('#jstree').jstree().bind("select_node.jstree", function (e, data) {
|
|
47 window.open( data.node.a_attr.href, data.node.a_attr.target )
|
|
48 });
|
|
49 });
|
|
50 </script>
|
|
51
|
|
52 ---
|
|
53 # ADD YOUR DATA ANALYSIS CODE AND MARKUP TEXT BELOW TO EXTEND THIS R MARKDOWN FILE
|
|
54 ---
|
|
55
|
|
56
|
|
57
|
1
|
58 ```{bash, echo=FALSE}
|
|
59 sh ${TOOL_INSTALL_DIR}/run-star-jobs.sh > ${REPORT_FILES_PATH}/log.txt 2>&1
|
|
60 ```
|
0
|
61
|
|
62
|
|
63 ### Index genome
|
|
64
|
|
65 ```{r echo=FALSE,results='asis'}
|
|
66 # display content of the job-script.sh file.
|
|
67 cat('```bash\n')
|
1
|
68 cat(readLines(paste0(Sys.getenv('REPORT_FILES_PATH'), '/scripts/1-index-genome.sh')), sep = '\n')
|
0
|
69 cat('\n```')
|
|
70 ```
|
|
71
|
|
72 ### Mapping
|
|
73
|
|
74 ```{r echo=FALSE,results='asis'}
|
|
75 # display content of the job-script.sh file.
|
|
76 cat('```bash\n')
|
1
|
77 cat(readLines(paste0(Sys.getenv('REPORT_FILES_PATH'), '/scripts/2-mapping.sh')), sep = '\n')
|
0
|
78 cat('\n```')
|
|
79 ```
|
|
80
|
|
81 ### SAM to sorted BAM
|
|
82
|
|
83 ```{r echo=FALSE,warning=FALSE,results='asis'}
|
|
84 # display content of the job-script.sh file.
|
|
85 cat('```bash\n')
|
1
|
86 cat(readLines(paste0(Sys.getenv('REPORT_FILES_PATH'), '/scripts/3-sam2bam.sh')), sep = '\n')
|
0
|
87 cat('\n```')
|
|
88 ```
|
|
89
|
|
90 ### Mapping evaluation
|
|
91
|
|
92 ```{r echo=FALSE,warning=FALSE,results='asis'}
|
|
93 # display content of the job-script.sh file.
|
|
94 cat('```bash\n')
|
1
|
95 cat(readLines(paste0(Sys.getenv('REPORT_FILES_PATH'), '/scripts/4-flagstat.sh')), sep = '\n')
|
0
|
96 cat('\n```')
|
|
97 ```
|
|
98
|
|
99
|
|
100 ### Mapping evaluation results
|
|
101
|
|
102 ```{r echo=FALSE,warning=FALSE,results='asis'}
|
|
103 # display content of the job-script.sh file.
|
|
104 cat('```bash\n')
|
1
|
105 cat(readLines(paste0(Sys.getenv('REPORT_FILES_PATH'), '/flagstat.txt')), sep = '\n')
|
0
|
106 cat('\n```')
|
|
107 ``` |