annotate annotateBed.xml @ 11:7308cc546a36 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
author iuc
date Mon, 17 Oct 2016 10:13:35 -0400
parents 607c0576c6ab
children 95a3b2c25bd1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
7308cc546a36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents: 4
diff changeset
1 <tool id="bedtools_annotatebed" name="AnnotateBed" version="@WRAPPER_VERSION@.0">
4
607c0576c6ab planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents: 1
diff changeset
2 <description>annotate coverage of features from multiple files</description>
0
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>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
9 <![CDATA[
4
607c0576c6ab planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents: 1
diff changeset
10
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
11 bedtools annotate
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
12 -i "${inputA}"
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
13 #if $names.names_select == 'yes':
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
14 -files
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
15 #for $bed in $names.beds:
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
16 "${bed.input}"
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
17 #end for
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
18
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
19 -names
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
20 #for $bed in $names.beds:
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
21 "${bed.inputName}"
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
22 #end for
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
23 #else:
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
24 #set files = '" "'.join( [ str( $file ) for $file in $names.beds ] )
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
25 -files "${files}"
4
607c0576c6ab planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents: 1
diff changeset
26 #set names = '" "'.join( [ str( $name.display_name ) for $name in $names.beds ] )
607c0576c6ab planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents: 1
diff changeset
27 -names "${names}"
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
28 #end if
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
29 $strand
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
30 $counts
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
31 $both
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
32 > "${output}"
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
33 ]]>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
34 </command>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
35 <inputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
36 <param format="bed,vcf,gff,gff3" name="inputA" type="data" label="BED/VCF/GFF file" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
37 <!-- Additional files, if the user needs more -->
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
38 <conditional name="names">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
39 <param name="names_select" type="select" label="Specify names for each file">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
40 <option value="no" selected="True">No</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
41 <option value="yes">Yes</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
42 </param>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
43 <when value="yes">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
44 <repeat name="beds" title="Add BED files and names" >
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
45 <param name="input" format="bed" type="data" label="BED file" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
46 <param name="inputName" type="text" label="Name of the file" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
47 </repeat>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
48 </when>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
49 <when value="no">
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
50 <param name="beds" format="bed" multiple="True" type="data" label="BED file" />
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
51 </when>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
52 </conditional>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
53 <expand macro="strand2" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
54 <param name="counts" type="boolean" checked="false" truevalue="-counts" falsevalue=""
11
7308cc546a36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents: 4
diff changeset
55 label="Report the count of features followed by the % coverage for each annotation file"
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
56 help="Default is to report solely the fraction of -i covered by each file." />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
57 <param name="both" type="boolean" checked="false" truevalue="-both" falsevalue=""
11
7308cc546a36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents: 4
diff changeset
58 label="Report the count of features followed by the % coverage for each annotation file"
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
59 help="Default is to report solely the fraction of the input file covered by each file." />
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
60 </inputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
61 <outputs>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
62 <data format="bed" name="output" />
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
63 </outputs>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
64 <tests>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
65 <test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
66 <param name="inputA" value="annotateBed1.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
67 <param name="names_select" value="no" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
68 <param name="beds" value="annotateBed2.bed,annotateBed3.bed,annotateBed4.bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
69 <output name="output" file="annotateBed_result.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
70 </test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
71 </tests>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
72 <help>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
73 <![CDATA[
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
74 **What it does**
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
75
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
76 bedtools annotate, well, annotates one BED/VCF/GFF file with the coverage and number of overlaps observed from multiple other BED/VCF/GFF files. In this way, it allows one to ask to what degree one feature coincides with multiple other feature types with a single command.
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
77
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
78 @REFERENCES@
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
79 ]]>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
80 </help>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
81 <expand macro="citations" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
82 </tool>