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