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