# HG changeset patch # User iuc # Date 1638016012 0 # Node ID 599d497e4a6eec498a27f49ee497375e3e399a55 # Parent 236e0e7cba27298beeb1e2b75a4fe9b2a3753ab2 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/bam_to_cram commit c5ded4208dd70e88596ddc725795a2401773f02d" diff -r 236e0e7cba27 -r 599d497e4a6e macros.xml --- a/macros.xml Tue Sep 28 15:56:29 2021 +0000 +++ b/macros.xml Sat Nov 27 12:26:52 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 236e0e7cba27 -r 599d497e4a6e samtools_bam_to_cram.xml --- a/samtools_bam_to_cram.xml Tue Sep 28 15:56:29 2021 +0000 +++ b/samtools_bam_to_cram.xml Sat Nov 27 12:26:52 2021 +0000 @@ -22,8 +22,8 @@ -C -h -o '${output_alignment}' - -T '$reffa' - -t '$reffai' + -T "\$reffa" + -t "\$reffai" --output-fmt-option no_ref infile