# HG changeset patch # User mingchen0919 # Date 1521390558 14400 # Node ID 1731a1cca2260e51e8e65f83a10fea5cbb27b4bb # Parent d9601e1eb360c4519c9c24225373aef5f07660d1 v1.1.0 diff -r d9601e1eb360 -r 1731a1cca226 skewer.Rmd --- a/skewer.Rmd Sun Mar 18 11:07:16 2018 -0400 +++ b/skewer.Rmd Sun Mar 18 12:29:18 2018 -0400 @@ -4,7 +4,6 @@ html_document: number_sections: true highlight: tango - code_folding: hide --- ```{r setup, include=FALSE, warning=FALSE, message=FALSE} @@ -15,7 +14,7 @@ ``` -# Run Skewer + ```{bash echo=FALSE} #--- build skewer job script --- @@ -56,10 +55,10 @@ sed 's/NO_ARGUMENT_YES//g' > skewer-job.sh ``` -```{r echo=FALSE} -# display skewer job script -skewer_sh = paste0(opt$X_d, '/skewer-job.sh') -tags$code(tags$pre(readChar(skewer_sh, file.info(skewer_sh)$size ))) +**Skewer job script: [skewer-job.sh](skewer-job.sh)** + +```bash + `r readChar(paste0(opt$X_d, '/skewer-job.sh'), file.info(paste0(opt$X_d, '/skewer-job.sh'))$size)` ``` ```{bash echo=FALSE} @@ -86,21 +85,23 @@ ``` - -# Results +```{r echo=FALSE} +checked_file = function(fastq) { + if(file.exists(paste0(opt$X_d, '/', fastq))) { + string = paste0('[', fastq, ']', '(', fastq, ')') + } else { + string = paste0(fastq, ' not available') + } + string +} +``` -```{r echo=FALSE} -if (file.exists(paste0(opt$X_d, '/trim-trimmed.fastq'))) { - tags$ul( - tags$li(tags$a(href = 'trim-trimmed.txt', 'trim-trimmed.log')), - tags$li(tags$a(href = 'trim-trimmed.fastq', 'trim-trimmed.fastq')) - ) -} else { - tags$ul( - tags$li(tags$a(href = 'trim-trimmed.txt', 'trim-trimmed.log')), - tags$li(tags$a(href = 'trim-trimmed-pair1.fastq', 'trim-trimmed-pair1.fastq')), - tags$li(tags$a(href = 'trim-trimmed-pair2.fastq', 'trim-trimmed-pair2.fastq')) - ) -} +**Results** -``` + * [Trimming log](trim-trimmed.txt) + * `r checked_file('trim-trimmed.fastq')` + * `r checked_file('trim-trimmed-pair1.fastq')` + * `r checked_file('trim-trimmed-pair2.fastq')` + + + diff -r d9601e1eb360 -r 1731a1cca226 skewer.xml --- a/skewer.xml Sun Mar 18 11:07:16 2018 -0400 +++ b/skewer.xml Sun Mar 18 12:29:18 2018 -0400 @@ -1,17 +1,11 @@ - - A fast and accurate adapter trimmer for next-generation sequencing paired-end reads + + A fast and accurate adapter trimmer for next-generation sequencing paired-end reads - - pandoc - r-getopt - r-rmarkdown - skewer - - - - - + pandocr-getoptr-rmarkdownskewer + + + - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-
- - - - `_ if you are not sure what parameter values to use.]]> - + +
+ + + `_ if you are not sure what parameter values to use.]]> + - - - +}]]>