# HG changeset patch # User greg # Date 1513091606 18000 # Node ID 5150fcdcd0fa4e5c0bb65783aeff1a634d4c311b # Parent d088f25661d984369835e1c9ce24abb11a7b6382 Uploaded diff -r d088f25661d9 -r 5150fcdcd0fa ideas.xml --- a/ideas.xml Mon Dec 11 14:13:45 2017 -0500 +++ b/ideas.xml Tue Dec 12 10:13:26 2017 -0500 @@ -44,6 +44,11 @@ -exclude '$blacklist_input' #end if $norm +&>prepmat.log; +if [[ $? -ne 0 ]]; then + cp prepmat.log '$output_txt_dir'; + exit 1; +fi ############################################## ## Coerce the prepMat config output to the ## format expected by IDEAS. @@ -108,10 +113,18 @@ -thread \${GALAXY_SLOTS:-4} -o '$project_name.$chrom' #if str($save_ideas_log) == "yes": - >> $output_log + &>>'$output_log'; + if [[ $? -ne 0 ]]; then + exit 1; + fi #else: - > /dev/null + &>>ideas_log.txt; + if [[ $? -ne 0 ]]; then + cp ideas_log.txt '$output_txt_dir' + exit 1; + fi #end if + #end for #else: && ideas @@ -147,18 +160,27 @@ -thread \${GALAXY_SLOTS:-4} -o '$project_name' #if str($save_ideas_log) == "yes": - > $output_log + &>'$output_log'; + if [[ $? -ne 0 ]]; then + exit 1; + fi #else: - > /dev/null + &>ideas_log.txt; + if [[ $? -ne 0 ]]; then + cp ideas_log.txt '$output_txt_dir' + exit 1; + fi #end if #end if && mv ./*.cluster '$output_txt_dir' && mv ./*.para '$output_txt_dir' && mv ./*.profile '$output_txt_dir' && mv ./*.state '$output_txt_dir' -&& Rscript '$__tool_directory__/create_heatmap.R' --i '$output_txt_dir' --o '$output_pdf_dir' +#if str($output_heatmaps) == "yes": + && Rscript '$__tool_directory__/create_heatmap.R' + -i '$output_txt_dir' + -o '$output_pdf_dir' +#end if ]]> + + + + @@ -271,8 +297,9 @@ save_ideas_log == 'yes' - + + output_heatmaps == 'yes' @@ -400,4 +427,4 @@ 10.1093/nar/gkw278 - \ No newline at end of file +