# HG changeset patch
# User iuc
# Date 1638016076 0
# Node ID d83ad701f0118dfd23bd4dc29702659a22efae3b
# Parent c701f5f96f32c6e271babaa02db65a7a875ee55e
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit c5ded4208dd70e88596ddc725795a2401773f02d"
diff -r c701f5f96f32 -r d83ad701f011 macros.xml
--- a/macros.xml Tue Sep 28 15:58:15 2021 +0000
+++ b/macros.xml Sat Nov 27 12:27:56 2021 +0000
@@ -50,23 +50,56 @@
#end for
]]>
&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
]]>
diff -r c701f5f96f32 -r d83ad701f011 sam_to_bam.xml
--- a/sam_to_bam.xml Tue Sep 28 15:58:15 2021 +0000
+++ b/sam_to_bam.xml Sat Nov 27 12:27:56 2021 +0000
@@ -16,7 +16,7 @@
samtools view
-b
-@ \$addthreads
- -t '$reffai'
+ -t "\$reffai"
'$input' |
samtools sort
@@ -67,6 +67,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+