Mercurial > repos > thanhlv > data_manager_build_ariba_database
comparison data_manager/ariba_database_builder.xml @ 0:a8bb47cc7625 draft
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
| author | thanhlv |
|---|---|
| date | Tue, 08 Jan 2019 11:04:25 -0500 |
| parents | |
| children | 204f94dc1c2c |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:a8bb47cc7625 |
|---|---|
| 1 <?xml version="1.0"?> | |
| 2 <tool id="ariba_database_builder" name="ARIBA build database" tool_type="manage_data" version="@VERSION@"> | |
| 3 <description>database builder</description> | |
| 4 <expand macro="requirements" /> | |
| 5 <version_command>ariba version | head head -n 1</version_command> | |
| 6 <command detect_errors="exit_code"> | |
| 7 <![CDATA[ | |
| 8 #if str($library.lib_type) == "curated" | |
| 9 #set $library_list = str($library.curated).split(',') | |
| 10 #for $library_ in $library_list: | |
| 11 #if str($library_) != 'None': | |
| 12 ariba getref '$library_' _tmp_db && ariba prepareref -f _tmp_db.fa -m _tmp_db.tsv '$library_' && | |
| 13 #end if | |
| 14 #end for | |
| 15 #end if | |
| 16 | |
| 17 #if str($library.lib_type) == "fasta" | |
| 18 #if str($library).fasta != 'None': | |
| 19 ariba prepareref --all_coding '$coding' -f '$library.fasta' '$library.db_name' | |
| 20 #end if | |
| 21 #end if | |
| 22 | |
| 23 python '$__tool_directory__/ariba_database_builder.py' --out '${out_file}' | |
| 24 ]]> | |
| 25 </command> | |
| 26 <inputs> | |
| 27 <conditional name="library"> | |
| 28 <param name="lib_type" type="select" label="Input reads type or collection" help="Select a curated database or a fasta from the history"> | |
| 29 <option value="curated" selected="true">Curated Database</option> | |
| 30 <option value="fasta">A fasta file</option> | |
| 31 </param> | |
| 32 <when value="curated"> | |
| 33 <param name="curated" type="select" multiple="true" label="Select partial library to download"> | |
| 34 <option value="card">CARD</option> | |
| 35 <option value="resfinder">Resfinder</option> | |
| 36 <option value="plasmidfinder">Plasmidfinder</option> | |
| 37 <option value="megares">Megares</option> | |
| 38 <option value="argannot">Argannot</option> | |
| 39 <option value="vfdb_core">vfdb_core</option> | |
| 40 <option value="vfdb_full">vfdb_full</option> | |
| 41 <option value="virulencefinder">virulencefinder</option> | |
| 42 </param> | |
| 43 </when> | |
| 44 <when value="fasta"> | |
| 45 <param name="fasta" type="data" format="fasta" optional="false" /> | |
| 46 <param name="db_name" type="text" label="DB name" help = "The DB name should include no space and special characters" /> | |
| 47 <param name="coding" type="boolean" truevalue="yes" falsevalue="no" checked="False" label="Coding sequence?" /> | |
| 48 </when> | |
| 49 </conditional> | |
| 50 </inputs> | |
| 51 <outputs> | |
| 52 <data name="out_file" format="data_manager_json" /> | |
| 53 </outputs> | |
| 54 <help> | |
| 55 </help> | |
| 56 <citations> | |
| 57 <citation type="doi">110.1099/mgen.0.000131</citation> | |
| 58 </citations> | |
| 59 </tool> |
