Mercurial > repos > iuc > bedtools
annotate genomeCoverageBed.xml @ 46:64e2edfe7a2c draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 3e7bf5ae62de3520635d75e3825701960b9722e4
author | iuc |
---|---|
date | Sat, 18 May 2024 23:28:38 +0000 |
parents | 7ab85ac5f64b |
children |
rev | line source |
---|---|
39
3e38c9b3214f
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 1e25e8d0bd1ebeb2b94c4bbdff222e56defc1fc2"
iuc
parents:
34
diff
changeset
|
1 <tool id="bedtools_genomecoveragebed" name="bedtools Genome Coverage" version="@TOOL_VERSION@" profile="@PROFILE@"> |
4
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
2
diff
changeset
|
2 <description>compute the coverage over an entire genome</description> |
1 | 3 <macros> |
4 <import>macros.xml</import> | |
5 </macros> | |
41
7ab85ac5f64b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 500a03281ea704abc7a16d9af63d67dbdcc5cd0b"
iuc
parents:
39
diff
changeset
|
6 <expand macro="bio_tools" /> |
1 | 7 <expand macro="requirements" /> |
8 <expand macro="stdio" /> | |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
9 <command><![CDATA[ |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
10 bedtools genomecov |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
11 @GENOME_FILE_COVERAGE@ |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
12 |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
13 $split |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
14 $strand |
1 | 15 |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
16 #if str($report.report_select) == "bg": |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
17 #if $report.zero_regions: |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
18 $report.zero_regions |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
19 #else: |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
20 -bg |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
21 #end if |
1 | 22 |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
23 #if str($report.scale): |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
24 -scale $report.scale |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
25 #end if |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
26 #else: |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
27 #if str($report.max): |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
28 -max $report.max |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
29 #end if |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
30 #end if |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
31 $d |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
32 $dz |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
33 $five |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
34 $three |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
35 > '$output' |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
36 ]]></command> |
1 | 37 <inputs> |
7
8e6b7c3597a8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 964b3159deeade1c90d20cef92dc15a14195edb7
iuc
parents:
4
diff
changeset
|
38 <conditional name="input_type"> |
8e6b7c3597a8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 964b3159deeade1c90d20cef92dc15a14195edb7
iuc
parents:
4
diff
changeset
|
39 <param name="input_type_select" type="select" label="Input type"> |
26
95a3b2c25bd1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b75b9e79cf3186a22dc2e1e9d27c1a080b891b59
iuc
parents:
19
diff
changeset
|
40 <option value="bed">@STD_BEDTOOLS_INPUT_LABEL@</option> |
7
8e6b7c3597a8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 964b3159deeade1c90d20cef92dc15a14195edb7
iuc
parents:
4
diff
changeset
|
41 <option value="bam">BAM</option> |
8e6b7c3597a8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 964b3159deeade1c90d20cef92dc15a14195edb7
iuc
parents:
4
diff
changeset
|
42 </param> |
8e6b7c3597a8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 964b3159deeade1c90d20cef92dc15a14195edb7
iuc
parents:
4
diff
changeset
|
43 <when value="bed"> |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
44 <param name="input" argument="-i" type="data" format="@STD_BEDTOOLS_INPUTS@" label="@STD_BEDTOOLS_INPUT_LABEL@ file" /> |
17
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
45 <expand macro="input_conditional_genome_file" /> |
7
8e6b7c3597a8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 964b3159deeade1c90d20cef92dc15a14195edb7
iuc
parents:
4
diff
changeset
|
46 </when> |
8e6b7c3597a8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 964b3159deeade1c90d20cef92dc15a14195edb7
iuc
parents:
4
diff
changeset
|
47 <when value="bam"> |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
48 <param name="input" argument="-ibam" type="data" format="bam" label="BAM file" /> |
7
8e6b7c3597a8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 964b3159deeade1c90d20cef92dc15a14195edb7
iuc
parents:
4
diff
changeset
|
49 </when> |
8e6b7c3597a8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 964b3159deeade1c90d20cef92dc15a14195edb7
iuc
parents:
4
diff
changeset
|
50 </conditional> |
1 | 51 <conditional name="report"> |
52 <param name="report_select" type="select" label="Output type"> | |
53 <option value="bg" selected="true">BedGraph coverage file</option> | |
54 <option value="hist">Data suiteable for Histogram</option> | |
55 </param> | |
56 <when value="bg"> | |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
57 <param name="zero_regions" argument="-bga" type="boolean" truevalue="-bga" falsevalue="" checked="false" |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
58 label="Report regions with zero coverage" help="If set, regions without any coverage will also be reported" /> |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
59 <param argument="-scale" type="float" value="1.0" |
1 | 60 label="Scale the coverage by a constant factor" |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
61 help="Each bedGraph coverage value is multiplied by this factor before being reported. Useful for normalizing coverage by, e.g., reads per million (RPM)." /> |
1 | 62 </when> |
63 <when value="hist"> | |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
64 <param argument="-max" type="integer" value="0" label="Specify max depth" |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
65 help="Combine all positions with a depth >= max into a single bin in the histogram" /> |
1 | 66 </when> |
67 </conditional> | |
68 <expand macro="split" /> | |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
69 <param argument="-strand" type="select" label="Calculate coverage based on"> |
1 | 70 <option value="">both strands combined</option> |
71 <option value="-strand +">positive strand only</option> | |
72 <option value="-strand -">negative strand only</option> | |
73 </param> | |
74 | |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
75 <param argument="-d" type="boolean" truevalue="-d" falsevalue="" checked="false" |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
76 label="Report the depth at each genome position with 1-based coordinates" /> |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
77 <param argument="-dz" type="boolean" truevalue="-dz" falsevalue="" checked="false" |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
78 label="Report the depth at each genome position with 0-based coordinatess" /> |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
79 <param name="five" argument="-5" type="boolean" truevalue="-5" falsevalue="" checked="false" |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
80 label="Calculate coverage of 5’ positions" help="Instead of entire interval" /> |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
81 <param name="three" argument="-3" type="boolean" truevalue="-3" falsevalue="" checked="false" |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
82 label="Calculate coverage of 3’ positions" help="Instead of entire interval" /> |
1 | 83 </inputs> |
84 <outputs> | |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
85 <data name="output" format="bedgraph"> |
1 | 86 <change_format> |
87 <when input="report.report_select" value="hist" format="tabular" /> | |
88 </change_format> | |
89 </data> | |
90 </outputs> | |
91 <tests> | |
92 <test> | |
7
8e6b7c3597a8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 964b3159deeade1c90d20cef92dc15a14195edb7
iuc
parents:
4
diff
changeset
|
93 <param name="input_type_select" value="bed" /> |
1 | 94 <param name="input" value="genomeCoverageBed1.bed" ftype="bed" /> |
17
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
95 <param name="genome_file_opts_selector" value="hist" /> |
7
8e6b7c3597a8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 964b3159deeade1c90d20cef92dc15a14195edb7
iuc
parents:
4
diff
changeset
|
96 <param name="genome" value="genomeCoverageBed1.len" ftype="tabular" /> |
1 | 97 <param name="report_select" value="hist" /> |
98 <output name="output" file="genomeCoverageBed_result1.bed" ftype="tabular" /> | |
99 </test> | |
100 </tests> | |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
101 <help><![CDATA[ |
1 | 102 **What it does** |
103 | |
104 This tool calculates the genome-wide coverage of intervals defined in a BAM or BED file and reports them in BedGraph format. | |
105 | |
106 .. image:: $PATH_TO_IMAGES/genomecov-glyph.png | |
107 | |
108 .. class:: warningmark | |
109 | |
110 The input BED or BAM file must be sorted by chromosome name (but doesn't necessarily have to be sorted by start position). | |
111 | |
112 ----- | |
113 | |
114 **Example 1** | |
115 | |
116 Input (BED format)- | |
117 Overlapping, un-sorted intervals:: | |
118 | |
119 chr1 140 176 | |
120 chr1 100 130 | |
121 chr1 120 147 | |
122 | |
123 | |
124 Output (BedGraph format)- | |
125 Sorted, non-overlapping intervals, with coverage value on the 4th column:: | |
126 | |
127 chr1 100 120 1 | |
128 chr1 120 130 2 | |
129 chr1 130 140 1 | |
130 chr1 140 147 2 | |
131 chr1 147 176 1 | |
132 | |
133 ----- | |
134 | |
135 **Example 2 - with ZERO-Regions selected (assuming hg19)** | |
136 | |
137 Input (BED format)- | |
138 Overlapping, un-sorted intervals:: | |
139 | |
140 chr1 140 176 | |
141 chr1 100 130 | |
142 chr1 120 147 | |
143 | |
144 | |
145 BedGraph output will contain five columns: | |
146 | |
147 * 1. Chromosome name (or 'genome' for whole-genome coverage) | |
148 * 2. Coverage depth | |
149 * 3. The number of bases on chromosome (or genome) with depth equal to column 2. | |
150 * 4. The size of chromosome (or entire genome) in base pairs | |
151 * 5. The fraction of bases on chromosome (or entire genome) with depth equal to column 2. | |
152 | |
153 **Example Output**: | |
11
7308cc546a36
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
7
diff
changeset
|
154 |
1 | 155 chr2L 0 1379895 23011544 0.0599653 |
156 chr2L 1 837250 23011544 0.0363839 | |
157 chr2L 2 904442 23011544 0.0393038 | |
158 chr2L 3 913723 23011544 0.0397072 | |
159 chr2L 4 952166 23011544 0.0413778 | |
160 chr2L 5 967763 23011544 0.0420555 | |
161 chr2L 6 986331 23011544 0.0428624 | |
162 chr2L 7 998244 23011544 0.0433801 | |
163 chr2L 8 995791 23011544 0.0432735 | |
164 chr2L 9 996398 23011544 0.0432999 | |
165 | |
166 | |
167 @REFERENCES@ | |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
168 ]]></help> |
1 | 169 <expand macro="citations" /> |
170 </tool> |