comparison bedtools-galaxy/coverageBed_counts.xml @ 0:26c21c634c51

Uploaded
author aaronquinlan
date Thu, 29 Dec 2011 10:20:07 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:26c21c634c51
1 <tool id="bedtools_coveragebed_counts" name="Count intervals in one file overlapping intervals in another file" version="0.1.0">
2
3 <description>
4 </description>
5
6 <requirements>
7 <requirement type="binary">coverageBed</requirement>
8 </requirements>
9
10 <command>
11 coverageBed
12 #if $inputA.ext == "bam"
13 -abam '$inputA'
14 #else
15 -a '$inputA'
16 #end if
17 -b '$inputB'
18 -counts
19 $split
20 $strand
21 | sort -k1,1 -k2,2n
22 &gt; '$output'
23 </command>
24
25 <inputs>
26 <param format="bed,bam" name="inputA" type="data" label="Count how many intervals in this BED or BAM file (source)">
27 <validator type="unspecified_build" />
28 </param>
29 <param format="bed" name="inputB" type="data" label="overlap the intervals in this BED file (target)">
30 <validator type="unspecified_build" />
31 </param>
32 <param name="split" type="boolean" checked="false" truevalue="-split" falsevalue="" label="Treat split/spliced BAM or BED12 entries as distinct BED intervals when computing coverage." help="If set, the coverage will be calculated based the spliced intervals only. For BAM files, this inspects the CIGAR N operation to infer the blocks for computing coverage. For BED12 files, this inspects the BlockCount, BlockStarts, and BlockEnds fields (i.e., columns 10,11,12). If this option is not set, coverage will be calculated based on the interval's START/END coordinates, and would include introns in the case of RNAseq data." />
33
34 <param name="strand" type="select" label="Count">
35 <option value="">overlaps on either strand</option>
36 <option value="-s">only overlaps occurring on the **same** strand.</option>
37 <option value="-S">only overlaps occurring on the **opposite** strand.</option>
38 </param>
39 </inputs>
40
41 <outputs>
42 <data format="bed" name="output" metadata_source="inputB" label="count of overlaps in ${inputA.name} on ${inputB.name}"/>
43 </outputs>
44
45 <help>
46
47 **What it does**
48
49 This tool converts counts the number of intervals in a BAM or BED file (the source) that overlap another BED file (the target).
50
51 .. class:: infomark
52
53 The output file will be comprised of each interval from your original target BED file, plus an additional column indicating the number of intervals in your source file that overlapped that target interval.
54
55 .. class:: warningmark
56
57 This tool requires that `bedtools`__ has been installed on your system.
58
59 ------
60
61 This tool is part of the `bedtools package`__ from the `Quinlan laboratory`__. If you use this tool, please cite `Quinlan AR, and Hall I.M. BEDTools: A flexible framework for comparing genomic features. Bioinformatics, 2010, 26, 6.`__
62
63 .. __: http://code.google.com/p/bedtools/
64 .. __: http://code.google.com/p/bedtools/
65 .. __: http://cphg.virginia.edu/quinlan/
66 .. __: http://bioinformatics.oxfordjournals.org/content/26/6/841.short
67
68 </help>
69 </tool>