Files
galaxy/tools/extract/interval2maf_pairwise.xml
T

40 lines
1.8 KiB
XML

<tool id="Interval2Maf_pairwise1" name="Extract Pairwise MAF blocks">
<description>given a set of genomic intervals</description>
<command interpreter="python2.4">interval2maf_pairwise.py --dbkey=$dbkey --chromCol=$input1_chromCol --startCol=$input1_startCol --endCol=$input1_endCol --strandCol=$input1_strandCol --mafType=$mafType --interval_file=$input1 --output_file=$out_file1</command>
<inputs>
<param name="input1" type="data" format="interval" label="Interval File"/>
<param name="mafType" type="select" label="Choose MAF source">
<options from_file="/depot/data2/galaxy/maf_pairwise.loc">
<filter type="data_meta" data_ref="input1" key="build" />
<filter type="column" name="build_col" value="2" />
<filter type="column" name="name_col" value="0" />
<filter type="column" name="value_col" value="1" />
</options>
</param>
</inputs>
<outputs>
<data format="maf" name="out_file1" />
</outputs>
<tests>
<test>
<param name="input1" value="8.bed" dbkey="hg17" format="bed"/>
<param name="mafType" value="PAIRWISE_hg17_fr1"/>
<output name="out_file1" file="Interval2Maf_pairwise_out.maf"/>
</test>
</tests>
<help>
**What it does**
This tool takes genomic coordinates, superimposes them on pairwise alignments (in MAF format) stored on the Galaxy site, and excises alignment blocks corresponding to each set of coordinates. Alignment blocks that extend past START and/or END positions of an interval are trimmed. Note that a single genomic interval may correspond to two or more alignment blocks.
-----
**Example**
Here a single interval is superimposed on three MAF blocks. Blocks 1 and 3 are trimmed because they extend beyond boundaries of the interval:
.. image:: ../static/images/maf_icons/interval2maf.png
</help>
</tool>