annotate bamToBed.xml @ 0:b8348686a0b9 draft

Imported from capsule None
author iuc
date Tue, 04 Nov 2014 01:45:04 -0500
parents
children 82aac94b06c3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
1 <tool id="bedtools_bamtobed" name="Convert from BAM to BED" version="@WRAPPER_VERSION@.0">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
2 <description></description>
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>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
9 bedtools bamtobed
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
10 $option
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
11 $ed_score
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
12 -i '$input'
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
13 &gt; '$output'
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
14 #if str($tag):
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
15 -tag $tag
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
16 #end if
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
17 </command>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
18 <inputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
19 <param format="bam" name="input" type="data" label="Convert the following BAM file to BED"/>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
20 <param name="option" type="select" label="What type of BED output would you like">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
21 <option value="">Create a 6-column BED file.</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
22 <option value="-bed12">Create a full, 12-column "blocked" BED file.</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
23 <option value="-bedpe">Create a paired-end, BEDPE format.</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
24 </param>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
25 <param name="split" type="boolean" label="Report each portion of a split BAM alignment" truevalue="-split" falsevalue="" checked="false" help="(i.e., having an 'N' CIGAR operation) as a distinct BED intervals."/>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
26 <param name="ed_score" type="boolean" label="Use alignment's edit-distance for BED score" truevalue="-ed" falsevalue="" checked="false"/>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
27 <param name="tag" type="text" optional="true" label="Use other NUMERIC BAM alignment tag as the BED score"/>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
28 </inputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
29 <outputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
30 <data format="bed" name="output" metadata_source="input" label="${input.name} (as BED)"/>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
31 </outputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
32 <help>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
33
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
34 **What it does**
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
35
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
36 bedtools bamtobed is a conversion utility that converts sequence alignments in BAM format into BED, BED12, and/or BEDPE records.
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
37
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
38 .. class:: infomark
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
39
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
40 The "Report spliced BAM alignment..." option breaks BAM alignments with the "N" (splice) operator into distinct BED entries. For example, using this option on a CIGAR such as 50M1000N50M would, by default, produce a single BED record that spans 1100bp. However, using this option, it would create two separate BED records that are each 50bp in size and are separated by 1000bp (the size of the N operation). This is important for RNA-seq and structural variation experiments.
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
41
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
42
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
43 .. class:: warningmark
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
44
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
45 If using a custom BAM alignment TAG as the BED score, note that this must be a numeric tag (e.g., type "i" as in NM:i:0).
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
46
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
47 .. class:: warningmark
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
48
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
49 If creating a BEDPE output (see output formatting options), the BAM file should be sorted by query name.
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
50
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
51 @REFERENCES@
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
52
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
53 </help>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
54 <expand macro="citations" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
55 </tool>