changeset 3:6116deacb2c7 draft

Uploaded
author greg
date Mon, 23 Nov 2020 21:42:34 +0000
parents ee6166a3edd8
children 36bdf8b439ed
files vsnp_determine_ref_from_data.xml
diffstat 1 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vsnp_determine_ref_from_data.xml	Thu Nov 19 21:50:54 2020 +0000
+++ b/vsnp_determine_ref_from_data.xml	Mon Nov 23 21:42:34 2020 +0000
@@ -34,12 +34,23 @@
         #end if
     #end if
 #else:
+    #set collection_type = $input_type_cond.collection_type_cond.collection_type
     #for $i in $input_type_cond.collection_type_cond.reads_collection:
         #if $i.is_of_type('fastqsanger.gz'):
             #set gzipped = 'true'
         #end if
         #set filename = $i.file_name
-        #set identifier = re.sub('[^\s\w\-]', '_', str($i.element_identifier))
+        #if str($collection_type) == 'single_reads':
+            #set identifier = re.sub('[^\s\w\-]', '_', str($i.element_identifier))
+        #else:
+            ## Galaxy builds lists of pairs as nested lists with elements
+            ## named forward and reverse.  When flattened, these lists
+            ## will work as inputs to the Parse parameter value expression
+            ## tool in workflows.  However, the output list created by the
+            ## expression tool will not function correctly with the bwa_mem
+            ## mapper.  Naming the identifier as follows is a solution.
+            #set identifier = re.sub('[^\s\w\-]', '_', str($i.name))
+        #end if
         ln -s '$filename' '$input_reads_dir/$identifier' &&
     #end for
 #end if