Mercurial > repos > iuc > chewbbaca_prepexternalschema
diff PrepExternalSchema.xml @ 0:6f7cfce9494d draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
author | iuc |
---|---|
date | Sat, 13 Apr 2024 22:28:01 +0000 |
parents | |
children | 0b73dd40d83f |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PrepExternalSchema.xml Sat Apr 13 22:28:01 2024 +0000 @@ -0,0 +1,56 @@ +<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>