Mercurial > repos > greg > ideas
changeset 131:5150fcdcd0fa draft
Uploaded
| author | greg |
|---|---|
| date | Tue, 12 Dec 2017 10:13:26 -0500 |
| parents | d088f25661d9 |
| children | 8ce93420010c |
| files | ideas.xml |
| diffstat | 1 files changed, 36 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- 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 ]]></command> <configfiles> <configfile name="gen_prep_input_config"><