view gemini_region.xml @ 4:ba3abde6775b draft default tip

Uploaded
author iuc
date Thu, 15 Jan 2015 15:33:48 -0500
parents 93bb0cfacefb
children
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

            @CMDLN_SQL_FILTER_FILTER_OPTION@

            $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>