view wgmlst_sequence.xml @ 2:4394da33d837 draft default tip

planemo upload for repository https://github.com/bvalot/pyMLST commit 142042a3856f8886031cacaa4fb28743a1bcd540
author bvalot
date Wed, 15 Nov 2023 12:22:07 +0000
parents 5b2c48fa0175
children
line wrap: on
line source

<tool id="wgmlst_sequence_wrapper"
	  name="Sequences of cg/wgMLST database"
	  version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.05">
  <description></description>
  <macros>
    <import>macro.xml</import>
  </macros>
  <expand macro="requirements" />
  <stdio>
    <exit_code range="1:" level="fatal" />
  </stdio>
  <version_command>wgMLST -v</version_command>
  <command>
    wgMLST sequence
	#if str($genes)
	  -f '${genes}'
	#end if
	#if $reference
	  --reference
	#end if
	'${database}' > '${sequence}'
	#if $log
    2> '${logfile}'
    #end if
  </command>
  <inputs>
	<param name="database" type="data"
           format="sqlite"
           label="cg/wgMLST database"
           help="Sqlite format from cg/wgMLST database" />
	<param name="genes" type="data"
           format="txt"
           label="Genes list"
           help="File containing list of genes to extract" />
	<param name="reference" type="boolean" checked="false"
           label="Report the number of gene found for each strain" />
	<param name="log" type="boolean" checked="false"
           label="Write log file" /> 
  </inputs>
  <outputs>
    <data name="logfile" format="txt" label="Sequence of
											 ${database.name}: log">
	  <filter>log</filter>
	</data>
	<data name="sequence" format="fasta" label="Sequence of ${database.name}: fasta" />
  </outputs>
  <tests>
	<test expect_num_outputs="1">
      <param name="database" value="wgmlst_ecoli.db" />
	  <param name="genes" value="wgmlst_ecoli.db.gene" />
	  <param name="reference" value="true" />
      <output name="sequence" ftype="fasta" file="wgmlst_ecoli.db.sequence" />
    </test>
  </tests>
  <help>
**What it does**

Extract sequences from a wgMLST DATABASE.

**Options**

  -f, --file FILENAME    File containing list of coregenes to extract
                         (default:all coregenes).
  --reference            Return sequence of the reference instead of
                         strains allele

**License and citation**

This Galaxy tool is Copyright © 2022 `B. Valot` and is released under the `GPL3 license`.
  </help>
  <citations>
  </citations>
</tool>