comparison genenotebook_build.xml @ 2:5a6050937cb9 draft

planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/genenotebook commit ec3c633a0751bb9e253bcd77fea425180c9a0014
author gga
date Fri, 14 Apr 2023 10:13:56 +0000
parents f415e44e71de
children 1d59e907fa98
comparison
equal deleted inserted replaced
1:f415e44e71de 2:5a6050937cb9
3 <description></description> 3 <description></description>
4 <macros> 4 <macros>
5 <import>macros.xml</import> 5 <import>macros.xml</import>
6 </macros> 6 </macros>
7 <expand macro="requirements" /> 7 <expand macro="requirements" />
8 <command detect_errors="aggressive"><![CDATA[ 8 <command detect_errors="exit_code"><![CDATA[
9 @START_GNB@ 9 @START_GNB@
10 10
11 #for genome in $genomes: 11 #for genome in $genomes:
12 genoboo add genome @CONNECT_INFO@ --name '${genome.name}' ${genome.public} '${genome.genome}'; 12 genoboo add genome @CONNECT_INFO@ --name '${genome.name}' ${genome.public} '${genome.genome}';
13 13
38 38
39 #if $annot.eggnog: 39 #if $annot.eggnog:
40 genoboo add eggnog @CONNECT_INFO@ '${annot.eggnog}'; 40 genoboo add eggnog @CONNECT_INFO@ '${annot.eggnog}';
41 #end if 41 #end if
42 42
43 #if $annot.blast_cond.blast_choice == "yes": 43 #if $annot.blast_cond.blast_choice == "blast":
44 genoboo add blast @CONNECT_INFO@ 44 genoboo add blast @CONNECT_INFO@
45 --format 'xml' 45 --format 'xml'
46 --algorithm '${annot.blast_cond.algorithm}' 46 --algorithm '${annot.blast_cond.algorithm}'
47 --matrix '${annot.blast_cond.matrix}' 47 --matrix '${annot.blast_cond.matrix}'
48 --database '${annot.blast_cond.database}' 48 --database '${annot.blast_cond.database}'
49 '${annot.blast_cond.blast}'; 49 '${annot.blast_cond.blast}';
50 #elif $annot.blast_cond.blast_choice == "diamond":
51 genoboo add diamond @CONNECT_INFO@
52 --format 'xml'
53 --algorithm '${annot.blast_cond.algorithm}'
54 --matrix '${annot.blast_cond.matrix}'
55 --database '${annot.blast_cond.database}'
56 '${annot.blast_cond.diamond}';
50 #end if 57 #end if
51 58
52 #for exp in $annot.expression: 59 #for exp in $annot.expression:
53 genoboo add transcriptome @CONNECT_INFO@ 60 genoboo add transcriptome @CONNECT_INFO@
54 --sample-name '${exp.sample_name}' 61 --sample-name '${exp.sample_name}'
92 <param name="eggnog" label="EggNOG-Mapper results" optional="true" type="data" format="tsv" /> 99 <param name="eggnog" label="EggNOG-Mapper results" optional="true" type="data" format="tsv" />
93 100
94 <conditional name="blast_cond"> 101 <conditional name="blast_cond">
95 <param name="blast_choice" type="select" label="Import Blast or Diamond results"> 102 <param name="blast_choice" type="select" label="Import Blast or Diamond results">
96 <option value="no" selected="true">No</option> 103 <option value="no" selected="true">No</option>
97 <option value="yes">Yes</option> 104 <option value="blast">Blast</option>
105 <option value="diamond">Diamond</option>
98 </param> 106 </param>
99 <when value="no" /> 107 <when value="no" />
100 <when value="yes"> 108 <when value="blast">
101 <param name="blast" label="Blast or Diamond results" optional="false" type="data" format="xml" /> 109 <param name="blast" label="Blast results (xml)" optional="false" type="data" format="xml" />
110 <param argument="--algorithm" label="Algorithm" optional="false" type="text" help="e.g. blastx, blastp" />
111 <param argument="--matrix" label="Matrix" optional="false" type="text" help="e.g. BLOSUM90, BLOSUM80, PAM100" />
112 <param argument="--database" label="database" optional="false" type="text" help="e.g. Non-reundant protein sequences (nr)" />
113 </when>
114 <when value="diamond">
115 <param name="diamond" label="Diamond results (xml)" optional="false" type="data" format="xml" />
102 <param argument="--algorithm" label="Algorithm" optional="false" type="text" help="e.g. blastx, blastp" /> 116 <param argument="--algorithm" label="Algorithm" optional="false" type="text" help="e.g. blastx, blastp" />
103 <param argument="--matrix" label="Matrix" optional="false" type="text" help="e.g. BLOSUM90, BLOSUM80, PAM100" /> 117 <param argument="--matrix" label="Matrix" optional="false" type="text" help="e.g. BLOSUM90, BLOSUM80, PAM100" />
104 <param argument="--database" label="database" optional="false" type="text" help="e.g. Non-reundant protein sequences (nr)" /> 118 <param argument="--database" label="database" optional="false" type="text" help="e.g. Non-reundant protein sequences (nr)" />
105 </when> 119 </when>
106 </conditional> 120 </conditional>
164 </repeat> 178 </repeat>
165 <output name="gnb_db" file="output/genome_annot_ips.tar.bz2" compare="sim_size" /> 179 <output name="gnb_db" file="output/genome_annot_ips.tar.bz2" compare="sim_size" />
166 <assert_stdout> 180 <assert_stdout>
167 <has_text text="addGenome succesfully inserted 1 elements" /> 181 <has_text text="addGenome succesfully inserted 1 elements" />
168 <has_text text="addAnnotation succesfully inserted 5 elements" /> 182 <has_text text="addAnnotation succesfully inserted 5 elements" />
169 <has_text text="addInterproscan succesfully inserted 5 elements" /> 183 <has_text text="addInterproscan succesfully inserted 3 elements" />
170 </assert_stdout> 184 </assert_stdout>
171 </test> 185 </test>
172 <test> 186 <test>
173 <param name="existing" value="output/genome.tar.bz2" /> 187 <param name="existing" value="output/genome.tar.bz2" />
174 <repeat name="genomes"> 188 <repeat name="genomes">
192 </repeat> 206 </repeat>
193 <output name="gnb_db" file="output/genome_annot_ips_en.tar.bz2" compare="sim_size" delta="15000" /> 207 <output name="gnb_db" file="output/genome_annot_ips_en.tar.bz2" compare="sim_size" delta="15000" />
194 <assert_stdout> 208 <assert_stdout>
195 <has_text text="addGenome succesfully inserted 1 elements" /> 209 <has_text text="addGenome succesfully inserted 1 elements" />
196 <has_text text="addAnnotation succesfully inserted 5 elements" /> 210 <has_text text="addAnnotation succesfully inserted 5 elements" />
197 <has_text text="addInterproscan succesfully inserted 5 elements" /> 211 <has_text text="addInterproscan succesfully inserted 3 elements" />
198 <has_text text="addEggnog succesfully inserted 4 elements" /> 212 <has_text text="addEggnog succesfully inserted 4 elements" />
199 </assert_stdout> 213 </assert_stdout>
200 </test> 214 </test>
201 <test> 215 <test>
202 <repeat name="genomes"> 216 <repeat name="genomes">
210 <param name="re_protein_capture" value="^(.*?)-T([0-9]+)$" /> 224 <param name="re_protein_capture" value="^(.*?)-T([0-9]+)$" />
211 <param name="re_protein" value="$1-P$2" /> 225 <param name="re_protein" value="$1-P$2" />
212 </conditional> 226 </conditional>
213 227
214 <conditional name="blast_cond"> 228 <conditional name="blast_cond">
215 <param name="blast_choice" value="yes"/> 229 <param name="blast_choice" value="blast"/>
216 <param name="blast" value="blast.xml" ftype="xml" /> 230 <param name="blast" value="blast.xml" ftype="xml" />
217 <param name="algorithm" value="blastx" /> 231 <param name="algorithm" value="blastx" />
218 <param name="matrix" value="BLOSUM80" /> 232 <param name="matrix" value="BLOSUM80" />
219 <param name="database" value="Non-reundant garbage (nrg)" /> 233 <param name="database" value="Non-reundant garbage (nrg)" />
220 </conditional> 234 </conditional>
233 <has_text text="addAnnotation succesfully inserted 5 elements" /> 247 <has_text text="addAnnotation succesfully inserted 5 elements" />
234 <has_text text="addSimilarSequence succesfully inserted 1 elements" /> 248 <has_text text="addSimilarSequence succesfully inserted 1 elements" />
235 <has_text text="addTranscriptome succesfully inserted 1 elements" /> 249 <has_text text="addTranscriptome succesfully inserted 1 elements" />
236 </assert_stdout> 250 </assert_stdout>
237 </test> 251 </test>
252 <test>
253 <repeat name="genomes">
254 <param name="name" value="Test org 2" />
255 <param name="genome" value="genome.fa" />
256 <repeat name="annots">
257 <param name="annotation" value="annot.gff" />
258
259 <conditional name="prot_naming">
260 <param name="method" value="regex"/>
261 <param name="re_protein_capture" value="^(.*?)-T([0-9]+)$" />
262 <param name="re_protein" value="$1-P$2" />
263 </conditional>
264
265 <conditional name="blast_cond">
266 <param name="blast_choice" value="diamond"/>
267 <param name="diamond" value="blast.xml" ftype="xml" />
268 <param name="algorithm" value="blastx" />
269 <param name="matrix" value="BLOSUM62" />
270 <param name="database" value="Non-reundant garbage (nrg)" />
271 </conditional>
272
273 <repeat name="expression">
274 <param name="counts" value="exp.tsv" ftype="tsv" />
275 <param name="sample_name" value="Sample1_rep1" />
276 <param name="replica_group" value="Sample1" />
277 <param name="sample_description" value="Pointless experiment" />
278 </repeat>
279 </repeat>
280 </repeat>
281 <output name="gnb_db" file="output/genome_annot_ips_en_bl_exp.tar.bz2" compare="sim_size" delta="15000" />
282 <assert_stdout>
283 <has_text text="addGenome succesfully inserted 1 elements" />
284 <has_text text="addAnnotation succesfully inserted 5 elements" />
285 <has_text text="addSimilarSequence succesfully inserted 1 elements" />
286 <has_text text="addTranscriptome succesfully inserted 1 elements" />
287 </assert_stdout>
288 </test>
238 </tests> 289 </tests>
239 <help><![CDATA[ 290 <help><![CDATA[
240 Build a GeneNoteBook by loading data into a MongoDB database. The resulting dataset can then be displayed with the "View a GeneNoteBook" interactive tool (to be written). 291 Build a GeneNoteBook by loading data into a MongoDB database. The resulting dataset can then be displayed with the "View a GeneNoteBook" interactive tool (to be written).
241 292
242 The resulting GeneNoteBook will contain the default user accounts created on the first launch. You are responsible to change them if you ever want to put your result online. 293 The resulting GeneNoteBook will contain the default user accounts created on the first launch. You are responsible to change them if you ever want to put your result online.