Mercurial > repos > devteam > data_manager_build_kraken_database
view data_manager/kraken_database_builder.xml @ 10:1e701a731d48 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 02d2967f77e3fa5a18aea63dc84aa9ab418dc165"
author | iuc |
---|---|
date | Sun, 22 Nov 2020 12:41:47 +0000 |
parents | c668a45d8a55 |
children |
line wrap: on
line source
<?xml version="1.0"?> <tool id="kraken_database_builder" name="Kraken" tool_type="manage_data" version="1.1.1"> <description>database builder</description> <requirements> <requirement type="package" version="1.1.1">kraken</requirement> </requirements> <version_command>kraken -version | awk '{print $NF}'</version_command> <command detect_errors="exit_code"> <![CDATA[ #set $library_list = str($libraries).split(',') mkdir kraken-database && cd kraken-database && kraken-build --threads \${GALAXY_SLOTS:-1} --download-taxonomy --db '${database_name}' && #for $library in $library_list: #if str($library) != 'None': kraken-build --threads \${GALAXY_SLOTS:-1} --download-library $library --db '${database_name}' && #end if #end for #for $fasta in $input_fasta: #if str($fasta) != 'None': kraken-build --threads \${GALAXY_SLOTS:-1} --db '${database_name}' --add-to-library '$fasta' && #end if #end for kraken-build --threads \${GALAXY_SLOTS:-1} --db '${database_name}' --build --kmer-len ${kmer_len} --minimizer-len ${minimizer_len} && cd .. && python '$__tool_directory__/make_json.py' --db '${database_name}' --out '${out_file}' ]]> </command> <inputs> <param name="database_name" type="text" label="Name for this database" /> <param name="libraries" type="select" multiple="true" label="Select partial library to download"> <option value="bacteria">Bacteria</option> <option value="archaea">Archaea</option> <option value="plasmid">Plasmid</option> <option value="viral">Viral</option> <option value="human">Human</option> </param> <param name="input_fasta" type="data" format="fasta" multiple="True" optional="true" label="Select history item" /> <param name="kmer_len" type="integer" value="31" label="K-mer length in BP" /> <param name="minimizer_len" type="integer" value="15" label="Minimizer length" /> </inputs> <outputs> <data name="out_file" format="data_manager_json" /> </outputs> <help> </help> <citations> <citation type="doi">10.1186/gb-2014-15-3-r46</citation> </citations> </tool>