Mercurial > repos > iuc > bedtools
annotate bamToBed.xml @ 15:b73962f8fcbf draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
author | iuc |
---|---|
date | Wed, 05 Jul 2017 17:12:00 -0400 |
parents | 607c0576c6ab |
children | a33db97b220c |
rev | line source |
---|---|
4
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
1 <tool id="bedtools_bamtobed" name="BAM to BED" version="@WRAPPER_VERSION@.0"> |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
2 <description>converter</description> |
0 | 3 <macros> |
4 <import>macros.xml</import> | |
5 </macros> | |
4
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
6 <expand macro="requirements"> |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
7 <requirement type="package" version="1.2">samtools</requirement> |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
8 </expand> |
0 | 9 <expand macro="stdio" /> |
10 <command> | |
1 | 11 <![CDATA[ |
4
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
12 |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
13 #if $input.extension == 'bam' and $option == "-bedpe": |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
14 samtools sort -n "${input}" ./input && |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
15 #else |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
16 ln -s "${input}" ./input.bam && |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
17 #end if |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
18 |
1 | 19 bedtools bamtobed |
20 $option | |
0 | 21 $ed_score |
1 | 22 $split |
23 #if $tag and str($tag).strip(): | |
24 -tag "${tag}" | |
0 | 25 #end if |
4
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
26 -i ./input.bam |
1 | 27 > "${output}" |
28 ]]> | |
0 | 29 </command> |
30 <inputs> | |
31 <param format="bam" name="input" type="data" label="Convert the following BAM file to BED"/> | |
32 <param name="option" type="select" label="What type of BED output would you like"> | |
4
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
33 <option value="">Create a 6-column BED file</option> |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
34 <option value="-bed12">Create a full, 12-column "blocked" BED file</option> |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
35 <option value="-bedpe">Create a paired-end, BEDPE format</option> |
0 | 36 </param> |
1 | 37 <expand macro="split" /> |
38 <param name="ed_score" type="boolean" truevalue="-ed" falsevalue="" checked="false" | |
4
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
39 label="Use alignment's edit-distance for BED score" help="(-ed)" /> |
1 | 40 <param name="tag" type="text" optional="true" label="Use other NUMERIC BAM alignment tag as the BED score" |
41 help="(-tag)"/> | |
0 | 42 </inputs> |
43 <outputs> | |
44 <data format="bed" name="output" metadata_source="input" label="${input.name} (as BED)"/> | |
45 </outputs> | |
1 | 46 <tests> |
47 <test> | |
48 <param name="input" value="srma_in3.bam" ftype="bam" /> | |
49 <param name="option" value="" /> | |
50 <param name="tag" value="" /> | |
51 <output name="output" file="bamToBed_result1.bed" ftype="bed" /> | |
52 </test> | |
53 <test> | |
54 <param name="input" value="srma_in3.bam" ftype="bam" /> | |
55 <param name="option" value="" /> | |
56 <param name="tag" value="NM" /> | |
57 <output name="output" file="bamToBed_result2.bed" ftype="bed" /> | |
58 </test> | |
59 </tests> | |
60 <help> | |
61 <![CDATA[ | |
0 | 62 **What it does** |
63 | |
64 bedtools bamtobed is a conversion utility that converts sequence alignments in BAM format into BED, BED12, and/or BEDPE records. | |
65 | |
66 .. class:: infomark | |
67 | |
4
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
68 The "Report spliced BAM alignment..." option breaks BAM alignments with the "N" (splice) operator into distinct BED entries. |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
69 For example, using this option on a CIGAR such as 50M1000N50M would, by default, produce a single BED record that spans 1100bp. |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
70 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). |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
71 This is important for RNA-seq and structural variation experiments. |
0 | 72 |
73 | |
74 .. class:: warningmark | |
75 | |
4
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
76 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). |
0 | 77 |
78 | |
79 @REFERENCES@ | |
1 | 80 ]]> |
0 | 81 </help> |
82 <expand macro="citations" /> | |
83 </tool> |