# HG changeset patch
# User iuc
# Date 1660555132 0
# Node ID bcedabb53ddf7462b2b42ac29271e1a5ceb0ba3b
# Parent  5d9ae78f34d3085ce2e5eadf1600c7048fd8ca4f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_split commit 5cb103832529f17e5c72e7f122758c13519fbe5e
diff -r 5d9ae78f34d3 -r bcedabb53ddf macros.xml
--- a/macros.xml	Tue Sep 28 16:17:11 2021 +0000
+++ b/macros.xml	Mon Aug 15 09:18:52 2022 +0000
@@ -5,7 +5,7 @@
             
         
     
-    1.13
+    1.15.1
     20.05
     
     &2 &&
+                        gzip -dc \$reffa > reference.fa &&
+                        reffa="reference.fa" &&
+                        samtools faidx \$reffa;
+                    }
+                } &&
+            #end if
+            reffai=\$reffa.fai &&
         #elif $addref_cond.addref_select == "cached":
-            #set reffa=str($addref_cond.ref.fields.path)
-            #set reffai=str($addref_cond.ref.fields.path)+".fai"
+            ## in case of cached the absolute path is used which allows to read 
+            ## a cram file  without specifying the reference
+            reffa='${addref_cond.ref.fields.path}' &&
+            reffai=\$reffa.fai &&
         #else
-            #set reffa=None
-            #set reffai=None
+            #set use_ref=False
         #end if
     ]]>
 
-    
+    
         
             
                 @HELP@
diff -r 5d9ae78f34d3 -r bcedabb53ddf samtools_split.xml
--- a/samtools_split.xml	Tue Sep 28 16:17:11 2021 +0000
+++ b/samtools_split.xml	Mon Aug 15 09:18:52 2022 +0000
@@ -1,4 +1,4 @@
-
+
     BAM dataset on readgroups
     
         macros.xml