annotate vsnp_build_tables.xml @ 5:b08cc87b2888 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit a80e3713d10fafef22e964198d59251adf955812"
author iuc
date Thu, 14 Jan 2021 09:12:14 +0000
parents efb86aade548
children 8a7fae0cccfc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
b08cc87b2888 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit a80e3713d10fafef22e964198d59251adf955812"
iuc
parents: 4
diff changeset
1 <tool id="vsnp_build_tables" name="vSNP: build tables" version="@WRAPPER_VERSION@.2" profile="@PROFILE@">
0
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
2 <description></description>
1
0bc0009f9ea0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 6a0c9a857c1f4638ef18e106b1f8c0681303acc5"
iuc
parents: 0
diff changeset
3 <macros>
0bc0009f9ea0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 6a0c9a857c1f4638ef18e106b1f8c0681303acc5"
iuc
parents: 0
diff changeset
4 <import>macros.xml</import>
0bc0009f9ea0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 6a0c9a857c1f4638ef18e106b1f8c0681303acc5"
iuc
parents: 0
diff changeset
5 </macros>
0
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
6 <requirements>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
7 <requirement type="package" version="1.76">biopython</requirement>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
8 <requirement type="package" version="0.25.3">pandas</requirement>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
9 <requirement type="package" version="1.2.8">xlsxwriter</requirement>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
10 </requirements>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
11 <command detect_errors="exit_code"><![CDATA[
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
12 #import re
4
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
13
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
14 mkdir 'output_excel_dir' &&
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
15
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
16 ## The input_snps_json and input_avg_mq_json identifiers
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
17 ## are typically the same string, so we append a uniquq
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
18 ## extension to enable the links.
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
19 #set input_snps_json_identifier = re.sub('[^\s\w\-]', '_', str($input_snps_json.element_identifier)) + '.snps'
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
20 ln -s '${input_snps_json}' '${input_snps_json_identifier}' &&
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
21 #set input_avg_mq_json_identifier = re.sub('[^\s\w\-]', '_', str($input_avg_mq_json.element_identifier)) + '.avg_mq'
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
22 ln -s '${input_avg_mq_json}' '${input_avg_mq_json_identifier}' &&
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
23 #set input_newick_identifier = re.sub('[^\s\w\-]', '_', str($input_newick.element_identifier))
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
24 ln -s '${input_newick}' '${input_newick_identifier}' &&
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
25
0
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
26 python '$__tool_directory__/vsnp_build_tables.py'
4
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
27 --input_snps_json '${input_snps_json_identifier}'
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
28 --input_avg_mq_json '${input_avg_mq_json_identifier}'
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
29 --input_newick '${input_newick_identifier}'
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
30 #if str($gbk_cond.gbk_param) == 'yes':
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
31 #if str($gbk_cond.gbk_source_cond.gbk_source) == 'cached':
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
32 --gbk_file '$gbk_cond.gbk_source_cond.gbk_file.fields.path'
0
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
33 #else:
4
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
34 --gbk_file '$gbk_cond.gbk_source_cond.gbk_file'
0
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
35 #end if
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
36 #end if
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
37 ]]></command>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
38 <inputs>
4
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
39 <param name="input_snps_json" type="data" format="json" label="SNPs json file"/>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
40 <param name="input_avg_mq_json" type="data" format="json" label="Average MQ json file"/>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
41 <param name="input_newick" type="data" format="newick" label="Best-scoring ML tree file"/>
0
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
42 <conditional name="gbk_cond">
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
43 <param name="gbk_param" type="select" label="Use Genbank file?">
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
44 <option value="yes" selected="true">yes</option>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
45 <option value="no">No</option>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
46 </param>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
47 <when value="yes">
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
48 <conditional name="gbk_source_cond">
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
49 <param name="gbk_source" type="select" label="Choose the source for the Genbank file">
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
50 <option value="cached" selected="true">locally cached</option>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
51 <option value="history">from history</option>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
52 </param>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
53 <when value="cached">
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
54 <param name="gbk_file" type="select" label="Genbank file">
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
55 <options from_data_table="vsnp_genbank">
5
b08cc87b2888 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit a80e3713d10fafef22e964198d59251adf955812"
iuc
parents: 4
diff changeset
56 <filter type="data_meta" column="0" key="dbkey" ref="input_avg_mq_json"/>
4
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
57 <validator type="no_options" message="A cached Genbank file is not available for the build associated with the selected average MQ json file"/>
0
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
58 </options>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
59 </param>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
60 </when>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
61 <when value="history">
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
62 <param name="gbk_file" type="data" format="genbank" label="Genbank file">
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
63 <validator type="no_options" message="The current history does not include a genbank dataset"/>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
64 </param>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
65 </when>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
66 </conditional>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
67 </when>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
68 <when value="no"/>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
69 </conditional>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
70 </inputs>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
71 <outputs>
4
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
72 <collection name="excel" type="list" label="${tool.name} on ${on_string}">
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
73 <discover_datasets pattern="(?P&lt;designation&gt;.+)\.(?P&lt;ext&gt;xlsx)" directory="output_excel_dir"/>
0
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
74 </collection>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
75 </outputs>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
76 <tests>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
77 <test>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
78 <param name="input_snps_json" value="input_snps_json.json" ftype="json" dbkey="89"/>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
79 <param name="input_newick" value="input_newick.newick" ftype="newick" dbkey="89"/>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
80 <param name="input_avg_mq_json" value="input_avg_mq_json.json" ftype="json" dbkey="89"/>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
81 <param name="gbk_param" value="no"/>
4
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
82 <output_collection name="excel" type="list" count="2">
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
83 <element name="input_newick_newick_cascade_table" file="cascade_table.xlsx" ftype="xlsx" compare="sim_size"/>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
84 <element name="input_newick_newick_sort_table" file="sort_table.xlsx" ftype="xlsx" compare="sim_size"/>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
85 </output_collection>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
86 </test>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
87 <test>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
88 <param name="input_snps_json" value="Mbovis-01_snps.json" ftype="json" dbkey="89"/>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
89 <param name="input_newick" value="Mbovis-01_snps.newick" ftype="newick" dbkey="89"/>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
90 <param name="input_avg_mq_json" value="Mbovis-01_avg_mq.json" ftype="json" dbkey="89"/>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
91 <param name="gbk_param" value="no"/>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
92 <output_collection name="excel" type="list" count="2">
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
93 <element name="Mbovis-01_snps_cascade_table" file="Mbovis-01_cascade_table.xlsx" ftype="xlsx" compare="sim_size"/>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
94 <element name="Mbovis-01_snps_sort_table" file="Mbovis-01_sort_table.xlsx" ftype="xlsx" compare="sim_size"/>
0
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
95 </output_collection>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
96 </test>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
97 <test>
4
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
98 <param name="input_snps_json" value="Mbovis-01D_snps.json" ftype="json" dbkey="89"/>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
99 <param name="input_newick" value="Mbovis-01D_snps.newick" ftype="newick" dbkey="89"/>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
100 <param name="input_avg_mq_json" value="Mbovis-01D_avg_mq.json" ftype="json" dbkey="89"/>
0
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
101 <param name="gbk_param" value="no"/>
4
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
102 <output_collection name="excel" type="list" count="2">
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
103 <element name="Mbovis-01D_snps_cascade_table" file="Mbovis-01D_cascade_table.xlsx" ftype="xlsx" compare="sim_size"/>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
104 <element name="Mbovis-01D_sort_table" file="Mbovis-01D_sort_table.xlsx" ftype="xlsx" compare="sim_size"/>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
105 </output_collection>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
106 </test>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
107 <test>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
108 <param name="input_snps_json" value="Mbovis-01D6_snps.json" ftype="json" dbkey="89"/>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
109 <param name="input_newick" value="Mbovis-01D6_snps.newick" ftype="newick" dbkey="89"/>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
110 <param name="input_avg_mq_json" value="Mbovis-01D6_avg_mq.json" ftype="json" dbkey="89"/>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
111 <param name="gbk_param" value="no"/>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
112 <output_collection name="excel" type="list" count="2">
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
113 <element name="Mbovis-01D6_cascade_table" file="Mbovis-01D6_cascade_table.xlsx" ftype="xlsx" compare="sim_size"/>
efb86aade548 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 1
diff changeset
114 <element name="Mbovis-01D6_sort_table" file="Mbovis-01D6_sort_table.xlsx" ftype="xlsx" compare="sim_size"/>
0
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
115 </output_collection>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
116 </test>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
117 </tests>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
118 <help>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
119 **What it does**
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
120
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
121 Accepts a combination of single SNPs json, average MQ json and newick files (or associated collections of
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
122 each) to produce annotated SNPs tables in the form of Excel spreadsheets. The SNPs json and average MQ json
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
123 files are typically produced by the **vSNP: get SNPs** tool and the newick files are typically produced by
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
124 the **Phyogenetic reconstruction with RaXML** tool.
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
125
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
126 The SNPs tables display closely related isolates and enables identification of mixed SNPs when multiple
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
127 bacterial strains are infecting an organism. The table structure is shown below. The columns identify the
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
128 genome location of the SNP calls and the isolates are contained within the rows. The reference (or ancestral
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
129 strain if the reference is an outgroup) is listed across the top, identified as the "reference call". SNPs
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
130 that are not highlighted will match the reference. The map-quality row values are the average of the map
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
131 quality scores of each isolate in that position. These scores measure the confidence that the read has been
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
132 mapped to the correct location on the genome. The maximum score possible is 60, and lower scores lessen the
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
133 confidence that the SNP was correctly identified. The annotation of the position is provided at the bottom
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
134 of the table.
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
135
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
136 .. image:: table_description.png
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
137
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
138 SNPs are sorted according to their evolutionary age within the table. The oldest SNPs (encompassing the most
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
139 isolates) are furthest to the left. This sorting is somewhat crude - the intent is to improve readibility or
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
140 more easily match a related tree.
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
141
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
142 For a more detailed discussion, see the **Validating and correcting SNP calls** section of
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
143 the `vSNP documentation`_.
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
144
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
145 .. _vSNP documentation: https://github.com/USDA-VS/vSNP/blob/master/docs/detailed_usage.md
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
146
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
147 **Required Options**
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
148
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
149 * **Use Genbank file** - Select "yes" to annotate the tables using the information in the Genbank file. Locally cached files, if available, provide the most widely used annotations, but more custom Genbank files can be chosen from the current history.
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
150 </help>
1
0bc0009f9ea0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 6a0c9a857c1f4638ef18e106b1f8c0681303acc5"
iuc
parents: 0
diff changeset
151 <expand macro="citations"/>
0
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
152 </tool>
5e258fba246c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit c67950184792952302f0e89354c311d4e5ed774c"
iuc
parents:
diff changeset
153