8
|
1 <tool id="bedExtendRanges" name="bedExtendRanges">
|
|
2 <description> Extend length of entries in bed 6+. </description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="1.0">bedExtendRanges</requirement>
|
|
5 </requirements>
|
|
6 <command>
|
|
7 ## Set genome assembly
|
|
8
|
|
9 #set $Genome = str( $genome_cond.genome )
|
|
10 #if str( $genome_cond ) == 'OTHER':
|
|
11 #set $Genome = str( $genome_cond.genome_other )
|
|
12 #end if
|
|
13
|
|
14 bedExtendRanges -user=genome -host=genome-mysql.cse.ucsc.edu $Genome $length $input 2> /dev/null > $output
|
|
15 </command>
|
|
16 <inputs>
|
|
17 <param name="input" type="data" format="bed" label="Input"/>
|
|
18 <conditional name="genome_cond">
|
|
19 <param name="genome" type="select" label="Genome Assembly (-g)">
|
|
20 <option value="hg19">Human (Homo sapiens): hg19</option>
|
|
21 <option value="hg18">Human (Homo sapiens): hg18</option>
|
|
22 <option value="mm10">Mouse (Mus musculus): mm10</option>
|
|
23 <option value="mm9">Mouse (Mus musculus): mm9</option>
|
|
24 <option value="ce10">C. elegans: ce10</option>
|
|
25 <option value="ce6">C. elegans: ce6</option>
|
|
26 <option value="dm3">D. melanogaster: dm3</option>
|
|
27 <option value="OTHER">Other</option>
|
|
28 </param>
|
|
29 <when value="OTHER">
|
|
30 <param name="genome_other" type="text" label="Other genome assemly"/>
|
|
31 </when>
|
|
32 <when value="hg19" type="text" />
|
|
33 <when value="hg18" type="text" />
|
|
34 <when value="mm10" type="text" />
|
|
35 <when value="mm9" type="text" />
|
|
36 <when value="ce10" type="text" />
|
|
37 <when value="ce6" type="text" />
|
|
38 <when value="dm3" type="text" />
|
|
39 </conditional>
|
|
40 <param name="length" type="integer" value="0" label="Length extension (base-pairs)" />
|
|
41
|
|
42 </inputs>
|
|
43
|
|
44 <outputs>
|
|
45 <data format="input" name="output"/>
|
|
46 </outputs>
|
|
47
|
|
48 <tests>
|
|
49 <test>
|
|
50 <param name="input" value="2.bed" />
|
|
51 <param name="genome" value="hg19" />
|
|
52 <param name="length" value="5000" />
|
|
53 <output name="output" file="4.bed" />
|
|
54 </test>
|
|
55 </tests>
|
|
56
|
|
57 <help>
|
|
58
|
|
59 **What it does**
|
|
60
|
|
61 bedExtendRanges_ - extend length of entries in bed 6+ data to be at least the given length,
|
|
62 taking strand directionality into account.
|
|
63
|
|
64 .. _bedExtendRanges: http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/bedExtendRanges
|
|
65
|
|
66 **Usage**
|
|
67
|
|
68 bedExtendRanges database length files(s)
|
|
69
|
|
70 **Example**
|
|
71
|
|
72 * bedExtendRanges -user=genome -host=genome-mysql.cse.ucsc.edu hg18 250 stdin
|
|
73
|
|
74 will transform:
|
|
75 chr1 500 525 . 100 +
|
|
76 chr1 1000 1025 . 100 -
|
|
77 to:
|
|
78 chr1 500 750 . 100 +
|
|
79 chr1 775 1025 . 100 -
|
|
80
|
|
81 </help>
|
|
82 </tool>
|