comparison snippy-core.xml @ 0:c9a8ef2aa380 draft

planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
author iuc
date Fri, 16 Feb 2018 13:40:16 -0500
parents
children 776ebd1239da
comparison
equal deleted inserted replaced
-1:000000000000 0:c9a8ef2aa380
1 <tool id="snippy_core" name="snippy-core" version="@VERSION@">
2 <description>
3 Combine multiple Snippy outputs into a core SNP alignment
4 </description>
5 <macros>
6 <import>macros.xml</import>
7 </macros>
8 <expand macro="requirements" />
9 <command detect_errors="exit_code"><![CDATA[
10
11 perl '$__tool_directory__/snippy_core_wrapper.pl'
12 '$is_reference'
13 --indirs '${" ".join(map(str, $indirs))}'
14
15 ]]></command>
16
17 <inputs>
18 <param name="indirs" type="data" multiple="true" format="zip" label="Snippy input zipped dirs" help="Select all the snippy inputs for alignment" />
19 <param name="is_reference" type="boolean" checked="true" truevalue="--noref" falsevalue="" label="Exclude reference" help="Don't include the reference file in the alignment." />
20 <param name="outputs" type="select" multiple="true" display="checkboxes" label="Output selection">
21 <option value="outaln" selected="True">A core SNP alignment in the fasta format</option>
22 <option value="outfull" selected="False">A whole genome SNP alignment (includes invariant sites)</option>
23 <option value="outtab" selected="False">Tab-separated columnar list of core SNP sites with alleles and annotations</option>
24 <option value="outtxt" selected="False">Tab-separated columnar list of alignment/core-size statistics</option>
25 </param>
26
27 </inputs>
28
29 <outputs>
30 <data format="fasta" name="alignment_fasta" label="${tool.name} on ${on_string} core alignment fasta" from_work_dir="core.aln">
31 <filter>outputs and 'outaln' in outputs</filter>
32 </data>
33 <data format="fasta" name="full_alignment_fasta" label="${tool.name} on ${on_string} full alignment fasta" from_work_dir="core.full.aln">
34 <filter>outputs and 'outfull' in outputs</filter>
35 </data>
36 <data format="tabular" name="alignment_table" label="${tool.name} on ${on_string} core alignment table" from_work_dir="core.tab">
37 <filter>outputs and 'outtab' in outputs</filter>
38 </data>
39 <data format="txt" name="alignment_summary" label="${tool.name} on ${on_string} core alignment summary" from_work_dir="core.txt">
40 <filter>outputs and 'outtxt' in outputs</filter>
41 </data>
42 </outputs>
43
44 <tests>
45 <test><!-- Test #1 - test with 2 zipped directories -->
46 <param name="indirs" value="S1.tgz,S2.tgz" />
47 <param name="is_reference" value="false" />
48 <param name="outputs" value="outtxt" />
49 <output name="alignment_summary" ftype="txt" file="core/core.txt" />
50 </test>
51 </tests>
52
53 <help><![CDATA[
54 **snippy-core @VERSION@**
55
56 Combine multiple Snippy outputs into a core SNP alignment
57
58 If you call SNPs for multiple isolates from the same reference, you can produce an alignment of "core SNPs" which can be used to build a high-resolution phylogeny (ignoring possible recombination). A "core site" is a genomic position that is present in all the samples. A core site can have the same nucleotide in every sample ("monomorphic") or some samples can be different ("polymorphic" or "variant"). If we ignore the complications of "ins", "del" variant types, and just use variant sites, these are the "core SNP genome".
59
60
61 **Inputs:**
62
63 Multiple Snippy output directories. (At least 2 of)
64
65 **Options:**
66
67 - noreference Exclude reference (default '0').
68
69 **Note:**
70
71 snippy **must** have been run with --cleanup False
72
73 ]]></help>
74
75 <expand macro="citations" />
76 </tool>