view macros.xml @ 1:8d8de66233ea draft

planemo upload for repository https://github.com/galaxyproject/iuc/tree/master/tools/varscan commit 33c5694cb2e0a86a76d12a3355a2bd26deba7177
author iuc
date Sun, 15 Jul 2018 09:19:48 -0400
parents a584f046e4a7
children 4ce3441c407c
line wrap: on
line source

<macros>
    <xml name="requirements">
        <requirements>
            <requirement type="package" version="@VERSION@">varscan</requirement>
            <requirement type="package" version="4.2.1">gawk</requirement>
            <yield/>
        </requirements>
    </xml>

    <token name="@VERSION@">2.4.3</token>

    <xml name="stdio">
        <stdio>
            <regex match="Exception" source="both" level="fatal" description="Tool exception"/>
            <regex match=".*" source="both" level="log" description="tool progress"/>
        </stdio>
        <version_command><![CDATA[varscan 2>&1 | head -n 1]]></version_command>
    </xml>

    <xml name="citations">
        <citations>
            <citation type="doi">10.1101/gr.129684.111</citation>
        </citations>
    </xml>

    <xml name="input_pileups">
        <conditional name="pileup">
           <param name="pileup_select" type="select" label="How do you want to provide your pileup files?" help="">
               <option value="separated">As separated normal and tumor files</option>
               <option value="combined">Normal and Tumor combined in one file</option>
           </param>
           <when value="separated">
                <param name="normal_pileup" format="pileup" type="data" label="Samtools pileup dataset for Normal" help=""/>
                <param name="tumor_pileup" format="pileup" type="data" label="Samtools pileup dataset for Tumor" help=""/>
           </when>
           <when value="combined">
                <param name="combined_pileup" format="pileup" type="data" label="Samtools pileup dataset which has combined Normal and Tumor samples" help=""/>
           </when>
        </conditional>
    </xml>

    <token name="@INPUT_PILEUPS@">
        #if $pileup.pileup_select == 'separated'
           '${pileup.normal_pileup}'
           '${pileup.tumor_pileup}'
           galaxy_out
        #else:
           '${pileup.combined_pileup}'
            galaxy_out
           --mpileup 1
        #end if
        
    </token>

    <xml name="min_coverage">
        <param argument="--min-coverage" name="min_coverage" type="integer" value="8" min="1" max="200"
            label="Minimum read depth" help="Minimum depth at a position to make a call"/>
    </xml>
    <xml name="min_reads2">
        <param argument="--min-reads2" name="min_reads2" type="integer" value="2" min="1" max="200"
            label="Minimum supporting reads" help="Minimum supporting reads at a position to make a call"/>
    </xml>
    <xml name="min_avg_qual">
        <param argument="--min-avg-qual" name="min_avg_qual" type="integer" value="15" min="1" max="50"
            label="Minimum base quality at a position to count a read"/>
    </xml>
    <xml name="min_var_freq" token_value="0.01">
        <param argument="--min-var-freq" name="min_var_freq" type="float" value="@VALUE@" min="0" max="1"
            label="Minimum variant allele frequency threshold"/>
    </xml>
    <xml name="min_freq_for_hom">
        <param argument="--min-freq-for-hom" name="min_freq_for_hom" type="float" value="0.75" min="0" max="1"
            label="Minimum frequency to call homozygote"/>
    </xml>
    <xml name="p_value" token_label="p-value threshold for calling variants" token_value="0.01">
        <param argument="--p-value" name="p_value" type="float" value="@VALUE@" min="0.0" max="1.0"
            label="@LABEL@"/>
    </xml>
    <xml name="strand_filter">
        <param name="strand_filter" type="select" label="Ignore variants with >90% support on one strand">
            <option value="no" selected="True">no</option>
            <option value="yes">yes</option>
        </param>
    </xml>

</macros>