Mercurial > repos > yating-l > twobit_info_340
annotate twobit_info.xml @ 0:b4590c39c70d draft default tip
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
author | yating-l |
---|---|
date | Mon, 10 Jul 2017 12:49:31 -0400 |
parents | |
children |
rev | line source |
---|---|
0
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
2 <tool id="twobit_info" name="twoBitInfo" version="1.0"> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
3 <description>Get sequence information from a twoBit file</description> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
4 |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
5 <macros> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
6 <import>ucsc_macros.xml</import> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
7 </macros> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
8 |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
9 <expand macro="requirements_twobit" /> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
10 |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
11 <command detect_errors="exit_code"> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
12 <![CDATA[ |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
13 #if str($output_type.output_type_selector) == "Sequence_Lengths": |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
14 twoBitInfo |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
15 ${output_type.no_Ns} "${twobit_input}" stdout | |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
16 sort -k 2,2nr > "${output}" |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
17 #else: |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
18 twoBitInfo -nBed "${twobit_input}" stdout | |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
19 sort -k 1,1 -k 2,2n | |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
20 awk 'BEGIN { OFS = "\t" } { print $1, $2, $3, sprintf("gap_%d", idx++ ) }' |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
21 > "${output}" |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
22 #end if |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
23 ]]> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
24 </command> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
25 |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
26 <expand macro="environment_LC_COLLATE" /> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
27 |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
28 <inputs> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
29 <param name="twobit_input" type="data" format="twobit" label="twoBit input file" /> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
30 |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
31 <conditional name="output_type"> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
32 <!-- |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
33 Because the "when" element in the "data" output does not allow the "label" |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
34 attribute, the value from the output_type_selector is used as part of the |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
35 label to help users distinguish the different types of output produced by |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
36 this tool. The option values are in uppercase so that they conform to the |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
37 naming convention of the History items that are displayed to the user. |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
38 --> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
39 <param name="output_type_selector" type="select" |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
40 label="Type of output file"> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
41 <option value="Sequence_Lengths" selected="true">Sequence lengths</option> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
42 <option value="Gaps">BED records of gaps in each sequence</option> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
43 </param> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
44 |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
45 <when value="Sequence_Lengths"> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
46 <param name="no_Ns" type="boolean" checked="false" |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
47 truevalue="-noNs" falsevalue="" |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
48 label="Exclude gaps (N's) from sequence length" |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
49 help="-noNs" /> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
50 </when> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
51 |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
52 <when value="Gaps"></when> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
53 </conditional> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
54 </inputs> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
55 <outputs> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
56 <data name="output" format="len" |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
57 label="${tool.name} on ${on_string}: ${output_type.output_type_selector}"> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
58 <change_format> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
59 <when input="output_type.output_type_selector" value="Gaps" format="bed" /> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
60 </change_format> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
61 </data> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
62 </outputs> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
63 <tests> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
64 <test> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
65 <!-- Test report sequence length --> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
66 <param name="twobit_input" value="contigs.2bit" ftype="twobit" /> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
67 <param name="output_type_selector" value="Sequence_Lengths" /> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
68 <output name="output" file="contigs_chromInfo.tab" /> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
69 </test> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
70 <test> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
71 <!-- Test report sequence length excluding gaps --> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
72 <param name="twobit_input" value="contigs.2bit" ftype="twobit" /> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
73 <param name="output_type_selector" value="Sequence_Lengths" /> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
74 <param name="no_Ns" value="-noNs" /> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
75 <output name="output" file="contigs_no_Ns_chromInfo.tab" /> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
76 </test> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
77 <test> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
78 <!-- Test report gap BED file --> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
79 <param name="twobit_input" value="contigs.2bit" ftype="twobit" /> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
80 <param name="output_type_selector" value="Gaps" /> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
81 <output name="output" file="contigs_gaps.bed" /> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
82 </test> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
83 </tests> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
84 <help> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
85 <![CDATA[ |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
86 **What it does** |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
87 |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
88 twoBitInfo reports the length of each scaffold and the gap locations |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
89 stored in a twoBit Sequence Archive. |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
90 |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
91 ]]></help> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
92 |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
93 <expand macro="citations" /> |
b4590c39c70d
planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
yating-l
parents:
diff
changeset
|
94 </tool> |