# HG changeset patch # User iuc # Date 1638016384 0 # Node ID 1cc79f49b8d536125d5817bb16e223968b4bc6b5 # Parent e28839a4b9320c42472d29c61db292bd02cd7665 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit c5ded4208dd70e88596ddc725795a2401773f02d" diff -r e28839a4b932 -r 1cc79f49b8d5 macros.xml --- a/macros.xml Tue Sep 28 16:17:39 2021 +0000 +++ b/macros.xml Sat Nov 27 12:33:04 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 e28839a4b932 -r 1cc79f49b8d5 samtools_stats.xml --- a/samtools_stats.xml Tue Sep 28 16:17:39 2021 +0000 +++ b/samtools_stats.xml Sat Nov 27 12:33:04 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