annotate coverageBed.xml @ 24:33c3ddea63c5 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 09721a12bdd393441b162056316241aba3895a4f
author iuc
date Sun, 18 Feb 2018 15:07:08 -0500
parents df56e1b12d0c
children 95a3b2c25bd1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
24
33c3ddea63c5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 09721a12bdd393441b162056316241aba3895a4f
iuc
parents: 20
diff changeset
1 <tool id="bedtools_coveragebed" name="Compute both the depth and breadth of coverage" version="@WRAPPER_VERSION@.2">
9
2ab422b551df planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit bad476ff5076338f3eebdf0c25bb5a6c745e5592
iuc
parents: 8
diff changeset
2 <description>of features in file B on the features in file A (bedtools coverage)</description>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
3 <macros>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
4 <import>macros.xml</import>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
5 </macros>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
6 <expand macro="requirements" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
7 <expand macro="stdio" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
8 <command>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
9 <![CDATA[
6
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
10 bedtools coverage
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
11 $d
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
12 $hist
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
13 $split
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
14 $strandedness
18
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
15 #if str($overlap_a) != "None" and str($overlap_a):
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
16 -f '$overlap_a'
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
17 #end if
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
18 #if str($overlap_b) != "None" and str($overlap_b):
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
19 -F '$overlap_b'
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
20 #end if
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
21 $reciprocal_overlap
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
22 $a_or_b
6
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
23 -a '$inputA'
20
df56e1b12d0c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9f7b029951fa0f854c9c6a5f241ce9a20ae4f22a
iuc
parents: 19
diff changeset
24 #if str($reduce_or_iterate.reduce_or_iterate_selector) == 'iterate':
df56e1b12d0c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9f7b029951fa0f854c9c6a5f241ce9a20ae4f22a
iuc
parents: 19
diff changeset
25 -b '$reduce_or_iterate.inputB'
24
33c3ddea63c5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 09721a12bdd393441b162056316241aba3895a4f
iuc
parents: 20
diff changeset
26 #if $reduce_or_iterate.inputB.is_of_type('bam'):
33c3ddea63c5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 09721a12bdd393441b162056316241aba3895a4f
iuc
parents: 20
diff changeset
27 -sorted -g <(samtools view -H $reduce_or_iterate.inputB | tr ':' '\t' | grep SN | cut -f 3,5)
33c3ddea63c5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 09721a12bdd393441b162056316241aba3895a4f
iuc
parents: 20
diff changeset
28 #end if
20
df56e1b12d0c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9f7b029951fa0f854c9c6a5f241ce9a20ae4f22a
iuc
parents: 19
diff changeset
29 #else:
df56e1b12d0c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9f7b029951fa0f854c9c6a5f241ce9a20ae4f22a
iuc
parents: 19
diff changeset
30 #set inputBs = "' '".join([str($file) for $file in $reduce_or_iterate.inputB])
df56e1b12d0c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9f7b029951fa0f854c9c6a5f241ce9a20ae4f22a
iuc
parents: 19
diff changeset
31 -b '$inputBs'
df56e1b12d0c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9f7b029951fa0f854c9c6a5f241ce9a20ae4f22a
iuc
parents: 19
diff changeset
32 #end if
24
33c3ddea63c5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 09721a12bdd393441b162056316241aba3895a4f
iuc
parents: 20
diff changeset
33 #if $inputA.is_of_type('gff') or $inputA.is_of_type('gff3'):
33c3ddea63c5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 09721a12bdd393441b162056316241aba3895a4f
iuc
parents: 20
diff changeset
34 | sort -k1,1 -k4,2n
33c3ddea63c5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 09721a12bdd393441b162056316241aba3895a4f
iuc
parents: 20
diff changeset
35 #else:
33c3ddea63c5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 09721a12bdd393441b162056316241aba3895a4f
iuc
parents: 20
diff changeset
36 | sort -k1,1 -k2,2n
33c3ddea63c5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 09721a12bdd393441b162056316241aba3895a4f
iuc
parents: 20
diff changeset
37 #end if
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
38 > '$output'
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
39 ]]>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
40 </command>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
41 <inputs>
6
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
42 <param format="bam,bed,gff,gff3,vcf" name="inputA" type="data" label="File A (on which coverage is calculated)" help="BAM/BED/GFF/VCF format" />
20
df56e1b12d0c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9f7b029951fa0f854c9c6a5f241ce9a20ae4f22a
iuc
parents: 19
diff changeset
43 <conditional name="reduce_or_iterate">
df56e1b12d0c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9f7b029951fa0f854c9c6a5f241ce9a20ae4f22a
iuc
parents: 19
diff changeset
44 <param name='reduce_or_iterate_selector' type='select' label='Combined or separate output files'>
df56e1b12d0c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9f7b029951fa0f854c9c6a5f241ce9a20ae4f22a
iuc
parents: 19
diff changeset
45 <option value='iterate' selected='true'>One output file per 'input B' file</option>
df56e1b12d0c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9f7b029951fa0f854c9c6a5f241ce9a20ae4f22a
iuc
parents: 19
diff changeset
46 <option value='reduce'>Single output containing results for all 'input B' files</option>
df56e1b12d0c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9f7b029951fa0f854c9c6a5f241ce9a20ae4f22a
iuc
parents: 19
diff changeset
47 </param>
df56e1b12d0c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9f7b029951fa0f854c9c6a5f241ce9a20ae4f22a
iuc
parents: 19
diff changeset
48 <when value='iterate'>
df56e1b12d0c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9f7b029951fa0f854c9c6a5f241ce9a20ae4f22a
iuc
parents: 19
diff changeset
49 <param format="bam,bed,gff,gff3,vcf" name="inputB" type="data"
df56e1b12d0c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9f7b029951fa0f854c9c6a5f241ce9a20ae4f22a
iuc
parents: 19
diff changeset
50 label="File(s) B (for which coverage is calculated)" help="BAM/BED/GFF/VCF format"/>
df56e1b12d0c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9f7b029951fa0f854c9c6a5f241ce9a20ae4f22a
iuc
parents: 19
diff changeset
51 </when>
df56e1b12d0c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9f7b029951fa0f854c9c6a5f241ce9a20ae4f22a
iuc
parents: 19
diff changeset
52 <when value='reduce'>
df56e1b12d0c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9f7b029951fa0f854c9c6a5f241ce9a20ae4f22a
iuc
parents: 19
diff changeset
53 <param format="bam,bed,gff,gff3,vcf" name="inputB" type="data" multiple="true"
df56e1b12d0c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9f7b029951fa0f854c9c6a5f241ce9a20ae4f22a
iuc
parents: 19
diff changeset
54 label="File(s) B (for which coverage is calculated)" help="BAM/BED/GFF/VCF format"/>
df56e1b12d0c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9f7b029951fa0f854c9c6a5f241ce9a20ae4f22a
iuc
parents: 19
diff changeset
55 </when>
df56e1b12d0c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9f7b029951fa0f854c9c6a5f241ce9a20ae4f22a
iuc
parents: 19
diff changeset
56 </conditional>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
57 <expand macro="split" />
11
7308cc546a36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents: 9
diff changeset
58 <param name="strandedness" type="boolean" label="Force strandedness" truevalue="-s" falsevalue="" checked="false"
6
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
59 help="Only report hits in B that overlap A on the same strand. By default, overlaps are reported without respect to strand (-s)"/>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
60 <param name="d" type="boolean" checked="false" truevalue="-d" falsevalue=""
6
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
61 label="Report the depth at each position in each A feature"
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
62 help="Positions reported are one based. Each position and depth follow the complete B feature (-d)" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
63 <param name="hist" type="boolean" checked="false" truevalue="-hist" falsevalue=""
6
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
64 label="Report a histogram of coverage for each feature in A as well as a summary histogram for all features in A"
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
65 help="Additional columns after each feature in A: 1) depth 2) # bases at depth 3) size of A 4) % of A at depth (-hist)" />
18
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
66 <param name="overlap_a" type="text"
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
67 label="Minimum overlap required as a fraction of A."
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
68 help="Default is 1E-9 (i.e., 1bp). (-f)">
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
69 <sanitizer invalid_char="">
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
70 <valid initial="string.digits"><add value=",."/></valid>
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
71 </sanitizer>
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
72 </param>
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
73 <param name="overlap_b" type="text"
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
74 label="Minimum overlap required as a fraction of B."
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
75 help="Default is 1E-9 (i.e., 1bp). (-F)">
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
76 <sanitizer invalid_char="">
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
77 <valid initial="string.digits"><add value=",."/></valid>
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
78 </sanitizer>
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
79 </param>
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
80 <param name="reciprocal_overlap" type="boolean" checked="false" truevalue="-r" falsevalue=""
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
81 label="Require that the fraction overlap be reciprocal for A AND B."
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
82 help="if -f is 0.90 and -r is used, this requires that B overlap 90% of A and A _also_ overlaps 90% of B (-r)" />
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
83 <param name="a_or_b" type="boolean" checked="false" truevalue="-e" falsevalue=""
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
84 label="Require that the minimum fraction be satisfied for A OR B."
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
85 help="if -e is used with -f 0.90 and -F 0.10 this requires that either 90% of A is covered OR 10% of B is covered. Without -e, both fractions would have to be satisfied. (-e)" />
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
86 </inputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
87 <outputs>
6
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
88 <data format="bed" name="output" metadata_source="inputA" label="Count of overlaps on ${inputA.name}"/>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
89 </outputs>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
90 <tests>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
91 <test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
92 <param name="inputA" value="coverageBedA.bed" ftype="bed" />
18
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
93 <param name="inputB" value="coverageBedB.bed" ftype="bed" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
94 <output name="output" file="coverageBed_result1.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
95 </test>
18
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
96 <test>
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
97 <param name="inputA" value="coverageBedA.bed" ftype="bed" />
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
98 <param name="inputB" value="coverageBedB.bed" ftype="bed" />
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
99 <param name="overlap_b" value="1" />
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
100 <output name="output" file="coverageBed_result2_F1.bed" ftype="bed" />
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
101 </test>
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
102 <test>
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
103 <param name="inputA" value="coverageBedA.bed" ftype="bed" />
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
104 <param name="inputB" value="coverageBedB.bed" ftype="bed" />
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
105 <param name="overlap_a" value="1" />
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
106 <param name="reciprocal_overlap" value="true" />
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
107 <output name="output" file="coverageBed_result3_f1r.bed" ftype="bed" />
18aeac3cd1db planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
iuc
parents: 11
diff changeset
108 </test>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
109 </tests>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
110 <help>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
111 <![CDATA[
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
112 **What it does**
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
113
11
7308cc546a36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents: 9
diff changeset
114 `bedtools coverage`_ computes both the *depth* and *breadth* of coverage of features in
7308cc546a36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents: 9
diff changeset
115 file B on the features in file A. For example, ``bedtools coverage`` can compute the coverage of sequence alignments
7308cc546a36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents: 9
diff changeset
116 (file B) across 1 kilobase (arbitrary) windows (file A) tiling a genome of interest.
7308cc546a36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents: 9
diff changeset
117 One advantage that ``bedtools coverage`` offers is that it not only *counts* the number of features that
6
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
118 overlap an interval in file A, it also computes the fraction of bases in the interval in A that were overlapped by one or more features.
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
119 Thus, ``bedtools coverage`` also computes the *breadth* of coverage for each interval in A.
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
120
6
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
121 .. _bedtools coverage: http://bedtools.readthedocs.org/en/latest/content/tools/coverage.html
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
122
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
123 .. class:: infomark
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
124
6
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
125 The lines in the output will be comprised of each interval in A, followed by:
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
126
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
127 1. The number of features in B that overlapped (by at least one base pair) the A interval.
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
128 2. The number of bases in A that had non-zero coverage from features in B.
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
129 3. The length of the entry in A.
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
130 4. The fraction of bases in A that had non-zero coverage from features in B.
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
131
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
132 @REFERENCES@
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
133 ]]>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
134 </help>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
135 <expand macro="citations" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
136 </tool>