changeset 38:3421fff414de draft

Uploaded
author greg
date Tue, 22 Aug 2017 13:10:57 -0400
parents 9298fd6e7443
children 460577fdb0dc
files ideas.xml
diffstat 1 files changed, 8 insertions(+), 28 deletions(-) [+]
line wrap: on
line diff
--- a/ideas.xml	Tue Aug 22 11:31:14 2017 -0400
+++ b/ideas.xml	Tue Aug 22 13:10:57 2017 -0400
@@ -9,6 +9,10 @@
         <requirement type="package" version="1.3.2">r-optparse</requirement>
     </requirements>
     <command detect_errors="exit_code"><![CDATA[
+shopt -s nullglob
+function have_any() {
+    [ $# -gt 0 ]
+}
 #import os
 #set tmp_dir = 'tmp'
 #set prep_output_config = 'prep_output_config.txt'
@@ -104,34 +108,10 @@
 -maxerr $max_standard_dev
 -thread \${GALAXY_SLOTS:-4}
 > $output_log
-&& for file in ./*.cluster
-do
-    if [ -f "${file}" ]; then
-    mv "${file}" $output_cluster;
-    break
-    fi
-done
-&& for file in ./*.para
-do
-    if [ -f "${file}" ]; then
-    mv "${file}" $output_para;
-    break
-    fi
-done
-&& for file in ./*.profile
-do
-    if [ -f "${file}" ]; then
-    mv "${file}" $output_profile;
-    break
-    fi
-done
-&& for file in ./*.state
-do
-    if [ -f "${file}" ]; then
-    mv "${file}" $output_state;
-    break
-    fi
-done
+&& mv ./*.cluster $output_cluster
+&& mv ./*.para $output_para
+&& mv ./*.profile $output_profile
+&& mv ./*.state $output_state
     ]]></command>
     <configfiles>
         <configfile name="prep_input_config"><![CDATA[#for $input_items in $input_type_cond.input_repeat: