comparison diann.xml @ 1:c9228a392c74 draft

planemo upload for repository https://github.com/vdemichev/DiaNN commit c2518a175b19e8f6b81c64d2699677e82bce9c71
author galaxyp
date Mon, 02 Oct 2023 14:15:30 +0000
parents 9aa386e5f239
children 65134626eb2b
comparison
equal deleted inserted replaced
0:9aa386e5f239 1:c9228a392c74
1 <tool id="diann" name="DIA-NN" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@"> 1 <tool id="diann" name="DIA-NN" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
2 <description>is a software for DIA/SWATH data processing</description> 2 <description>is a software for DIA/SWATH data processing</description>
3 <macros> 3 <macros>
4 <token name="@TOOL_VERSION@">1.8.1</token> 4 <token name="@TOOL_VERSION@">1.8.1</token>
5 <token name="@VERSION_SUFFIX@">0</token> 5 <token name="@VERSION_SUFFIX@">1</token>
6 </macros> 6 </macros>
7 <requirements> 7 <requirements>
8 <container type="docker">biocontainers/diann:v@TOOL_VERSION@_cv1</container> 8 <container type="docker">biocontainers/diann:v@TOOL_VERSION@_cv1</container>
9 </requirements> 9 </requirements>
10 <command detect_errors="exit_code"><![CDATA[ 10 <command detect_errors="exit_code"><![CDATA[
22 ln -s '$infile' './input_data/$infile.element_identifier' && 22 ln -s '$infile' './input_data/$infile.element_identifier' &&
23 #set $infiles_str += '--f ./input_data/' + str($infile.element_identifier) 23 #set $infiles_str += '--f ./input_data/' + str($infile.element_identifier)
24 #end if 24 #end if
25 #end for 25 #end for
26 26
27 #set $fasta_file_str = ''
28 #for $fasta_file in $input.fasta_db_options.fasta
29 #set $fasta_file_str += '--fasta ' + str($fasta_file) + ' '
30 #end for
31
27 diann 32 diann
28 #if len($input.f) > 0 33 #if $input.f != 'None'
29 '$infiles_str' 34 '$infiles_str'
30 #end if 35 #end if
31 --dir ./ 36 --dir ./
32 #if $input.spectral_lib_options.lib 37 #if $input.spectral_lib_options.lib
33 --lib '$input.spectral_lib_options.lib' 38 --lib '$input.spectral_lib_options.lib'
34 #else 39 #else
35 --lib 40 --lib
36 #end if 41 #end if
42 #if $input.f != 'None'
37 --out ./report.tsv 43 --out ./report.tsv
44 #end if
38 #if $input.spectral_lib_options.gen_spec_lib 45 #if $input.spectral_lib_options.gen_spec_lib
39 --out-lib ./report-lib.tsv 46 --out-lib ./report-lib.tsv
40 #end if 47 #end if
41 --threads \${GALAXY_SLOTS:-1} 48 --threads \${GALAXY_SLOTS:-1}
42 --temp ./tmp 49 --temp ./tmp
56 #if $input.spectral_lib_options.ref 63 #if $input.spectral_lib_options.ref
57 --ref '$input.spectral_lib_options.ref' 64 --ref '$input.spectral_lib_options.ref'
58 #end if 65 #end if
59 66
60 ## FASTA database options 67 ## FASTA database options
61 --fasta '$input.fasta_db_options.fasta' 68 #if $fasta_file_str != 'None'
69 '$fasta_file_str'
70 #end if
62 #if $input.fasta_db_options.fasta_filter 71 #if $input.fasta_db_options.fasta_filter
63 --fasta-filter '$input.fasta_db_options.fasta_filter' 72 --fasta-filter '$input.fasta_db_options.fasta_filter'
64 #end if 73 #end if
65 $input.fasta_db_options.fasta_search 74 $input.fasta_db_options.fasta_search
66 75
216 && cp ./report.tsv '$output_report' 225 && cp ./report.tsv '$output_report'
217 #end if 226 #end if
218 227
219 #if $input.spectral_lib_options.gen_spec_lib 228 #if $input.spectral_lib_options.gen_spec_lib
220 && cp ./report-lib.tsv '$output_report_lib' 229 && cp ./report-lib.tsv '$output_report_lib'
230 && cp ./report-lib.tsv.speclib '$output_report_speclib'
231 && cp ./report-lib.predicted.speclib '$output_report_pred_speclib'
221 #end if 232 #end if
222 ]]></command> 233 ]]></command>
223 <inputs> 234 <inputs>
224 <!-- not used: cfg, convert, dir, ext, no_quant_files, out, out_lib, out_lib_copy, prefix, temp, threads, use-quant --> 235 <!-- not used: cfg, convert, dir, ext, no_quant_files, out, out_lib, out_lib_copy, prefix, temp, threads, use-quant -->
225 <section name="input" expanded="true" title="Input files"> 236 <section name="input" expanded="true" title="Input files">
236 <param name="reannotate" type="boolean" truevalue="--reannotate" falsevalue="" checked="false" label="Reannotate the spectral library with protein information from the FASTA database" help="Reannotate the spectral library with protein information from the FASTA database, using the specified digest specificity"/> 247 <param name="reannotate" type="boolean" truevalue="--reannotate" falsevalue="" checked="false" label="Reannotate the spectral library with protein information from the FASTA database" help="Reannotate the spectral library with protein information from the FASTA database, using the specified digest specificity"/>
237 <param name="ref" type="text" optional="true" label="Reference run" help="(Experimental) Specify a special (small) spectral library which will be used exclusively for calibration - this function can speed up calibration in library-free searches"/> 248 <param name="ref" type="text" optional="true" label="Reference run" help="(Experimental) Specify a special (small) spectral library which will be used exclusively for calibration - this function can speed up calibration in library-free searches"/>
238 </section> 249 </section>
239 <section name="fasta_db_options" title="FASTA database"> 250 <section name="fasta_db_options" title="FASTA database">
240 <!-- ToDo fasta: use multiple fasta commands to specify multiple databases --> 251 <!-- ToDo fasta: use multiple fasta commands to specify multiple databases -->
241 <param name="fasta" type="data" format="fasta" label="Sequence database" help="Specify a sequence database in FASTA format"/> 252 <param name="fasta" type="data" format="fasta" multiple="true" label="Sequence database" help="Specify a sequence database in FASTA format"/>
242 <param name="fasta_filter" type="data" format="txt" optional="true" label="Fasta filter" help="Only consider peptides matching the stripped sequences specified in the text file provided, when processing a sequence database"/> 253 <param name="fasta_filter" type="data" format="txt" optional="true" label="Fasta filter" help="Only consider peptides matching the stripped sequences specified in the text file provided, when processing a sequence database"/>
243 <param name="fasta_search" type="boolean" truevalue="--fasta-search" falsevalue="" checked="false" label="Perform in silico digest of the sequence database" help="Instructs DIA-NN to perform an in silico digest of the sequence database"/> 254 <param name="fasta_search" type="boolean" truevalue="--fasta-search" falsevalue="" checked="false" label="Perform in silico digest of the sequence database" help="Instructs DIA-NN to perform an in silico digest of the sequence database"/>
244 </section> 255 </section>
245 </section> 256 </section>
246 <section name="algo_options" title="Algorithm"> 257 <section name="algo_options" title="Algorithm">
397 <param name="verbose" type="integer" min="0" max="4" value="1" label="Verbose level" help="Sets the level of detail of the log"/> 408 <param name="verbose" type="integer" min="0" max="4" value="1" label="Verbose level" help="Sets the level of detail of the log"/>
398 </section> 409 </section>
399 </inputs> 410 </inputs>
400 <outputs> 411 <outputs>
401 <data format="tabular" name="output_report" label="${tool.name} on ${on_string}: report.tsv"> 412 <data format="tabular" name="output_report" label="${tool.name} on ${on_string}: report.tsv">
402 <filter>len(input['f']) > 0</filter> 413 <filter>input['f'] != None</filter>
403 </data> 414 </data>
404 <data format="tabular" name="output_report_lib" label="${tool.name} on ${on_string}: report-lib.tsv"> 415 <data format="tabular" name="output_report_lib" label="${tool.name} on ${on_string}: report-lib.tsv">
416 <filter>input['spectral_lib_options']['gen_spec_lib'] == True</filter>
417 </data>
418 <data format="data" name="output_report_speclib" label="${tool.name} on ${on_string}: report-lib.tsv.speclib">
419 <filter>input['spectral_lib_options']['gen_spec_lib'] == True</filter>
420 </data>
421 <data format="data" name="output_report_pred_speclib" label="${tool.name} on ${on_string}: report-lib.predicted.speclib">
405 <filter>input['spectral_lib_options']['gen_spec_lib'] == True</filter> 422 <filter>input['spectral_lib_options']['gen_spec_lib'] == True</filter>
406 </data> 423 </data>
407 </outputs> 424 </outputs>
408 <tests> 425 <tests>
409 <!-- test for default run --> 426 <!-- test for default run -->
410 <test expect_num_outputs="2"> 427 <test expect_num_outputs="4">
411 <section name="input"> 428 <section name="input">
412 <param name="f" value="small-peakpicking-cwt-allMS.mzML" /> 429 <param name="f" value="small-peakpicking-cwt-allMS.mzML" />
413 <section name="spectral_lib_options"> 430 <section name="spectral_lib_options">
414 <param name="gen_spec_lib" value="True"/> 431 <param name="gen_spec_lib" value="True"/>
415 <param name="predictor" value="True"/> 432 <param name="predictor" value="True"/>
425 </assert_contents> 442 </assert_contents>
426 </output> 443 </output>
427 <output name="output_report_lib" file="report-lib.tsv"> 444 <output name="output_report_lib" file="report-lib.tsv">
428 <assert_contents> 445 <assert_contents>
429 <has_text text="PrecursorMz"/> 446 <has_text text="PrecursorMz"/>
447 </assert_contents>
448 </output>
449 <output name="output_report_speclib" file="report-lib.tsv.speclib" compare="sim_size" delta="100"/>
450 <output name="output_report_pred_speclib" file="report-lib.predicted.speclib" compare="sim_size" delta="100"/>
451 </test>
452 <!-- test for multiple fastas -->
453 <test expect_num_outputs="1">
454 <section name="input">
455 <param name="f" value="small-peakpicking-cwt-allMS.mzML" />
456 <section name="fasta_db_options">
457 <param name="fasta" value="bsa.fasta,bsa2.fasta"/>
458 <param name="fasta_search" value="True"/>
459 </section>
460 </section>
461 <output name="output_report" file="report.tsv">
462 <assert_contents>
463 <has_text text="PG.Normalised"/>
430 </assert_contents> 464 </assert_contents>
431 </output> 465 </output>
432 </test> 466 </test>
433 <!-- test for Bruker data --> 467 <!-- test for Bruker data -->
434 <!-- <test expect_num_outputs="2">--> 468 <!-- <test expect_num_outputs="2">-->