view uvp.xml @ 1:a31e88effccd draft

"planemo upload for repository https://github.com/dfornika/galaxytools/blob/master/tools/uvp commit 2482e856a9414983c82d94c9f59ff8985574895e-dirty"
author dfornika
date Fri, 11 Oct 2019 18:27:23 -0400
parents 76eefba8e661
children 845a20f1fa5e
line wrap: on
line source

<tool id="uvp" name="Unified Variant analysis Pipeline for M. tuberculosis complex" version="@TOOL_VERSION@+galaxy0">
    <description></description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <requirements>
        <requirement type="package" version="@TOOL_VERSION@">uvp</requirement>
    </requirements>
    <version_command>uvp --version</version_command>
    <command detect_errors="exit_code">
        <![CDATA[
        uvp
            --threads \${GALAXY_SLOTS:-1}
            #if $single_paired.single_paired_selector == 'yes'
                -n '${single_paired.forward_input.element_identifier}'
                -q '${single_paired.forward_input}' 
                -q2 '${single_paired.reverse_input}'
            #elif $single_paired.single_paired_selector == "collection":
                -n '${single_paired.input_pair.forward.element_identifier}'
                -q '${single_paired.input_pair.forward}'
                -q2 '${single_paired.input_pair.reverse}'
            #else:
                -n '${single_paired.input_sequences.element_identifier}'
                -q '${single_paired.input_sequences}'
            #end if
            --krakendb '${kraken_database.fields.path}'
            -r '${reference}'
            ${annotate}
            --outdir outdir
	]]>
    </command>
    <inputs>
        <conditional name="single_paired">
            <param name="single_paired_selector" type="select" label="Single or paired reads" help="--paired">
                <option value="collection">Collection</option>
                <option value="yes">Paired</option>
                <option selected="True" value="no">Single</option>
            </param>
            <when value="collection">
                <param format="fasta,fastq" name="input_pair" type="data_collection" collection_type="paired" label="Collection of paired reads" help="FASTA or FASTQ datasets" />
            </when>
            <when value="yes">
                <param format="fasta,fastq" name="forward_input" type="data" label="Forward strand" help="FASTA or FASTQ dataset"/>
                <param format="fasta,fastq" name="reverse_input" type="data" label="Reverse strand" help="FASTA or FASTQ dataset"/>
            </when>
            <when value="no">
                <param format="fasta,fastq" label="Input sequences" name="input_sequences" type="data" help="FASTA or FASTQ datasets"/>
            </when>
        </conditional>
	<param name="kraken_database" type="select">
	    <options from_data_table="kraken_databases">
	        <validator type="no_options" message="No Kraken databases are available" />
            </options>
        </param>
	<param name="reference" type="data" format="fasta" label="Reference Sequence" />
	<param name="annotate" type="boolean" truevalue="--annotate" falsevalue="" />
    </inputs>
    <outputs>
        <data name="low_quals" label="Low-quality" format="tabular" from_work_dir="outdir/QC/low_quals.txt"/>
    </outputs>
    <tests>
    </tests>
    <help>
      <![CDATA[
      ]]>
    </help>
    <expand macro="citations" />
</tool>