# HG changeset patch # User mingchen0919 # Date 1506543372 14400 # Node ID 233210d4468120afc17248846a59bebcf5f06c8a # Parent 86a31717730efd2ad1ac4fcd0ab606f8ef547ab7 planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_fastq_dump commit 5d2a63708a8abf73432c1d6863d970146c6a38b2-dirty diff -r 86a31717730e -r 233210d44681 fastq_dump_se.Rmd --- a/fastq_dump_se.Rmd Wed Sep 27 14:05:42 2017 -0400 +++ b/fastq_dump_se.Rmd Wed Sep 27 16:16:12 2017 -0400 @@ -30,7 +30,7 @@ sra_accessions = sra_accessions[sra_accessions != ''] # loop through SRA accessions to download and extract reads. for(id in sra_accessions) { - if(FORMAT == 'fasta') { + if('FORMAT' == 'fasta') { command = paste0('fastq-dump --fasta ', '-O read_files_directory ', id) } else { command = paste0('fastq-dump ', '-O read_files_directory ', id) diff -r 86a31717730e -r 233210d44681 fastq_dump_se.xml --- a/fastq_dump_se.xml Wed Sep 27 14:05:42 2017 -0400 +++ b/fastq_dump_se.xml Wed Sep 27 16:16:12 2017 -0400 @@ -34,7 +34,7 @@ -r $report -d $report.files_path - -s $sink_output + -s $sink_message -t '${__tool_directory__}/fastq_dump_se.Rmd' ]]> @@ -42,7 +42,7 @@ - + @@ -50,6 +50,6 @@ - + \ No newline at end of file diff -r 86a31717730e -r 233210d44681 fastq_dump_se_render.R --- a/fastq_dump_se_render.R Wed Sep 27 14:05:42 2017 -0400 +++ b/fastq_dump_se_render.R Wed Sep 27 16:16:12 2017 -0400 @@ -20,8 +20,10 @@ library(tools) }) -#/////////////////////// SINK OUTPUTS TO A FILE FOR DEBUGGING /////////// -sink('sink_output.txt') +#/////////////////////// SINK WARNINGS AND ERRORS TO A FILE FOR DEBUGGING /////////// +zz = file('warnings_and_errors.txt') +sink(zz) +sink(zz, type = 'message') # column 1: the long flag name # column 2: the short flag alias. A SINGLE character string