comparison retrieve_bold.xml @ 0:0608a259f2da draft default tip

planemo upload for repository https://github.com/wpearman1996/MARES_database_pipeline/tree/master commit 853190e24a7acfe02bbfb1c392ac55f9b9a9e7da
author ecology
date Fri, 21 Jun 2024 08:55:50 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0608a259f2da
1 <tool id="retrieve_bold" name="Retrieve bold" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05">
2 <description>Functions to search in Bold and download the available sequences of each subtaxa (get_fasta)</description>
3 <macros>
4 <token name="@TOOL_VERSION@">1.3.0</token>
5 <token name="@VERSION_SUFFIX@">0</token>
6 </macros>
7 <requirements>
8 <requirement type="package" version="4.3.3">r-base</requirement>
9 <requirement type="package" version="@TOOL_VERSION@">r-bold</requirement>
10 </requirements>
11 <command detect_errors="exit_code"><![CDATA[
12
13 Rscript
14 '$__tool_directory__/retrieve_bold.R' 1>Log.txt
15 ${taxa_list}
16 ${animal_marker.marker}
17 ${vegetal_marker.marker}
18 ${bacterial_marker.marker}
19 ${fungal_marker.marker}
20 ${protist_marker.marker}
21
22 ]]></command>
23 <inputs>
24 <param name ="taxa_list" type="data" format="txt"
25 label="" help="Provide a taxa list from which sequences will be extracted in the BOLD database"/>
26 <section name="animal_marker" title= "Animal marker" expanded="false">
27 <param name ="marker" type="select" checked="true" multiple="true"
28 label="" help="Provide a marker to search in the BOLD database">
29 <option value="12S">12S</option>
30 <option value="16S">16S</option>
31 <option value="18S">18S</option>
32 <option value="28S">28S</option>
33 <option value="COI-3P">CO1-3P</option>
34 <option value="COI-5P">CO1-5P</option>
35 <option value="COII">COII</option>
36 <option value="COXIII">COXIII</option>
37 <option value="CYTB">Cytb</option>
38 <option value="H3">H3</option>
39 <option value="ND1">ND1</option>
40 <option value="ND2">ND2</option>
41 <option value="ND3">ND3</option>
42 <option value="ND4">ND4</option>
43 <option value="ND4L">ND4L</option>
44 <option value="ND5-0">ND5-0</option>
45 <option value="ND6">ND6</option>
46 </param>
47 </section>
48 <section name="vegetal_marker" title= "Vegetal marker" expanded="false">
49 <param name ="marker" type="select" checked="true" multiple="true"
50 label="" help="Provide a marker to search in the BOLD database">
51 <option value="atpF-atpH">atpF-atpH</option>
52 <option value="ITS">ITS</option>
53 <option value="ITS2">ITS2</option>
54 <option value="matK">matK</option>
55 <option value="matK-like">matK like</option>
56 <option value="trnH-psbA">trnH-psbA</option>
57 <option value="trnL">trnL</option>
58 <option value="trnL-F">trnL-F</option>
59 <option value="psbK-psbI">psbK-psbI</option>
60 <option value="rbcL">rbcL</option>
61 <option value="rbcLa">rbcLa</option>
62 <option value="rpoC1">rpoC1</option>
63 <option value="rpoB">rpoB</option>
64
65 </param>
66 </section>
67 <section name="bacterial_marker" title= "Bacterial marker" expanded="false">
68 <param name ="marker" type="select" checked="true" multiple="true"
69 label="" help="Provide a marker to search in the BOLD database">
70 <option value="16S">16S</option>
71 <option value="COI-3P">CO1-3P</option>
72 <option value="COI-5P">CO1-5P</option>
73 <option value="CPN60">cpnN60</option>
74 <option value="GND">Gnd</option>
75 <option value="RPOB">rpoB</option>
76 <option value="RIF">RIF</option>
77 <option value="TUF">Tuf</option>
78 </param>
79 </section>
80 <section name="fungal_marker" title= "Fungal marker" expanded="false">
81 <param name ="marker" type="select" checked="true" multiple="true"
82 label="" help="Provide a marker to search in the BOLD database">
83 <option value="5-8S">5-8S</option>
84 <option value="18S">18S</option>
85 <option value="18S-V4">18S-V4</option>
86 <option value="28S">28S</option>
87 <option value="atp6">atp6</option>
88 <option value="Beta-tubulin">Beta tubulin</option>
89 <option value="COI-3P">CO1-3P</option>
90 <option value="COI-5P">CO1-5P</option>
91 <option value="COII">COII</option>
92 <option value="COXIII">COXIII</option>
93 <option value="EF1-alpha">EF1-alpha</option>
94 <option value="ITS">ITS</option>
95 <option value="ITS1">ITS1</option>
96 <option value="ITS2">ITS2</option>
97 <option value="NBC-COI-5P">NBC-COI-5P</option>
98 <option value="RPB1">RPB1</option>
99 <option value="RPB2">RPB2</option>
100 <option value="TEF1-alpha">TEF1 alpha</option>
101 </param>
102 </section>
103 <section name="protist_marker" title= "Protist marker" expanded="false">
104 <param name ="marker" type="select" checked="true" multiple="true"
105 label="" help="Provide a marker to search in the BOLD database">
106 <option value="18S">18S</option>
107 <option value="23S">23S</option>
108 <option value="28S">28S</option>
109 <option value="COI-3P">CO1-3P</option>
110 <option value="COI-5P">CO1-5P</option>
111 <option value="ITS">ITS</option>
112 <option value="RBCL">rbcL</option>
113 </param>
114 </section>
115 </inputs>
116 <outputs>
117 <collection name="datasets_output" type="list"
118 label="Datasets list">
119 <discover_datasets pattern="(?P&lt;designation&gt;.+)\.fasta" format="fasta" />
120 </collection>
121 <data name="Log" from_work_dir="Log.txt" format="txt" label="Log message"/>
122 </outputs>
123 <tests>
124 <test>
125 <param name ="taxa_list" value="taxa.list" />
126 <section name="animal_marker">
127 <param name="marker" value="12S,16S,18S,28S,COI-3P,COI-5P,COII,COXIII,CYTB,H3,ND1,ND2,ND3,ND4,ND4L,ND5-0,ND6"/>
128 </section>
129 <section name="vegetal_marker">
130 <param name="marker" value="atpF-atpH,ITS,ITS2,matK,matK-like,trnH-psbA,trnL,trnL-F,psbK-psbI,rbcL,rbcLa,rpoC1,rpoB"/>
131 </section>
132 <section name="bacterial_marker">
133 <param name="marker" value="16S,COI-3P,COI-5P,CPN60,GND,RPOB,RIF,TUF"/>
134 </section>
135 <section name="fungal_marker">
136 <param name="marker" value="5-8S,18S,18S-V4,28S,atp6,Beta-tubulin,COI-3P,COI-5P,COII,COXIII,EF1-alpha,ITS,ITS1,ITS2,NBC-COI-5P,RPB1,RPB2,TEF1-alpha"/>
137 </section>
138 <section name="protist_marker">
139 <param name="marker" value="18S,23S,28S,COI-3P,COI-5P,ITS,RBCL"/>
140 </section>
141 <output name="Log" file="Log_test1.txt" compare="diff"/>
142 <output_collection name="datasets_output" type="list" count="3">
143 <element name="Chitonidaebold" file="Chitonidaebold1.fasta" ftype="fasta"/>
144 <element name="Ischnochitonidaebold" file="Ischnochitonidaebold.fasta" ftype="fasta"/>
145 <element name="Leptochitonidaebold" file="Leptochitonidaebold.fasta" ftype="fasta"/>
146 </output_collection>
147 </test>
148 <test>
149 <param name ="taxa_list" value="taxa.list" />
150 <section name="animal_marker">
151 <param name="marker" value="None"/>
152 </section>
153 <section name="vegetal_marker">
154 <param name="marker" value="None"/>
155 </section>
156 <section name="bacterial_marker">
157 <param name="marker" value="None"/>
158 </section>
159 <section name="fungal_marker">
160 <param name="marker" value="None"/>
161 </section>
162 <section name="protist_marker">
163 <param name="marker" value="None"/>
164 </section>
165 <output name="Log" file="Log_test2.txt" compare="diff"/>
166 <output_collection name="datasets_output" type="list" count="0">
167 </output_collection>
168 </test>
169 <test>
170 <param name ="taxa_list" value="taxa.list" />
171 <section name="animal_marker">
172 <param name="marker" value="CYTB"/>
173 </section>
174 <section name="vegetal_marker">
175 <param name="marker" value="None"/>
176 </section>
177 <section name="bacterial_marker">
178 <param name="marker" value="None"/>
179 </section>
180 <section name="fungal_marker">
181 <param name="marker" value="Beta-tubulin,RPB2"/>
182 </section>
183 <section name="protist_marker">
184 <param name="marker" value="None"/>
185 </section>
186 <output name="Log" file="Log_test3.txt" compare="diff"/>
187 <output_collection name="datasets_output" type="list" count="1">
188 <element name="Chitonidaebold" file="Chitonidaebold2.fasta" ftype="fasta"/>
189 </output_collection>
190 </test>
191 </tests>
192 <help><![CDATA[
193 .. class:: infomark
194
195 **What it does**
196
197 This tool helps you get one or multiple list of fasta sequences from BOLD corresponding to the taxa and markers you have specified :
198 BOLD Systems <https://boldsystems.org/>
199
200 ____
201
202
203 .. class:: infomark
204
205 **Input**
206 A list of taxa in a txt format file and a selection of markers (one or more) from different organisms. The categories only exist to help users and diminish complexity. All markers selected will be researched for all provided taxa, therefore you don't need to specify the same marker in multiple categories.
207
208 ____
209
210
211 .. class:: infomark
212
213
214 **Output**
215
216 Each "Taxa" and "Markers" request will produce a fasta file, all files will be available in a collection. This tool will also produce a log message specifying the available markers for each taxa.
217
218 .. class:: warning
219
220 **If no marker are selected or the markers selected are not found for the taxa, the tool will not produce a file. If you need, you can check the markers available for the different taxa in the "Log message" produced**
221
222
223 ]]></help>
224 <citations>
225 <citation type="doi">
226 10.1038/s41597-020-0549-9
227 </citation>
228 </citations>
229 </tool>