Mercurial > repos > iuc > bedtools
annotate getfastaBed.xml @ 26:c0fbce5dc84a 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:20 -0400 |
| parents | a2d4c30ba2f9 |
| children | da6d7bc0a8b0 |
| rev | line source |
|---|---|
| 8 | 1 <tool id="bedtools_getfastabed" name="GetFastaBed" 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>use intervals to extract sequences from a FASTA file</description> |
| 8 | 3 <macros> |
| 4 <import>macros.xml</import> | |
| 5 </macros> | |
| 6 <expand macro="requirements" /> | |
| 7 <expand macro="stdio" /> | |
| 8 <command> | |
| 9 <![CDATA[ | |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
10 #if str( $fasta_source.fasta_source_selector ) == 'history': |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
11 #set $fasta_file = $fasta_source.fasta |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
12 #else |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
13 #set $fasta_file = $fasta_source.fasta_id.fields.path |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
14 #end if |
| 8 | 15 bedtools getfasta |
| 16 $name | |
| 17 $tab | |
| 18 $strand | |
| 19 $split | |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
20 -fi '$fasta_file' |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
21 -bed '$input' |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
22 -fo '$output' |
| 8 | 23 ]]> |
| 24 </command> | |
| 25 <inputs> | |
| 26 <param format="bed,vcf,gff,gff3" name="input" type="data" label="BED/VCF/GFF file" /> | |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
27 <conditional name="fasta_source"> |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
28 <param name="fasta_source_selector" type="select" label="Choose the source for the fasta file"> |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
29 <option value="history" selected="True">History</option> |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
30 <option value="preloaded">Server indexed files</option> |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
31 </param> |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
32 <when value="history"> |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
33 <param name="fasta" format="fasta" type="data" label="Fasta file" /> |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
34 </when> |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
35 <when value="preloaded"> |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
36 <param name="fasta_id" type="select"> |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
37 <options from_data_table="all_fasta" /> |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
38 </param> |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
39 </when> |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
40 </conditional> |
| 8 | 41 <param name="name" type="boolean" checked="false" truevalue="-name" falsevalue="" |
| 42 label="Use the 'name' column in the BED file for the FASTA headers in the output FASTA file" | |
| 43 help="(-name)" /> | |
| 44 <param name="tab" type="boolean" checked="false" truevalue="-tab" falsevalue="" | |
| 45 label="Report extract sequences in a tab-delimited format instead of in FASTA format" | |
| 46 help="(-tab)" /> | |
| 47 <param name="strand" type="boolean" checked="false" truevalue="-s" falsevalue="" | |
| 48 label="Force strandedness" | |
| 49 help="If the feature occupies the antisense strand, the sequence will be reverse complemented. (-s)" /> | |
| 50 <expand macro="split" /> | |
| 51 </inputs> | |
| 52 <outputs> | |
| 53 <data format="fasta" name="output"> | |
| 54 <change_format> | |
| 55 <when input="tab" value="-tab" format="tabular" /> | |
| 56 </change_format> | |
| 57 </data> | |
| 58 </outputs> | |
| 59 <tests> | |
| 60 <test> | |
| 61 <param name="input" value="nucBed1.bed" ftype="bed" /> | |
| 62 <param name="fasta" value="nucBed1.fasta" ftype="fasta" /> | |
| 63 <param name="tab" value="False" /> | |
| 64 <param name="split" value="False" /> | |
| 65 <output name="output" file="getfastaBed_result1.bed" ftype="fasta" /> | |
| 66 </test> | |
| 67 <test> | |
| 68 <param name="input" value="nucBed1.bed" ftype="bed" /> | |
| 69 <param name="fasta" value="nucBed1.fasta" ftype="fasta" /> | |
| 70 <param name="tab" value="True" /> | |
| 71 <param name="split" value="False" /> | |
| 72 <output name="output" file="getfastaBed_result2.tabular" ftype="tabular" /> | |
| 73 </test> | |
| 74 </tests> | |
| 75 <help> | |
| 76 <![CDATA[ | |
| 77 **What it does** | |
| 78 | |
| 79 bedtools getfasta will extract the sequence defined by the coordinates in a BED interval and create a new FASTA entry in the output file for each extracted sequence. By default, the FASTA header for each extracted sequence will be formatted as follows: “>chrom>:<start>-<end>”. | |
| 80 | |
| 81 .. image:: $PATH_TO_IMAGES/getfasta-glyph.png | |
| 82 | |
| 83 .. class:: warningmark | |
| 84 | |
| 85 1. The headers in the input FASTA file must exactly match the chromosome column in the BED file. | |
| 86 | |
| 87 2. You can use the UNIX fold command to set the line width of the FASTA output. For example, fold -w 60 will make each line of the FASTA file have at most 60 nucleotides for easy viewing. | |
| 88 | |
| 89 @REFERENCES@ | |
| 90 ]]> | |
| 91 </help> | |
| 92 <expand macro="citations" /> | |
| 93 </tool> |
