annotate bedtools-galaxy/intersectBed_bam.xml @ 11:0ee50862dd67 default tip

Uploaded
author aaronquinlan
date Tue, 27 Dec 2011 17:12:28 -0500
parents d72fd57eb158
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
1 <tool id="bedtools_intersectbed_bam" name="Find BAM alignments that overlap intervals in another file" version="0.1.0">
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
2
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
3 <requirements>
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
4 <requirement type="binary">intersectBed</requirement>
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
5 </requirements>
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
6
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
7 <command>
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
8 intersectBed
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
9 -abam '$inputA'
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
10 -b '$inputB'
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
11 $split
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
12 $strand
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
13 #if str($fraction):
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
14 -f $fraction
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
15 #end if
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
16 $reciprocal
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
17 $invert
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
18 &gt; '$output'
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
19 </command>
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
20
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
21 <inputs>
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
22 <param format="bed,bam" name="inputA" type="data" label="Which alignments in this BAM file">
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
23 <validator type="unspecified_build" />
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
24 </param>
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
25 <param format="bed" name="inputB" type="data" label="overlap intervaks in this BED file">
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
26 <validator type="unspecified_build" />
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
27 </param>
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
28 <param name="split" type="boolean" checked="true" 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." />
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
29
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
30 <param name="strand" type="select" label="Calculate coverage based on">
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
31 <option value="">Overlaps on either strand</option>
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
32 <option value="-s">Only overlaps occurring on the **same** strand.</option>
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
33 <option value="-S">Only overlaps occurring on the **opposite** strand.</option>
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
34 </param>
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
35
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
36 <param name="fraction" type="text" optional="true" label="Minimum overlap required as a fraction of the BAM alignment" help="Alignments are only retained if the overlap with the an interval in the BED file comprises at least this fraction of the BAM alignment's length. For example, to require that the overlap affects 50% of the BAM alignment, use 0.50"/>
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
37
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
38 <param name="reciprocal" type="boolean" checked="false" truevalue="-r" falsevalue="" label="Require reciprocal overlap." help="If set, the overlap between the BAM alignment and the BED interval must affect the above fraction of both the alignment and the BED interval." />
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
39
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
40 <param name="invert" type="boolean" checked="false" truevalue="-v" falsevalue="" label="Report only those alignments that **do not** overlap the BED file."/>
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
41
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
42 </inputs>
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
43
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
44 <outputs>
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
45 <data format="bam" name="output" metadata_source="inputA" label="Intersection of ${inputA.name} and ${inputB.name}"/>
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
46 </outputs>
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
47
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
48 <help>
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
49
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
50 **What it does**
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
51
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
52 This tool creates a new BAM alignment file based on alignments that overlap (or optionally, those that do not overlap) intervals in another BED file. Example usage would be to cull a BAM file from an exome capture experiment to include on the "on-target" alignments.
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
53
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
54 .. class:: infomark
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
55
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
56 Note that each BAM alignment is treated individually. Therefore, if one end of a paired-end alignment overlaps an interval in the BED file, yet the other end does not, the output file will only include the overlapping end.
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
57
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
58 .. class:: warningmark
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
59
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
60 This tool requires that `bedtools`__ has been installed on your system.
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
61
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
62 ------
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
63
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
64 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.`__
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
65
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
66 .. __: http://code.google.com/p/bedtools/
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
67 .. __: http://code.google.com/p/bedtools/
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
68 .. __: http://cphg.virginia.edu/quinlan/
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
69 .. __: http://bioinformatics.oxfordjournals.org/content/26/6/841.short
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
70
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
71 </help>
d72fd57eb158 Uploaded
aaronquinlan
parents:
diff changeset
72 </tool>