comparison twobit_to_cytoband.xml @ 0:4686151c96ad draft default tip

planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
author yating-l
date Mon, 10 Jul 2017 12:47:53 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4686151c96ad
1 <?xml version="1.0"?>
2 <tool id="twobit_to_cytoband" name="twoBitToCytoband" version="1.0">
3 <description>Creates a cytoband file from a twoBit file</description>
4
5 <macros>
6 <import>ucsc_macros.xml</import>
7 </macros>
8
9 <expand macro="requirements_twobit" />
10
11 <command detect_errors="exit_code">
12 <![CDATA[
13 twoBitInfo "${twobit_input}" stdout |
14 sort -k 1,1 -k 2,2n |
15 awk 'BEGIN { OFS="\t" } { print $1, 0, $2, $1, "gneg" }' > "${bed_output}"
16 ]]>
17 </command>
18
19 <expand macro="environment_LC_COLLATE" />
20
21 <inputs>
22 <param name="twobit_input" type="data" format="twobit" label="twoBit input file" />
23 </inputs>
24 <outputs>
25 <data name="bed_output" format="bed" />
26 </outputs>
27 <tests>
28 <test>
29 <!-- Test create Cytoband bed file from a twoBit file -->
30 <param name="twobit_input" value="contigs.2bit" ftype="twobit" />
31 <output name="bed_output" file="contigs_cytoband.bed" />
32 </test>
33 </tests>
34 <help>
35 <![CDATA[
36 **What it does**
37
38 This tool creates a `Cytoband file <http://genomewiki.ucsc.edu/index.php/Assembly_Hubs#Cytoband_Track>`_
39 from a twoBit file to enable quicker navigation of individual scaffolds
40 in the UCSC Genome Browser.
41
42 ]]></help>
43
44 <expand macro="citations" />
45 </tool>