view mykrobe_genotype.xml @ 1:84f769706f7a draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mykrobe commit 98633f779dfac95f55fbe30519f4e88da0bb9449
author iuc
date Tue, 02 Apr 2019 11:57:05 -0400
parents d783eb846f59
children 0f4a5de7878a
line wrap: on
line source

<tool id="mykrobe_genotype" name="mkyrobe genotype" version="0.6.1" >
  <description>Antibiotic resistance predictions</description>
  <macros>
    <import>macro.xml</import>
  </macros>
  <expand macro="requirements"/>
  <command detect_errors="exit_code">
<![CDATA[
        @select_inputs@

        mykrobe genotype 
        '${name}'
        '${probe_set}'

        #if $filter:
          --filters '${filter}'
        #end if

        @shared_options@

        -q
        -t "\${GALAXY_SLOTS:-1}"

        -1
        #if $type == 'fastq':
          *.fastq
        #elif $type == 'bam':
          *.bam
        #else
          *.fasta  
        #end if
         > '$json'
]]>
  </command>
  <inputs>
    <expand macro="inputs" />
    <param argument="--probe_set" type="data" format="fasta" label="Probe Set"/>
    <param argument="--filter" type="data" format="txt,fasta" label="Filter Genotypes" optional="True" help="Don't include filtered genotypes"/>
    <expand macro="options"/>
  </inputs>
  <outputs>
    <data name="json" format="json" label="JSON prediction"/>
  </outputs>
  <tests>
    <test>
      <param name="type" value="single"/>
      <param name="fastq_input1" value="reads.fastq"/>
      <param name="probe_set" value="tb-bradley-probe-set-feb-09-2017.fasta.gz"/>
      <output name="json">
        <assert_contents>
          <has_text_matching expression="ref-S315T"/>
        </assert_contents>
      </output>
    </test>
  </tests>
  <help>
@ATTRIBUTION@
  </help>
  <expand macro="citation" />
</tool>