upstream-extended/iuc/tools/circos/tiles-from-interval.xml
1<?xml version="1.0"?>
2<tool id="circos_interval_to_tile" name="Circos: Interval to Tiles" version="@WRAPPER_VERSION@">
3 <description>reformats interval files to prepare for Circos tile plots</description>
4 <macros>
5 <import>macros.xml</import>
6 </macros>
7 <edam_topics>
8 <edam_topic>topic_0797</edam_topic>
9 <edam_topic>topic_0092</edam_topic>
10 </edam_topics>
11 <edam_operations>
12 <edam_operation>operation_3434</edam_operation>
13 </edam_operations>
14 <expand macro="requirements" />
15 <command detect_errors="exit_code"><![CDATA[
16python
17#if $ref.ref_source == 'gff3':
18 '$__tool_directory__/tiles-from-gff3.py' '$input' '${ref.attr}'
19#else
20 '$__tool_directory__/tiles-from-bed.py' '$input'
21#end if
22> '$output'
23 ]]></command>
24 <inputs>
25 <conditional name="ref">
26 <param name="ref_source" type="select" label="Data Format">
27 <option value="bed" selected="true">BED6+</option>
28 <option value="gff3">GFF3</option>
29 </param>
30 <when value="bed">
31 <param name="input" type="data" format="bed" label="BED File (BED6+ only)" />
32 </when>
33 <when value="gff3">
34 <param name="input" type="data" format="gff3" label="GFF3 File" />
35 <param name="attr" type="text" label="GFF3 Attribute to pull value from" />
36 </when>
37 </conditional>
38 </inputs>
39 <outputs>
40 <data name="output" format="tabular" />
41 </outputs>
42 <tests>
43 <test>
44 <conditional name="ref">
45 <param name="ref_source" value="bed" />
46 <param name="input" value="tiles/1.bed" ftype="bed" />
47 </conditional>
48 <output name="output" file="tiles/1.out" ftype="tabular" />
49 </test>
50 <test>
51 <conditional name="ref">
52 <param name="ref_source" value="gff3" />
53 <param name="input" value="tiles/2.gff3" ftype="gff3" />
54 <param name="attr" value="Name" />
55 </conditional>
56 <output name="output" file="tiles/2.out" ftype="tabular" />
57 </test>
58 </tests>
59 <help><![CDATA[
60Converts standard BED3+ and GFF3 files into a format appropriate for Circos data tracks, especially tile tracks.
61
62BED3 files do not need conversion, Circos can accept these files directly.
63 ]]></help>
64 <expand macro="citations" />
65</tool>