comparison snippy_clean_full_aln.xml @ 10:3fe8ef358d66 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/snippy commit 25b2375521fec3162644696b67e54f654fab2e79"
author iuc
date Thu, 30 Jan 2020 18:18:38 -0500
parents
children 5bbf9eada9c2
comparison
equal deleted inserted replaced
9:e4d0231d8595 10:3fe8ef358d66
1 <?xml version="1.0" encoding="utf-8"?>
2 <tool id="snippy_clean_full_aln" name="snippy-clean_full_aln" version="@VERSION@+galaxy0">
3 <description>
4 Replace any non-standard sequence characters in snippy 'core.full.aln' file.
5 </description>
6 <macros>
7 <import>macros.xml</import>
8 </macros>
9 <expand macro="requirements" />
10 <command detect_errors="exit_code"><![CDATA[
11 snippy-clean_full_aln
12 '${full_aln}'
13 #if $custom_char.custom_char_selector:
14 --to '${custom_char.to_char}'
15 #end if
16 > '${clean_full_aln}'
17 ]]></command>
18
19 <inputs>
20 <param name="full_aln" type="data" format="fasta" label="Snippy core.full.aln file" help="" />
21 <conditional name="custom_char">
22 <param name="custom_char_selector" type="boolean" display="radio" label="Use custom replacement character" />
23 <when value="false" />
24 <when value="true">
25 <param name="to_char" type="text" label="Replacement character" help="Replace non-[AGTCN-] chars with this character, defaults to 'N' if none entered" >
26 <sanitizer>
27 <valid initial="string.printable">
28 <remove value="&apos;" />
29 </valid>
30 <mapping initial="none">
31 <add source="&apos;" target="&apos;&quot;&apos;&quot;&apos;" />
32 </mapping>
33 </sanitizer>
34 </param>
35 </when>
36 </conditional>
37 </inputs>
38 <outputs>
39 <data name="clean_full_aln" format="fasta" label="${tool.name} on ${on_string} cleaned core alignment" />
40 </outputs>
41 <tests>
42 <test>
43 <param name="full_aln" value="core.full.nonclean.aln" />
44 <output name="clean_full_aln">
45 <assert_contents>
46 <has_line line="GCNNCG" />
47 </assert_contents>
48 </output>
49 </test>
50 <test>
51 <param name="full_aln" value="core.full.nonclean.aln" />
52 <param name="custom_char_selector" value="true" />
53 <param name="to_char" value="X" />
54 <output name="clean_full_aln">
55 <assert_contents>
56 <has_line line="GCXXCG" />
57 </assert_contents>
58 </output>
59 </test>
60 </tests>
61 <help><![CDATA[
62 The core.full.aln file is a FASTA formatted multiple sequence alignment file.
63 It has one sequence for the reference, and one for each sample participating
64 in the core genome calculation. Each sequence has the same length as the reference
65 sequence.
66
67 Character Meaning
68 ATGC Same as the reference
69 atgc Different from the reference
70 - Zero coverage in this sample or a deletion relative to the reference
71 N Low coverage in this sample (based on --mincov)
72 X Masked region of reference (from --mask)
73 n Heterozygous or poor quality genotype (has GT=0/1 or QUAL < --minqual in snps.raw.vcf)
74
75 You can remove all the "weird" characters and replace them with N using this tool.
76 This is useful when you need to pass it to a tree-building or recombination-removal
77 tool:
78
79 ```
80 % snippy-clean_full_aln core.full.aln > clean.full.aln
81 % run_gubbins.py -p gubbins clean.full.aln
82 % snp-sites -c gubbins.filtered_polymorphic_sites.fasta > clean.core.aln
83 % FastTree -gtr -nt clean.core.aln > clean.core.tree
84 ```
85 ]]></help>
86 <expand macro="citations" />
87 </tool>