Files
galaxy/tools/filters/Interval2BedLike.xml
T

41 lines
1.4 KiB
XML

<tool id="Interval2Bed1" name="Interval2Bed">
<description>creates a Bed query for displaying at UCSC</description>
<command interpreter="perl">Text2BedLike.pl $input_chromCol $input_startCol $input_endCol $input_strandCol $input $out_file1</command>
<inputs>
<param format="Interval" name="input" type="data" label="In Query"/>
</inputs>
<outputs>
<data format="bed" name="out_file1" />
</outputs>
<help>
**Interval2Bed** can be used convert Interval query into Bed query for dislaying at UCSC Genome Browser
-----
**Example**
You want to convert the following data into BED::
2 - 478789 477812 TEF1/YPR080W
1 - 73302 72328 CDC19/YAL038W
4 + 1347867 1348565 SSN2/YDR443C
7 - 373310 372735 RCS1/YGL071W
Running Text2Bed will generate::
chr2 478789 477812 BedLike|2|-|478789|477812|TEF1/YPR080W 0 -
chr1 73302 72328 BedLike|1|-|73302|72328|CDC19/YAL038W 0 -
chr4 1347867 1348565 BedLike|4|+|1347867|1348565|SSN2/YDR443C 0 +
chr7 373310 372735 BedLike|4|+|1347867|1348565|SSN2/YDR443C 0 -
The BED like data above contain all necessary BED fields: *chromosome*, *start*, *end*, *name*, *score* and *strand*.
Note that all original information is preserved and packed within *name* field (column 4).
.. class:: infomark
**TIP:** To restore original data use **BedLike2Text** tool in *Convert Formats-&gt;BedLike2text*
</help>
</tool>