annotate vsnp_determine_ref_from_data.xml @ 5:a8560decb495 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2a94c64d6c7236550bf483d2ffc4e86248c63aab"
author iuc
date Tue, 16 Nov 2021 20:12:56 +0000
parents 6853676d2bae
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
a8560decb495 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2a94c64d6c7236550bf483d2ffc4e86248c63aab"
iuc
parents: 3
diff changeset
1 <tool id="vsnp_determine_ref_from_data" name="vSNP: determine reference" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
0
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
2 <description>from input data</description>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
3 <macros>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
4 <import>macros.xml</import>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
5 </macros>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
6 <requirements>
5
a8560decb495 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2a94c64d6c7236550bf483d2ffc4e86248c63aab"
iuc
parents: 3
diff changeset
7 <expand macro="biopython_requirement"/>
a8560decb495 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2a94c64d6c7236550bf483d2ffc4e86248c63aab"
iuc
parents: 3
diff changeset
8 <expand macro="pyyaml_requirement"/>
0
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
9 </requirements>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
10 <command detect_errors="exit_code"><![CDATA[
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
11 #import re
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
12 #set gzipped = 'false'
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
13 #set input_type = $input_type_cond.input_type
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
14
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
15 #if $input_type in ["single", "pair"]:
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
16 #set read1 = $input_type_cond.read1
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
17 #set read1_identifier = re.sub('[^\s\w\-]', '_', str($read1.element_identifier))
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
18 ln -s '${read1}' '${read1_identifier}' &&
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
19 #if $input_type == "pair":
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
20 #set read2 = $input_type_cond.read2
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
21 #set read2_identifier = re.sub('[^\s\w\-]', '_', str($read2.element_identifier))
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
22 ln -s '${read2}' '${read2_identifier}' &&
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
23 #else:
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
24 #set read2 = None
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
25 #end if
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
26 #else:
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
27 #set read1 = $input_type_cond.reads_collection['forward']
1
b03e88e7bb1d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 0
diff changeset
28 #set read1_identifier = re.sub('[^\s\w\-]', '_', str($read1.name))
0
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
29 ln -s '${read1}' '${read1_identifier}' &&
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
30 #set read2 = $input_type_cond.reads_collection['reverse']
1
b03e88e7bb1d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 0
diff changeset
31 #set read2_identifier = re.sub('[^\s\w\-]', '_', str($read2.name))
0
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
32 ln -s '${read2}' '${read2_identifier}' &&
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
33 #end if
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
34
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
35 python '$__tool_directory__/vsnp_determine_ref_from_data.py'
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
36 --read1 '${read1_identifier}'
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
37 #if $read2 is not None
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
38 --read2 '${read2_identifier}'
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
39 #end if
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
40 --output_dbkey '$output_dbkey'
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
41 --output_metrics '$output_metrics'
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
42 #if $read1.is_of_type('fastqsanger.gz'):
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
43 --gzipped
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
44 #end if
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
45 #set $dnaprint_fields = $__app__.tool_data_tables['vsnp_dnaprints'].get_fields()
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
46 #for $i in $dnaprint_fields:
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
47 --dnaprint_fields '${i[0]}' '${i[2]}'
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
48 #end for
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
49 ]]></command>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
50 <inputs>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
51 <conditional name="input_type_cond">
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
52 <param name="input_type" type="select" label="Choose the category of the files to be analyzed">
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
53 <option value="single" selected="true">Single files</option>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
54 <option value="paired">Paired reads</option>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
55 <option value="pair">Paired reads in separate data sets</option>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
56 </param>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
57 <when value="single">
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
58 <param name="read1" type="data" format="fastqsanger.gz,fastqsanger" label="Read1 fastq file"/>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
59 </when>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
60 <when value="paired">
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
61 <param name="reads_collection" type="data_collection" format="fastqsanger,fastqsanger.gz" collection_type="paired" label="Collection of fastqsanger paired read files"/>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
62 </when>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
63 <when value="pair">
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
64 <param name="read1" type="data" format="fastqsanger.gz,fastqsanger" label="Read1 fastq file"/>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
65 <param name="read2" type="data" format="fastqsanger.gz,fastqsanger" label="Read2 fastq file"/>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
66 </when>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
67 </conditional>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
68 </inputs>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
69 <outputs>
1
b03e88e7bb1d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 0
diff changeset
70 <data name="output_dbkey" format="txt" label="${tool.name} on ${on_string} (dbkey)"/>
b03e88e7bb1d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 0
diff changeset
71 <data name="output_metrics" format="txt" label="${tool.name} on ${on_string} (metrics)"/>
0
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
72 </outputs>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
73 <tests>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
74 <!-- 1 single read -->
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
75 <test expect_num_outputs="2">
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
76 <param name="input_type" value="single"/>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
77 <param name="read1" value="Mcap_Deer_DE_SRR650221.fastq.gz" ftype="fastqsanger.gz"/>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
78 <output name="output_dbkey" file="output_dbkey.txt" ftype="txt"/>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
79 <output name="output_metrics" file="output_metrics.txt" ftype="txt"/>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
80 </test>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
81 <!-- 1 set of paired reads -->
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
82 <test expect_num_outputs="2">
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
83 <param name="input_type" value="pair"/>
1
b03e88e7bb1d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 0
diff changeset
84 <param name="read1" value="CMC_20E1_R1.fastq.gz" ftype="fastqsanger.gz"/>
b03e88e7bb1d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 0
diff changeset
85 <param name="read2" value="CMC_20E1_R2.fastq.gz" ftype="fastqsanger.gz"/>
0
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
86 <output name="output_dbkey" file="paired_dbkey.txt" ftype="txt"/>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
87 <output name="output_metrics" file="paired_metrics.txt" ftype="txt"/>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
88 </test>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
89 <!-- A collection of paired reads -->
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
90 <test expect_num_outputs="2">
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
91 <param name="input_type" value="paired"/>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
92 <param name="reads_collection">
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
93 <collection type="paired">
1
b03e88e7bb1d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 0
diff changeset
94 <element name="forward" value="CMC_20E1_R1.fastq.gz" ftype="fastqsanger.gz"/>
b03e88e7bb1d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 0
diff changeset
95 <element name="reverse" value="CMC_20E1_R2.fastq.gz" ftype="fastqsanger.gz"/>
0
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
96 </collection>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
97 </param>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
98 <output name="output_dbkey" file="paired_dbkey.txt" ftype="txt"/>
1
b03e88e7bb1d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 2e312886647244b416c64eca91e1a61dd1be939b"
iuc
parents: 0
diff changeset
99 <output name="output_metrics" file="paired_collection_metrics.txt" ftype="txt"/>
0
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
100 </test>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
101 </tests>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
102 <help>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
103 **What it does**
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
104
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
105 Accepts a single fastqsanger read, a set of paired reads, or a collection of single or paired reads (bacterial samples) and
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
106 inspects the data to discover the best reference genome for aligning the reads.
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
107
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
108 The information needed to discover the best reference is maintained by the USDA in this repository_. References are curreently
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
109
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
110 .. _repository: https://github.com/USDA-VS/vSNP_reference_options
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
111
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
112 limited to TB complex, paraTB, and Brucella, but information for additional references will be added. The information for each
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
113 reference is a string consisting of zeros and ones, compiled by USDA researchers, which we call a "DNA print". These strings
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
114 are maintained in yaml files for use in Galaxy, and are installed via the **vSNP DNAprints data manager** tool.
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
115
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
116 This tool creates an in-memory dictionary of these DNA print strings for matching with a string generated by inspecting the
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
117 input sample data. During inspection, this tool accrues sequence counts for supported species, ultimately generating a string
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
118 consisting of zeros and ones based on the counts, (i.e., a DNA print). This string is then compared to the strings contained
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
119 in the in-memory dictionary of DNA prints to find a match.
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
120
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
121 The strings in the in-memory dictionary are each associated with a Galaxy "dbkey" (i.e., genome build), so when a match is found,
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
122 the associated "dbkey" is passed to a mapper (e.g., **Map with BWA-MEM**), typically within a workflow via an expression tool,
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
123 to align the reads to the associated reference.
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
124
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
125 This tool produces 2 text files, a "dbkey" file that contains the dbkey string and a "metrics" file that provides information
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
126 about the sequence counts that were discovered in the input sample data that produced the "DNA print" string.
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
127
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
128 This tool is important for samples containing bacterial species because many of the samples have a "mixed bag" of species,
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
129 and discovering the primary species is critical. DNA print matching is currently supported for the following genomes.
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
130
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
131 * Mycobacterium bovis AF2122/97
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
132 * Brucella abortus bv. 1 str. 9-941
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
133 * Brucella abortus strain BER
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
134 * Brucella canis ATCC 23365
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
135 * Brucella ceti TE10759-12
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
136 * Brucella melitensis bv. 1 str. 16M
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
137 * Brucella melitensis bv. 3 str. Ether
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
138 * Brucella melitensis BwIM_SOM_36b
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
139 * Brucella melitensis ATCC 23457
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
140 * Brucella ovis ATCC 25840
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
141 * Brucella suis 1330
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
142 * Mycobacterium tuberculosis H37Rv
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
143 * Mycobacterium avium subsp. paratuberculosis strain Telford
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
144 * Mycobacterium avium subsp. paratuberculosis K-10
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
145 * Brucella suis ATCC 23445
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
146 * Brucella suis bv. 3 str. 686
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
147
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
148 **Required Options**
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
149
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
150 * **Choose the category of the files to be analyzed** - select "Single files" or "Collection of files", then select the appropriate history items (single or paired fastqsanger reads or a collection of fastqsanger reads) based on the selected option.
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
151 </help>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
152 <expand macro="citations"/>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
153 </tool>
12f2b14549f6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 524a39e08f2bea8b8754284df606ff8dd27ed24b"
iuc
parents:
diff changeset
154