Mercurial > repos > iuc > snippy
changeset 15:b23add4731b4 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/snippy commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
author | iuc |
---|---|
date | Wed, 01 Sep 2021 08:39:51 +0000 |
parents | 3039be06b167 |
children | cfbd9a5694ff |
files | macros.xml macros.xml.orig snippy-core.xml snippy.xml snippy_clean_full_aln.xml |
diffstat | 5 files changed, 91 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/macros.xml Sat Jul 10 07:45:44 2021 +0000 +++ b/macros.xml Wed Sep 01 08:39:51 2021 +0000 @@ -6,7 +6,11 @@ <yield /> </requirements> </xml> - + <xml name="bio_tools"> + <xrefs> + <xref type="bio.tools">snippy</xref> + </xrefs> + </xml> <token name="@WRAPPER_VERSION@">4.6.0</token> <token name="@VERSION_SUFFIX@">0</token>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/macros.xml.orig Wed Sep 01 08:39:51 2021 +0000 @@ -0,0 +1,83 @@ +<macros> + <xml name="requirements"> + <requirements> + <requirement type="package" version="@WRAPPER_VERSION@">snippy</requirement> + <requirement type="package" version="1.32">tar</requirement> + <yield /> + </requirements> + </xml> +<<<<<<< HEAD + + <token name="@WRAPPER_VERSION@">4.6.0</token> + <token name="@VERSION_SUFFIX@">0</token> +======= + <xml name="bio_tools"> + <xrefs> + <xref type='bio.tools'>snippy</xref> + </xrefs> + </xml> + <token name="@WRAPPER_VERSION@">4.5.0</token> + <token name="@VERSION_SUFFIX@">1</token> +>>>>>>> 3b8498343 (and the rest) + + <xml name="version_command"> + <version_command><![CDATA[snippy --version]]></version_command> + </xml> + + <token name="@REFERENCE_SOURCE_FILE@"> + <![CDATA[ + #if $reference_source.reference_source_selector == 'history' + #if $reference_source.ref_file.is_of_type("fasta") + ln -sf '$reference_source.ref_file' 'ref.fna' && + #elif $reference_source.ref_file.is_of_type("genbank") + ln -sf '$reference_source.ref_file' 'ref.gbk' && + #end if + #elif $reference_source.reference_source_selector == 'cached' + ln -sf '$reference_source.ref_file.fields.path' 'ref.fna' && + #end if]]> + </token> + + <token name="@REFERENCE_COMMAND@"> + <![CDATA[ + #if $reference_source.reference_source_selector == 'history' + #if $reference_source.ref_file.is_of_type("fasta") + --ref 'ref.fna' + #elif $reference_source.ref_file.is_of_type("genbank") + --ref 'ref.gbk' + #end if + #elif $reference_source.reference_source_selector == 'cached' + --ref 'ref.fna' + #end if + ]]> + </token> + + <xml name="reference_selector"> + <conditional name="reference_source"> + <param name="reference_source_selector" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="Built-ins were indexed using default options. See `Indexes` section of help below. If you would like to perform self-mapping select `history` here, then choose your input file as reference."> + <option value="cached">Use a built-in genome index</option> + <option value="history">Use a genome from history and build index</option> + </param> + <when value="cached"> + <param name="ref_file" type="select" label="Using reference genome" help="Select genome from the list"> + <options from_data_table="all_fasta"> + <validator type="no_options" message="No reference genomes are available" /> + </options> + </param> + </when> + <when value="history"> + <param name="ref_file" type="data" format="fasta,fasta.gz,genbank" label="Use the following dataset as the reference sequence" help="You can upload a FASTA or FASTQ sequence to the history and use it as reference" /> + </when> + </conditional> + </xml> + + <xml name="citations"> + <citations> + <citation type="bibtex">@UNPUBLISHED{Seemann2013, + author = "Seemann T", + title = "snippy: fast bacterial variant calling from NGS reads", + year = "2015", + note = "https://github.com/tseemann/snippy", + url = "https://github.com/tseemann/snippy"}</citation> + </citations> + </xml> +</macros>
--- a/snippy-core.xml Sat Jul 10 07:45:44 2021 +0000 +++ b/snippy-core.xml Wed Sep 01 08:39:51 2021 +0000 @@ -3,6 +3,7 @@ <description> Combine multiple Snippy outputs into a core SNP alignment </description> + <expand macro="bio_tools"/> <macros> <import>macros.xml</import> </macros>
--- a/snippy.xml Sat Jul 10 07:45:44 2021 +0000 +++ b/snippy.xml Wed Sep 01 08:39:51 2021 +0000 @@ -2,6 +2,7 @@ <description> Snippy finds SNPs between a haploid reference genome and your NGS sequence reads. </description> + <expand macro="bio_tools"/> <macros> <import>macros.xml</import> </macros>
--- a/snippy_clean_full_aln.xml Sat Jul 10 07:45:44 2021 +0000 +++ b/snippy_clean_full_aln.xml Wed Sep 01 08:39:51 2021 +0000 @@ -3,6 +3,7 @@ <description> Replace any non-standard sequence characters in snippy 'core.full.aln' file. </description> + <expand macro="bio_tools"/> <macros> <import>macros.xml</import> </macros>