# HG changeset patch # User mingchen0919 # Date 1526331504 14400 # Node ID 350afb9412fcba4035ee8f1cf11d7f9e66125554 # Parent e4392f52dc33a215e4e9487c3c5789d7873b40ee planemo upload diff -r e4392f52dc33 -r 350afb9412fc build-and-run-job-scripts.sh --- a/build-and-run-job-scripts.sh Mon May 14 16:17:19 2018 -0400 +++ b/build-and-run-job-scripts.sh Mon May 14 16:58:24 2018 -0400 @@ -3,7 +3,8 @@ #========== build and run job 1 script ============ cat >curl-download.sh < curl-log.txt 2>&1 +curl $X_u > output.$X_n +cp output.$X_n ${JOB_WORKING_DIR} EOF # run job 1 script diff -r e4392f52dc33 -r 350afb9412fc command-line-arguments.csv --- a/command-line-arguments.csv Mon May 14 16:17:19 2018 -0400 +++ b/command-line-arguments.csv Mon May 14 16:58:24 2018 -0400 @@ -1,3 +1,5 @@ -short flag,argument mask,data type,variable name -o,1,character,report -d,1,character,report.files_path \ No newline at end of file +short flag,argument mask,data type,variable name +o,1,character,report +d,1,character,report.files_path +n,1,character,output_ext +u,1,character,url diff -r e4392f52dc33 -r 350afb9412fc rmarkdown_report.Rmd --- a/rmarkdown_report.Rmd Mon May 14 16:17:19 2018 -0400 +++ b/rmarkdown_report.Rmd Mon May 14 16:58:24 2018 -0400 @@ -65,9 +65,3 @@ cat('\n```') ``` -```{bash, echo=FALSE} -# create a directory in current working directory and copy the downloaded file into that directory -mkdir -p output_dir -cp output.$X_n output_dir -``` - diff -r e4392f52dc33 -r 350afb9412fc rmarkdown_report.xml --- a/rmarkdown_report.xml Mon May 14 16:17:19 2018 -0400 +++ b/rmarkdown_report.xml Mon May 14 16:58:24 2018 -0400 @@ -41,7 +41,7 @@ - + diff -r e4392f52dc33 -r 350afb9412fc rmarkdown_report_render.R --- a/rmarkdown_report_render.R Mon May 14 16:17:19 2018 -0400 +++ b/rmarkdown_report_render.R Mon May 14 16:58:24 2018 -0400 @@ -16,6 +16,11 @@ #------------------------------------------------------------------ options(stringsAsFactors = FALSE) +#------------------------------------------------ +# create a folder within working directory +dir.create('output_dir') +job_working_dir = getwd() +Sys.setenv(JOB_WORKING_DIR=paste0(job_working_dir, '/output_dir/')) # define two helper functions #-----: helper function 1 @@ -149,6 +154,7 @@ #============== expose outputs to galaxy history =============== system(command = 'sh ${TOOL_INSTALL_DIR}/expose-outputs-to-galaxy-history.sh') +file.copy() #===============================================================