Mercurial > repos > iuc > bedtools
annotate flankBed.xml @ 64:f6c88d2e9ae5 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 73ebd55430874a3c1483b6dd6cce0482175482f9
| author | iuc |
|---|---|
| date | Fri, 21 Feb 2025 21:38:34 +0000 |
| parents | 9f6bd4c9479f |
| children |
| rev | line source |
|---|---|
|
64
f6c88d2e9ae5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 73ebd55430874a3c1483b6dd6cce0482175482f9
iuc
parents:
61
diff
changeset
|
1 <tool id="bedtools_flankbed" name="bedtools FlankBed" version="@TOOL_VERSION@+galaxy0" profile="@PROFILE@"> |
|
17
a2d4c30ba2f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 0887009a23d176b21536c9fd8a18c4fecc417d4f
iuc
parents:
4
diff
changeset
|
2 <description>create new intervals from the flanks of existing intervals</description> |
| 4 | 3 <macros> |
| 4 <import>macros.xml</import> | |
| 5 </macros> | |
|
59
539958feb49c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 500a03281ea704abc7a16d9af63d67dbdcc5cd0b"
iuc
parents:
57
diff
changeset
|
6 <expand macro="bio_tools" /> |
| 4 | 7 <expand macro="requirements" /> |
| 8 <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
|
9 <command><![CDATA[ |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
10 flankBed |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
11 $pct |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
12 $strand |
|
61
9f6bd4c9479f
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
59
diff
changeset
|
13 @GENOME_FILE@ |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
14 -i '$input' |
| 4 | 15 |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
16 #if $addition.addition_select == 'b': |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
17 -b $addition.b |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
18 #else: |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
19 -l $addition.l |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
20 -r $addition.r |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
21 #end if |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
22 > '$output' |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
23 ]]></command> |
| 4 | 24 <inputs> |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
25 <param name="input" argument="-i" type="data" format="@STD_BEDTOOLS_INPUTS@" label="@STD_BEDTOOLS_INPUT_LABEL@ file"/> |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
26 <expand macro="input_conditional_genome_file" /> |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
27 <param argument="-pct" type="boolean" truevalue="-pct" falsevalue="" checked="false" |
| 4 | 28 label="Define -l and -r as a fraction of the feature’s length" |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
29 help="E.g. if used on a 1000bp feature, -l 0.50, will add 500 bp “upstream”" /> |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
30 <param name="strand" argument="-s" type="boolean" truevalue="-s" falsevalue="" checked="false" |
| 4 | 31 label="Define -l and -r based on strand" |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
32 help="For example, if used, -l 500 for a negative-stranded feature, it will add 500 bp to the end coordinate" /> |
| 4 | 33 <expand macro="addition" /> |
| 34 </inputs> | |
| 35 <outputs> | |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
36 <data name="output" format_source="input" metadata_source="input" /> |
| 4 | 37 </outputs> |
| 38 <tests> | |
| 39 <test> | |
| 40 <param name="input" value="a.bed" ftype="bed" /> | |
|
64
f6c88d2e9ae5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 73ebd55430874a3c1483b6dd6cce0482175482f9
iuc
parents:
61
diff
changeset
|
41 <param name="genome_file_opts|genome_file_opts_selector" value="hist" /> |
|
f6c88d2e9ae5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 73ebd55430874a3c1483b6dd6cce0482175482f9
iuc
parents:
61
diff
changeset
|
42 <param name="genome_file_opts|genome" value="mm9_chr1.len" ftype="tabular"/> |
|
f6c88d2e9ae5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 73ebd55430874a3c1483b6dd6cce0482175482f9
iuc
parents:
61
diff
changeset
|
43 <param name="addition|addition_select" value="b"/> |
|
f6c88d2e9ae5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 73ebd55430874a3c1483b6dd6cce0482175482f9
iuc
parents:
61
diff
changeset
|
44 <param name="addition|b" value="5"/> |
| 4 | 45 <output name="output" file="flankBed_result1.bed" ftype="bed" /> |
| 46 </test> | |
| 47 <test> | |
| 48 <param name="input" value="a.bed" ftype="bed" /> | |
|
64
f6c88d2e9ae5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 73ebd55430874a3c1483b6dd6cce0482175482f9
iuc
parents:
61
diff
changeset
|
49 <param name="genome_file_opts|genome_file_opts_selector" value="hist" /> |
|
f6c88d2e9ae5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 73ebd55430874a3c1483b6dd6cce0482175482f9
iuc
parents:
61
diff
changeset
|
50 <param name="genome_file_opts|genome" value="mm9_chr1.len" ftype="tabular"/> |
|
f6c88d2e9ae5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 73ebd55430874a3c1483b6dd6cce0482175482f9
iuc
parents:
61
diff
changeset
|
51 <param name="addition|addition_select" value="lr"/> |
|
f6c88d2e9ae5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 73ebd55430874a3c1483b6dd6cce0482175482f9
iuc
parents:
61
diff
changeset
|
52 <param name="addition|l" value="2"/> |
|
f6c88d2e9ae5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 73ebd55430874a3c1483b6dd6cce0482175482f9
iuc
parents:
61
diff
changeset
|
53 <param name="addition|r" value="3"/> |
| 4 | 54 <output name="output" file="flankBed_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[ |
| 4 | 58 **What it does** |
| 59 | |
| 60 bedtools flank will optionally create flanking intervals whose size is user-specified fraction of the original interval. | |
| 61 | |
| 62 .. image:: $PATH_TO_IMAGES/flank-glyph.png | |
| 63 | |
| 64 .. class:: warningmark | |
| 65 | |
|
46
01c7c0d32674
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b67e138b17f7e8cb34f59bed0925f691ec9740f3
iuc
parents:
42
diff
changeset
|
66 In order to prevent creating intervals that violate chromosome boundaries, bedTools flank requires a bedTool genome file defining the length of each chromosome or contig. . This should be a two column tabular file with the chromosome name in the first column and the END coordinate of the chromosome in the second column. |
|
01c7c0d32674
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b67e138b17f7e8cb34f59bed0925f691ec9740f3
iuc
parents:
42
diff
changeset
|
67 |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
68 If you need this data for any genome that is at UCSC (http://genome.ucsc.edu), it can be extracted from the Table Browser with the "Get Data: UCSC Main" tool. Set "group" to "All Tables", "table" to "chromInfo", and "output format" to "all fields from selected table". |
| 4 | 69 |
| 70 @REFERENCES@ | |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
71 ]]></help> |
| 4 | 72 <expand macro="citations" /> |
| 73 </tool> |
