Mercurial > repos > iuc > bedtools
annotate getfastaBed.xml @ 45:a1a923cd89e8 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit d1ee301a39e9830693eedb6ca089456081540f28
author | iuc |
---|---|
date | Thu, 02 Mar 2023 08:52:08 +0000 |
parents | 07e8b80f278c |
children | 64e2edfe7a2c |
rev | line source |
---|---|
42
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
1 <tool id="bedtools_getfastabed" name="bedtools getfasta" version="@TOOL_VERSION@+galaxy1" profile="@PROFILE@"> |
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>use intervals to extract sequences from a FASTA file</description> |
0 | 3 <macros> |
4 <import>macros.xml</import> | |
5 </macros> | |
41
7ab85ac5f64b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 500a03281ea704abc7a16d9af63d67dbdcc5cd0b"
iuc
parents:
40
diff
changeset
|
6 <expand macro="bio_tools" /> |
0 | 7 <expand macro="requirements" /> |
8 <expand macro="stdio" /> | |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
9 <command><![CDATA[ |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
10 #if str($fasta_source.fasta_source_selector) == 'history': |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
11 #set $fasta_file = $fasta_source.fasta |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
12 #else |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
13 #set $fasta_file = $fasta_source.fasta_id.fields.path |
40
a68aa6c1204a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 29bd1be4655cd26052095a49a8e188d2572b703b"
iuc
parents:
39
diff
changeset
|
14 ln -s '${fasta_file}.fai' 'input.fasta.fai' && |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
15 #end if |
40
a68aa6c1204a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 29bd1be4655cd26052095a49a8e188d2572b703b"
iuc
parents:
39
diff
changeset
|
16 ln -s '$fasta_file' 'input.fasta' && |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
17 bedtools getfasta |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
18 $name |
42
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
19 $nameOnly |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
20 $tab |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
21 $strand |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
22 $split |
40
a68aa6c1204a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 29bd1be4655cd26052095a49a8e188d2572b703b"
iuc
parents:
39
diff
changeset
|
23 -fi 'input.fasta' |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
24 -bed '$input' |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
25 -fo '$output' |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
26 ]]></command> |
0 | 27 <inputs> |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
28 <param name="input" argument="-bed" type="data" format="@STD_BEDTOOLS_INPUTS@" label="@STD_BEDTOOLS_INPUT_LABEL@ file" /> |
10
c78cf6fe3018
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 44bebb8a97d64015cbba59f0663e2541035112b6
iuc
parents:
4
diff
changeset
|
29 <conditional name="fasta_source"> |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
30 <param name="fasta_source_selector" type="select" label="Choose the source for the FASTA file"> |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
31 <option value="history" selected="true">History</option> |
10
c78cf6fe3018
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 44bebb8a97d64015cbba59f0663e2541035112b6
iuc
parents:
4
diff
changeset
|
32 <option value="preloaded">Server indexed files</option> |
c78cf6fe3018
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 44bebb8a97d64015cbba59f0663e2541035112b6
iuc
parents:
4
diff
changeset
|
33 </param> |
c78cf6fe3018
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 44bebb8a97d64015cbba59f0663e2541035112b6
iuc
parents:
4
diff
changeset
|
34 <when value="history"> |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
35 <param name="fasta" argument="-fi" type="data" format="fasta" label="FASTA file" /> |
10
c78cf6fe3018
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 44bebb8a97d64015cbba59f0663e2541035112b6
iuc
parents:
4
diff
changeset
|
36 </when> |
c78cf6fe3018
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 44bebb8a97d64015cbba59f0663e2541035112b6
iuc
parents:
4
diff
changeset
|
37 <when value="preloaded"> |
c78cf6fe3018
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 44bebb8a97d64015cbba59f0663e2541035112b6
iuc
parents:
4
diff
changeset
|
38 <param name="fasta_id" type="select"> |
23
13400f3c3ec5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6418f2e58def1a81b3aa7c04cb5dc33decea1a96
iuc
parents:
11
diff
changeset
|
39 <options from_data_table="fasta_indexes" /> |
11
7308cc546a36
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
10
diff
changeset
|
40 </param> |
10
c78cf6fe3018
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 44bebb8a97d64015cbba59f0663e2541035112b6
iuc
parents:
4
diff
changeset
|
41 </when> |
c78cf6fe3018
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 44bebb8a97d64015cbba59f0663e2541035112b6
iuc
parents:
4
diff
changeset
|
42 </conditional> |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
43 <param argument="-name" type="boolean" truevalue="-name" falsevalue="" checked="false" |
42
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
44 label="Use the 'name' column in the BED file and the coordinates for the FASTA headers in the output FASTA file" /> |
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
45 <param argument="-nameOnly" type="boolean" truevalue="-nameOnly" falsevalue="" checked="false" |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
46 label="Use the 'name' column in the BED file for the FASTA headers in the output FASTA file" /> |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
47 <param argument="-tab" type="boolean" truevalue="-tab" falsevalue="" checked="false" |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
48 label="Report extract sequences in a tab-delimited format instead of in FASTA format" /> |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
49 <param name="strand" argument="-s" type="boolean" truevalue="-s" falsevalue="" checked="false" |
1 | 50 label="Force strandedness" |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
51 help="If the feature occupies the antisense strand, the sequence will be reverse complemented" /> |
1 | 52 <expand macro="split" /> |
0 | 53 </inputs> |
54 <outputs> | |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
55 <data name="output" format="fasta"> |
1 | 56 <change_format> |
57 <when input="tab" value="-tab" format="tabular" /> | |
58 </change_format> | |
59 </data> | |
0 | 60 </outputs> |
1 | 61 <tests> |
62 <test> | |
63 <param name="input" value="nucBed1.bed" ftype="bed" /> | |
64 <param name="fasta" value="nucBed1.fasta" ftype="fasta" /> | |
65 <param name="tab" value="False" /> | |
66 <param name="split" value="False" /> | |
42
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
67 <param name="nameOnly" value="False" /> |
1 | 68 <output name="output" file="getfastaBed_result1.bed" ftype="fasta" /> |
69 </test> | |
70 <test> | |
71 <param name="input" value="nucBed1.bed" ftype="bed" /> | |
72 <param name="fasta" value="nucBed1.fasta" ftype="fasta" /> | |
73 <param name="tab" value="True" /> | |
74 <param name="split" value="False" /> | |
42
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
75 <param name="nameOnly" value="False" /> |
1 | 76 <output name="output" file="getfastaBed_result2.tabular" ftype="tabular" /> |
77 </test> | |
42
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
78 <test> |
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
79 <param name="input" value="nucBed1.bed" ftype="bed" /> |
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
80 <param name="fasta" value="nucBed1.fasta" ftype="fasta" /> |
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
81 <param name="tab" value="False" /> |
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
82 <param name="split" value="False" /> |
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
83 <param name="name" value="True" /> |
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
84 <output name="output" file="getfastaBed_result3.bed" ftype="fasta" /> |
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
85 </test> |
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
86 <test> |
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
87 <param name="input" value="nucBed2.bed" ftype="bed" /> |
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
88 <param name="fasta" value="nucBed1.fasta" ftype="fasta" /> |
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
89 <param name="tab" value="False" /> |
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
90 <param name="split" value="False" /> |
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
91 <param name="nameOnly" value="True" /> |
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
92 <output name="output" file="getfastaBed_result4.bed" ftype="fasta" /> |
841fb4dc3ab3
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 4046c1da68a09c7a3c275f6fe890ec71470fd74d"
iuc
parents:
41
diff
changeset
|
93 </test> |
43
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
42
diff
changeset
|
94 <test> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
42
diff
changeset
|
95 <param name="input" value="nucBed2.bed" ftype="bed" /> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
42
diff
changeset
|
96 <param name="fasta_source_selector" value="preloaded"/> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
42
diff
changeset
|
97 <param name="fasta_id" value="testid" /> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
42
diff
changeset
|
98 <param name="tab" value="False" /> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
42
diff
changeset
|
99 <param name="split" value="False" /> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
42
diff
changeset
|
100 <param name="nameOnly" value="True" /> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
42
diff
changeset
|
101 <output name="output" file="getfastaBed_result4.bed" ftype="fasta" /> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
42
diff
changeset
|
102 </test> |
1 | 103 </tests> |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
104 <help><![CDATA[ |
0 | 105 **What it does** |
106 | |
1 | 107 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>”. |
0 | 108 |
109 .. image:: $PATH_TO_IMAGES/getfasta-glyph.png | |
110 | |
111 .. class:: warningmark | |
112 | |
113 1. The headers in the input FASTA file must exactly match the chromosome column in the BED file. | |
114 | |
115 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. | |
116 | |
117 @REFERENCES@ | |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
118 ]]></help> |
0 | 119 <expand macro="citations" /> |
120 </tool> |