Mercurial > repos > iuc > chewbbaca_prepexternalschema
view PrepExternalSchema.xml @ 1:7035fc8b4ae3 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 2564b0ca982636c6c6f221d0c5072f52d39e6751
author | iuc |
---|---|
date | Sat, 11 May 2024 22:49:51 +0000 |
parents | 6f7cfce9494d |
children | 0b73dd40d83f |
line wrap: on
line source
<tool id="chewbbaca_prepexternalschema" name="chewBBACA PrepExternalSchema" version="@CHEW_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> <description>Adapt an external schema to be used with chewBBACA</description> <macros> <import>macros.xml</import> </macros> <expand macro="requirements" /> <command detect_errors="exit_code"><![CDATA[ mkdir 'schema' && unzip '$input_schema' -d 'schema' && chewBBACA.py PrepExternalSchema #if $training_file: --ptf '$training_file' #end if #if $genes_list: --gl '$genes_list' #end if @COMMON_INPUT@ $size_filter -g 'schema/schema_seed/' -o 'schema_seed' && zip -r PExternalschema_seed.zip 'schema_seed' ]]></command> <inputs> <param format="zip" name="input_schema" type="data" label="Schema Files in zip format" help="The schema directory contains the loci FASTA files and a folder named 'short' that contains the FASTA files with the loci representative alleles."/> <section name="advanced" title="Advanced options"> <param argument="--training-file" type="data" format="binary" label="Prodigal training file" optional="true" /> <param argument="--genes-list" type="data" format="txt" label="Gene list" optional="true" /> <param argument="--minimum-length" type="integer" min="0" value="0" label="Minimum sequence length value"/> <expand macro="common_param" /> <param argument="--size-filter" type="boolean" truevalue="--size-filter" falsevalue="" checked="false" label="Size filter" help="Apply the minimum length and size threshold values to filter out alleles during schema adaptation" /> </section> </inputs> <outputs> <data format="zip" name="schema" from_work_dir="PExternalschema_seed.zip" label="${tool.name} on ${on_string}: PrepExternal Schema files"/> </outputs> <tests> <test expect_num_outputs="1"> <param name="input_schema" value="GCA_000007265.1_ASM726v1_schema_seed.zip"/> <param name="size_filter" value="false"/> <output name="schema"> <assert_contents> <has_archive_member path="schema_seed/.*\.fasta" n="204"/> <has_archive_member path="schema_seed/short/.*\.fasta" n="102"/> <has_archive_member path="schema_seed/\.schema_config"/> </assert_contents> </output> </test> </tests> <help> chewBBACA is a software suite for the creation and evaluation of core genome and whole genome MultiLocus Sequence Typing (cg/wgMLST) schemas and results. The PrepExternalSchema module enables the adaptation of external schemas so that it is possible to use those schemas with chewBBACA. </help> <expand macro="citations" /> </tool>