Mercurial > repos > yating-l > hg_gc_percent_340
annotate hg_gc_percent.xml @ 0:c440273bd845 draft default tip
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
author | yating-l |
---|---|
date | Mon, 10 Jul 2017 12:43:51 -0400 |
parents | |
children |
rev | line source |
---|---|
0
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
2 <tool id="hg_gc_percent" name="hgGcPercent" version="1.0"> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
3 <description>Calculates GC percentages of a twoBit file</description> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
4 |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
5 <macros> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
6 <import>ucsc_macros.xml</import> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
7 </macros> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
8 |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
9 <expand macro="requirements_twobit"> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
10 <requirement type="package" version="340">ucsc_gcpercent</requirement> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
11 <requirement type="package" version="340">ucsc_bigwig</requirement> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
12 </expand> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
13 |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
14 <command detect_errors="exit_code"> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
15 <![CDATA[ |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
16 ## This tool generates a bigWig file instead of a gzip wiggle file in order |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
17 ## to facilitate testing. Support for comparing gzip files will be added to |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
18 ## Galaxy in 17.05: https://github.com/galaxyproject/galaxy/pull/3550 |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
19 |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
20 twoBitInfo "${twobit_input}" "${twobit_input}.chromInfo" && |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
21 |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
22 hgGcPercent -doGaps -noDots -verbose=0 -wigOut |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
23 -win=${window_size} |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
24 -overlap=${overlap} |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
25 -file=stdout |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
26 |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
27 #if str($region_type.region_type_selector) == "chrom": |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
28 -chr="${region_type.chrom_name}" |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
29 #end if |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
30 |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
31 db_placeholder "${twobit_input}" | |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
32 |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
33 wigToBigWig stdin "${twobit_input}.chromInfo" "${bw_output}" |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
34 ]]> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
35 </command> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
36 <inputs> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
37 <param name="twobit_input" type="data" format="twobit" label="twoBit input file" /> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
38 |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
39 <param name="window_size" type="integer" min="1" value="5" |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
40 label="Window size" |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
41 help="Size of the sliding window for calculating GC percentages (-win)" /> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
42 |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
43 <param name="overlap" type="integer" min="0" value="0" |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
44 label="Overlap size" |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
45 help="Size of overlap for the sliding window (-overlap)" /> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
46 |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
47 <conditional name="region_type"> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
48 <param name="region_type_selector" type="select" |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
49 label="Choose the analysis region"> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
50 <option value="all" selected="true">All scaffolds</option> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
51 <option value="chrom">Chromosome</option> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
52 </param> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
53 |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
54 <when value="all"></when> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
55 |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
56 <when value="chrom"> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
57 <param name="chrom_name" type="text" label="Sequence name" |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
58 help="Process only this sequence in the twoBit file" /> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
59 </when> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
60 </conditional> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
61 </inputs> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
62 <outputs> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
63 <data name="bw_output" format="bigwig" /> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
64 </outputs> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
65 <tests> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
66 <test> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
67 <!-- Test hgGcPercent with default settings --> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
68 <param name="twobit_input" value="contigs.unmasked.2bit" ftype="twobit" /> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
69 <output name="bw_output" file="contigs_gc5Base.bw" /> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
70 </test> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
71 <test> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
72 <!-- Test hgGcPercent with custom window and overlap --> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
73 <param name="twobit_input" value="contigs.unmasked.2bit" ftype="twobit" /> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
74 <param name="window_size" value="100" /> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
75 <param name="overlap" value="10" /> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
76 <output name="bw_output" file="contigs_gc100Base_10overlap.bw" /> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
77 </test> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
78 <test> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
79 <!-- Test hgGcPercent with only one chromosome --> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
80 <param name="twobit_input" value="contigs.unmasked.2bit" ftype="twobit" /> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
81 <param name="region_type_selector" value="chrom" /> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
82 <param name="chrom_name" value="contig12" /> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
83 <output name="bw_output" file="contig12_gc5Base.bw" /> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
84 </test> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
85 </tests> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
86 <help> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
87 <![CDATA[ |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
88 **What it does** |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
89 |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
90 hgGcPercent uses a sliding window to calculate the GC percentages |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
91 of a genome assembly. |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
92 |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
93 ]]></help> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
94 |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
95 <expand macro="citations" /> |
c440273bd845
planemo upload commit 7624082bc86d63e7a63cc72a75287b7b7408678d-dirty
yating-l
parents:
diff
changeset
|
96 </tool> |