# HG changeset patch
# User iuc
# Date 1638016426 0
# Node ID c370440f901e51e7d643e09799fd2dea712ef079
# Parent df20f1fd453f46aa3574c05ca6128e6b62609c30
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit c5ded4208dd70e88596ddc725795a2401773f02d"
diff -r df20f1fd453f -r c370440f901e macros.xml
--- a/macros.xml Wed Oct 13 13:11:51 2021 +0000
+++ b/macros.xml Sat Nov 27 12:33:46 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 df20f1fd453f -r c370440f901e samtools_view.xml
--- a/samtools_view.xml Wed Oct 13 13:11:51 2021 +0000
+++ b/samtools_view.xml Sat Nov 27 12:33:46 2021 +0000
@@ -4,9 +4,9 @@
macros.xml
## additional reference data
- #if $reffa!=None:
- -T '$reffa'
- -t '$reffai'
+ #if $use_ref:
+ -T "\$reffa"
+ -t "\$reffai"
#end if