Mercurial > repos > iuc > bedtools
annotate annotateBed.xml @ 30:374e84779e62 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:11:28 -0400 |
| parents | c0fbce5dc84a |
| children | d279800f4ff9 |
| rev | line source |
|---|---|
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
18
diff
changeset
|
1 <tool id="bedtools_annotatebed" name="AnnotateBed" version="@WRAPPER_VERSION@.0"> |
|
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>annotate coverage of features from multiple files</description> |
| 8 | 3 <macros> |
| 4 <import>macros.xml</import> | |
| 5 </macros> | |
| 6 <expand macro="requirements" /> | |
| 7 <expand macro="stdio" /> | |
| 8 <command> | |
| 9 <![CDATA[ | |
|
18
5efc48568d8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit e5a5ad091c621348dc6ce2df861475ebc54a380e
iuc
parents:
17
diff
changeset
|
10 |
| 8 | 11 bedtools annotate |
| 12 -i "${inputA}" | |
| 13 #if $names.names_select == 'yes': | |
| 14 -files | |
| 15 #for $bed in $names.beds: | |
| 16 "${bed.input}" | |
| 17 #end for | |
| 18 | |
| 19 -names | |
| 20 #for $bed in $names.beds: | |
| 21 "${bed.inputName}" | |
| 22 #end for | |
| 23 #else: | |
| 24 #set files = '" "'.join( [ str( $file ) for $file in $names.beds ] ) | |
| 25 -files "${files}" | |
|
18
5efc48568d8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit e5a5ad091c621348dc6ce2df861475ebc54a380e
iuc
parents:
17
diff
changeset
|
26 #set names = '" "'.join( [ str( $name.display_name ) for $name in $names.beds ] ) |
|
5efc48568d8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit e5a5ad091c621348dc6ce2df861475ebc54a380e
iuc
parents:
17
diff
changeset
|
27 -names "${names}" |
| 8 | 28 #end if |
| 29 $strand | |
| 30 $counts | |
| 31 $both | |
| 32 > "${output}" | |
| 33 ]]> | |
| 34 </command> | |
| 35 <inputs> | |
| 36 <param format="bed,vcf,gff,gff3" name="inputA" type="data" label="BED/VCF/GFF file" /> | |
| 37 <!-- Additional files, if the user needs more --> | |
| 38 <conditional name="names"> | |
| 39 <param name="names_select" type="select" label="Specify names for each file"> | |
| 40 <option value="no" selected="True">No</option> | |
| 41 <option value="yes">Yes</option> | |
| 42 </param> | |
| 43 <when value="yes"> | |
| 44 <repeat name="beds" title="Add BED files and names" > | |
| 45 <param name="input" format="bed" type="data" label="BED file" /> | |
| 46 <param name="inputName" type="text" label="Name of the file" /> | |
| 47 </repeat> | |
| 48 </when> | |
| 49 <when value="no"> | |
| 50 <param name="beds" format="bed" multiple="True" type="data" label="BED file" /> | |
| 51 </when> | |
| 52 </conditional> | |
| 53 <expand macro="strand2" /> | |
| 54 <param name="counts" type="boolean" checked="false" truevalue="-counts" falsevalue="" | |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
18
diff
changeset
|
55 label="Report the count of features followed by the % coverage for each annotation file" |
| 8 | 56 help="Default is to report solely the fraction of -i covered by each file." /> |
| 57 <param name="both" type="boolean" checked="false" truevalue="-both" falsevalue="" | |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
18
diff
changeset
|
58 label="Report the count of features followed by the % coverage for each annotation file" |
| 8 | 59 help="Default is to report solely the fraction of the input file covered by each file." /> |
| 60 </inputs> | |
| 61 <outputs> | |
| 62 <data format="bed" name="output" /> | |
| 63 </outputs> | |
| 64 <tests> | |
| 65 <test> | |
| 66 <param name="inputA" value="annotateBed1.bed" ftype="bed" /> | |
| 67 <param name="names_select" value="no" /> | |
| 68 <param name="beds" value="annotateBed2.bed,annotateBed3.bed,annotateBed4.bed" /> | |
| 69 <output name="output" file="annotateBed_result.bed" ftype="bed" /> | |
| 70 </test> | |
| 71 </tests> | |
| 72 <help> | |
| 73 <![CDATA[ | |
| 74 **What it does** | |
| 75 | |
| 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. | |
| 77 | |
| 78 @REFERENCES@ | |
| 79 ]]> | |
| 80 </help> | |
| 81 <expand macro="citations" /> | |
| 82 </tool> |
