view gemini_region.xml @ 3:ed88ab9ead28 draft

Uploaded
author iuc
date Tue, 13 Jan 2015 10:07:11 -0500
parents 93bb0cfacefb
children ba3abde6775b
line wrap: on
line source

<tool id="gemini_@BINARY@" name="GEMINI @BINARY@" version="@VERSION@.0">
    <description>Extracting variants from specific regions or genes</description>
    <expand macro="requirements" />
    <expand macro="version_command" />
    <macros>
        <import>gemini_macros.xml</import>
        <token name="@BINARY@">region</token>
    </macros>
    <command>
<![CDATA[
        gemini @BINARY@

            #if $region.region_selector == '--reg':
                #if str(${region.region}) != '':
                    --reg "${region.region}"
                #end if
            #else:
                #if str(${region.gene}) != '':
                    --gene "${region.gene}"
                #end if
            #end if

            #if $report.report_selector != 'all':
                --columns "${report.columns}"
            #end if

            #if $filter.filter_selector == 'yes':
                --filter "${filter.filter}"
            #end if

            $header
            "${ infile }"
            > "${ outfile }"
]]>
    </command>
    <expand macro="stdio" />
    <inputs>
        <expand macro="infile" />

        <conditional name="region">
            <param name="region_selector" type="select" label="Select by ...?" help="">
                <option value="--reg">genomic coordinates</option>
                <option value="--gene">gene name</option>
            </param>
            <when value="--reg">
                <param name="region" type="text" label="Specify genomic region" help="e.g. chr1:100-200 (--reg)"/>
            </when>
            <when value="--gene">
                <param name="gene" type="text" label="Specify gene name" help="e.g. PTPN22 (--gene)" />
            </when>
        </conditional>

        <expand macro="column_filter" />
        <expand macro="filter" />


        <expand macro="add_header_column" />

    </inputs>
    <outputs>
        <data name="outfile" format="tabular" />
    </outputs>
    <tests>
        <test>
        </test>
    </tests>
    <help>
**What it does**

One often is concerned with variants found solely in a particular gene or genomic region.

@CITATION@
    </help>
    <expand macro="citations"/>
</tool>