0
|
1 ---
|
1
|
2 title: 'Dustmasker 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
|
1
|
57 ## Run `dustmasker` job
|
0
|
58
|
1
|
59 ```{bash echo=FALSE}
|
|
60 sh ${TOOL_INSTALL_DIR}/scripts_generator.sh
|
0
|
61 ```
|
|
62
|
1
|
63 ```{r echo=FALSE,warning=FALSE,results='asis'}
|
|
64 # display content of the job-script.sh file.
|
|
65 cat('```bash\n')
|
|
66 cat(readLines(paste0(Sys.getenv('REPORT_FILES_PATH'), '/dustmasker.sh')), sep = '\n')
|
|
67 cat('\n```')
|
|
68 ```
|
|
69
|
|
70
|
|
71 **Options explanation:**
|
0
|
72
|
|
73 <pre>
|
|
74 -in <File_In>
|
|
75 input file name
|
|
76 Default = `-'
|
|
77 -window <Integer>
|
|
78 DUST window length
|
|
79 Default = `64'
|
|
80 -level <Integer>
|
|
81 DUST level (score threshold for subwindows)
|
|
82 Default = `20'
|
|
83 -linker <Integer>
|
|
84 DUST linker (how close masked intervals should be to get merged together).
|
|
85 Default = `1'
|
|
86 -infmt <String>
|
|
87 input format (possible values: fasta, blastdb)
|
|
88 Default = `fasta'
|
|
89 -outfmt <String, `acclist', `fasta', `interval', `maskinfo_asn1_bin',
|
|
90 `maskinfo_asn1_text', `maskinfo_xml', `seqloc_asn1_bin',
|
|
91 `seqloc_asn1_text', `seqloc_xml'>
|
|
92 output format
|
|
93 Default = `interval'
|
|
94 -parse_seqids
|
|
95 Parse Seq-ids in FASTA input
|
|
96
|
|
97 -out <File_Out>
|
|
98 output file name
|
|
99 </pre> |