view lofreq_indelqual.xml @ 5:426d707dfc47 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit c1fda24943cf04866d408133ffb6aabf4a90866b"
author iuc
date Mon, 05 Oct 2020 20:14:23 +0000
parents 354b534eeab7
children 971e07ca4456
line wrap: on
line source

<tool id="lofreq_indelqual" name="Insert indel qualities" version="@TOOL_VERSION@+galaxy0" profile="18.01">
    <description>into a BAM file</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <command detect_errors="exit_code"><![CDATA[
        #if $strategy.selector == 'dindel'
            #set $reference_source = $strategy.reference_source
            @PREPARE_REF@
        #end if
        lofreq indelqual
        #if $strategy.selector == 'dindel'
            --dindel
            --ref $reference_fasta_fn
        #else
            #if $strategy.deletions
                --uniform $strategy.insertions,$strategy.deletions
            #else
                --uniform $strategy.insertions
            #end if
        #end if
        -o output.bam $reads
    ]]></command>
    <inputs>
        <param type="data" name="reads" format="bam" label="Reads" />
        <conditional name="strategy">
            <param name="selector" type="select" label="Indel calculation approach">
                <option value="uniform">Uniform</option>
                <option value="dindel">Dindel</option>
            </param>
            <when value="uniform">
                <param name="insertions" type="integer" value="30" label="Indel quality to add" help="Should probably not be left at the default value" />
                <param name="deletions" type="integer" optional="true" label="Separate deletion quality" help="Leave blank to use the same values for insertions and deletions" />
            </when>
            <when value="dindel">
                <expand macro="reference_interface" />
            </when>
        </conditional>
    </inputs>
    <outputs>
        <data name="output" format="bam" from_work_dir="output.bam" label="Add indel qualities to data ${reads.dataset.hid}" />
    </outputs>
    <tests>
        <test>
            <param name="reads" ftype="bam" value="lofreq-in1.bam" />
            <param name="selector" value="uniform" />
            <param name="insertions" value="20" />
            <param name="deletions" value="30" />
            <output name="output" file="indelqual-out1.bam" />
        </test>
        <test>
            <param name="reads" ftype="bam" value="lofreq-in1.bam" />
            <param name="selector" value="dindel" />
            <param name="ref_selector" value="history" />
            <param name="ref" ftype="fasta" value="pBR322.fa" />
            <output name="output" file="indelqual-out2.bam" />
        </test>
        <test>
            <param name="reads" ftype="bam" value="lofreq-in1.bam" />
            <param name="selector" value="uniform" />
            <param name="insertions" value="20" />
            <output name="output" file="indelqual-out3.bam" />
        </test>
    </tests>
    <help><![CDATA[
Insert indel qualities into BAM file

The tool has two modes: 'uniform' and 'dindel':
    - 'uniform' will assign a given value uniformly, whereas
    - 'dindel' will insert indel qualities based on Dindel.

Both will overwrite any existing values. Do not realign your BAM file afterwards!
    ]]></help>
    <expand macro="citations">
        <citation type="doi">10.1101/gr.112326.110</citation>
    </expand>
</tool>