Mercurial > repos > devteam > sam_to_bam
view sam_to_bam.xml @ 11:1e69848b596f draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
author | iuc |
---|---|
date | Tue, 28 Sep 2021 16:11:24 +0000 |
parents | cf1ffd88f895 |
children | 9bd1568619cd |
line wrap: on
line source
<tool id="sam_to_bam" name="SAM-to-BAM" version="2.1.2" profile="@PROFILE@"> <description>convert SAM to BAM</description> <macros> <import>macros.xml</import> </macros> <expand macro="requirements"/> <expand macro="stdio"/> <expand macro="version_command"/> <command><![CDATA[ @ADDTHREADS@ @ADDMEMORY@ @PREPARE_FASTA_IDX@ samtools view -b -@ \$addthreads -t '$reffai' '$input' | samtools sort -O bam -@ \$addthreads -m \$addmemory"M" -o '$output1' -T "\${TMPDIR:-.}" ]]></command> <inputs> <param name="input" type="data" format="sam" label="SAM file to convert"/> <expand macro="mandatory_reference" argument="-t"/> </inputs> <outputs> <data name="output1" format="bam" label="${tool.name} on ${on_string}: converted BAM"> <actions> <conditional name="addref_cond.addref_select"> <when value="cached"> <action name="dbkey" type="metadata"> <option name="input" param_attribute="dbkey" type="from_param" /> </action> </when> <when value="history"> <action name="dbkey" type="metadata"> <option name="addref_cond.ref" param_attribute="dbkey" type="from_param" /> </action> </when> </conditional> </actions> </data> </outputs> <tests> <test> <param name="addref_select" value="history" /> <param name="ref" ftype="fasta" dbkey="equCab2" value="chr_m.fasta" /> <param name="input" ftype="sam" value="sam_to_bam_in1.sam" /> <output name="output1" ftype="bam" file="sam_to_bam_out1.bam" lines_diff="4"/> </test> <test> <param name="addref_select" value="cached" /> <param name="ref" value="equCab2chrM" /> <param name="input" ftype="sam" dbkey="equCab2" value="sam_to_bam_in1.sam" /> <output name="output1" ftype="bam" file="sam_to_bam_out2.bam" lines_diff="4"/> </test> <test> <param name="addref_select" value="history" /> <param name="ref" ftype="fasta" dbkey="equCab2" value="chr_m.fasta" /> <param name="input" ftype="sam" value="sam_to_bam_noheader_in2.sam" /> <output name="output1" ftype="bam" file="sam_to_bam_out3.bam" lines_diff="4"/> </test> </tests> <help><![CDATA[ **What it does** Converts SAM dataset into its binary, BAM, representation using the ``samtools view`` and ``sort`` commands. ]]></help> <expand macro="citations"/> </tool>