# HG changeset patch # User iuc # Date 1638016178 0 # Node ID 263d3afea923728c0821d0f12860ac0c8177896a # Parent ab75c7ea49a5d9bba174414a7df8f7e01ae3fecb "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit c5ded4208dd70e88596ddc725795a2401773f02d" diff -r ab75c7ea49a5 -r 263d3afea923 macros.xml --- a/macros.xml Tue Sep 28 16:08:22 2021 +0000 +++ b/macros.xml Sat Nov 27 12:29:38 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 ab75c7ea49a5 -r 263d3afea923 samtools_stats.xml --- a/samtools_stats.xml Tue Sep 28 16:08:22 2021 +0000 +++ b/samtools_stats.xml Sat Nov 27 12:29:38 2021 +0000 @@ -42,8 +42,8 @@ --trim-quality ${trim_quality} #end if - #if $reffa != None: - --ref-seq '$reffa' + #if $use_ref: + --ref-seq "\$reffa" #end if ## TODO currently not implemented in Galaxy ## generates STR_VALUE.bamstat where STR is given by -P and VALUE is a value of the TAG given by -S