annotate seqsero2.xml @ 0:93ef4c70ce5f draft default tip

"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
author thanhlv
date Fri, 12 Nov 2021 14:56:56 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
1 <tool id="seqsero2" name="SeqSero2" version="@VERSION@+galaxy0">
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
2 <description> Salmonella serotype prediction</description>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
3 <macros>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
4 <token name="@VERSION@">1.2.1</token>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
5 </macros>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
6 <requirements>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
7 <requirement type="package" version="@VERSION@">seqsero2</requirement>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
8 </requirements>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
9 <version_command>SeqSero2_package.py -v</version_command>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
10 <command detect_errors="exit_code"><![CDATA[
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
11 #import re
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
12 #set $seqsero_input = ''
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
13 #set $seqsero_t_value = ''
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
14 #if $inputs.input_type == 'paired':
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
15 #if $inputs.R1.is_of_type('fastqsanger', 'fastq'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
16 #set $ext = 'fastq'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
17 #elif $inputs.R1.is_of_type('fastqsanger.gz'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
18 #set $ext = 'fastq.gz'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
19 #elif $inputs.R1.is_of_type('fastq'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
20 #set $ext = 'fastq'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
21 #elif $inputs.R1.is_of_type('fastq.gz'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
22 #set $ext = 'fastq.gz'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
23 #elif $inputs.R1.is_of_type('fasta.gz'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
24 #set $ext = 'fasta.gz'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
25 #elif $inputs.R1.is_of_type('fasta'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
26 #set $ext = 'fasta'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
27 #end if
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
28 #set $safename_R1 = re.sub('[^\w\-_\.]', '_', $inputs.R1.element_identifier)
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
29 #set $safename_R2 = re.sub('[^\w\-_\.]', '_', $inputs.R2.element_identifier)
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
30 ln -fs '$inputs.R1' $safename_R1.$ext &&
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
31 ln -fs '$inputs.R2' $safename_R2.$ext &&
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
32 #set $seqsero_input = $safename_R1 + '.' + $ext + ' ' + $safename_R2 + '.' + $ext
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
33 #set $seqsero_t_value = '2'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
34 #elif $inputs.input_type == 'collection':
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
35 #for $input in $inputs.input_collection
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
36 #if $input.forward.is_of_type('fastqsanger', 'fastq'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
37 #set $ext = 'fastq'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
38 #elif $input.forward.is_of_type('fastqsanger.gz'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
39 #set $ext = 'fastq.gz'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
40 #elif $input.forward.is_of_type('fastq'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
41 #set $ext = 'fastq'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
42 #elif $input.forward.is_of_type('fastq.gz'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
43 #set $ext = 'fastq.gz'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
44 #elif $input.forward.is_of_type('fasta.gz'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
45 #set $ext = 'fasta.gz'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
46 #elif $input.forward.is_of_type('fasta'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
47 #set $ext = 'fasta'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
48 #end if
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
49 #set $safename_fwd = re.sub('[^\w\-_\.]', '_', $input.forward.element_identifier)
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
50 ln -fs '$input.forward' $safename_fwd.$ext &&
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
51 #set $safename_rvs = re.sub('[^\w\-_\.]', '_', $input.reverse.element_identifier)
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
52 ln -fs '$input.reverse' $safename_rvs.$ext &&
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
53 #set $seqsero_input = $safename_fwd+ '.' + $ext + ' ' + $safename_rvs + '.' + $ext
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
54 #set $seqsero_t_value = '2'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
55 #end for
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
56 #elif $inputs.input_type == 'assembly':
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
57 #if $inputs.contigs.is_of_type('fasta.gz'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
58 #set $ext = 'fasta.gz'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
59 #elif $inputs.contigs.is_of_type('fasta'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
60 #set $ext = 'fasta'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
61 #end if
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
62 #set $safename_seq = re.sub('[^\w\-_\.]', '_', $contigs.element_identifier)
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
63 ln -fs '$contigs' $safename_seq.$ext &&
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
64 #set $seqsero_input = $safename_seq + '.' + $ext
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
65 #set $seqsero_t_value = '4'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
66 #elif $inputs.input_type == 'single':
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
67 #if $inputs.single.is_of_type('fastqsanger', 'fastq'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
68 #set $ext = 'fastq'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
69 #elif $inputs.single.is_of_type('fastqsanger.gz'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
70 #set $ext = 'fastq.gz'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
71 #elif $inputs.single.is_of_type('fastq'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
72 #set $ext = 'fastq'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
73 #elif $inputs.single.is_of_type('fastq.gz'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
74 #set $ext = 'fastq.gz'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
75 #elif $inputs.single.is_of_type('fasta.gz'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
76 #set $ext = 'fasta.gz'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
77 #elif $inputs.single.is_of_type('fasta'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
78 #set $ext = 'fasta'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
79 #end if
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
80 #set $safename_seq = re.sub('[^\w\-_\.]', '_', $single.element_identifier)
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
81 ln -fs '$single' $safename_seq.$ext &&
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
82 #set $seqsero_input = $safename_seq + '.' + $ext
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
83 #set $seqsero_t_value = '3'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
84 #elif $inputs.input_type == 'nanopore':
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
85 #if $inputs.nanopore.is_of_type('fastqsanger', 'fastq'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
86 #set $ext = 'fastq'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
87 #elif $inputs.nanopore.is_of_type('fastqsanger.gz'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
88 #set $ext = 'fastq.gz'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
89 #elif $inputs.nanopore.is_of_type('fastq'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
90 #set $ext = 'fastq'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
91 #elif $inputs.nanopore.is_of_type('fastq.gz'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
92 #set $ext = 'fastq.gz'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
93 #elif $inputs.nanopore.is_of_type('fasta.gz'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
94 #set $ext = 'fasta.gz'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
95 #elif $inputs.nanopore.is_of_type('fasta'):
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
96 #set $ext = 'fasta'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
97 #end if
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
98 #set $safename_seq = re.sub('[^\w\-_\.]', '_', $nanopore.element_identifier)
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
99 ln -fs '$nanopore' $safename_seq.$ext &&
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
100 #set $seqsero_input = $safename_seq + '.' + $ext
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
101 #set $seqsero_t_value = '5'
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
102 #end if
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
103
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
104 SeqSero2_package.py
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
105 -m $workflow
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
106 -t $seqsero_t_value
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
107 -i $seqsero_input
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
108 -p \${GALAXY_SLOTS:-4}
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
109 -d output
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
110 ]]> </command>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
111 <inputs>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
112 <conditional name="inputs">
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
113 <param name="input_type" type="select" label="Input type" help="Select 'paired end' reads or 'sequence' for genomes/contigs">
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
114 <option value="paired">Paired End</option>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
115 <option value="collection">Collection</option>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
116 <option value="assembly">Contigs</option>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
117 <option value="single">Interleaved</option>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
118 <option value="nanopore">Nanopore reads</option>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
119 </param>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
120 <when value="paired">
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
121 <param name="R1" type="data" format="fastqsanger,fastqsanger.gz" label="Forward reads (R1)" help="The file of forward reads in FASTQ format"/>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
122 <param name="R2" type="data" format="fastqsanger,fastqsanger.gz" label="Reverse reads (R2)" help="The file of reverse reads in FASTQ format"/>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
123 </when>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
124 <when value="collection">
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
125 <param name="input_collection" format="fastqsanger" type="data_collection" collection_type="list:paired" label="Paired collection"/>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
126 </when>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
127 <when value="single">
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
128 <param name="single" type="data" format="fastqsanger,fastqsanger.gz" multiple="false" label="Interleaved" />
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
129 </when>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
130 <when value="nanopore">
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
131 <param name="nanopore" type="data" format="fastqsanger,fastqsanger.gz" multiple="false" label="Nanopore reads" />
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
132 </when>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
133 <when value="assembly">
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
134 <param name="contigs" type="data" format="fasta" multiple="false" label="Contigs/genomes" />
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
135 </when>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
136 </conditional>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
137 <param label="Workflow" type="select" name="workflow">
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
138 <option value="a">allele</option>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
139 <option value="k" selected="true">k-mer</option>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
140 </param>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
141 </inputs>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
142 <outputs>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
143 <data name="results" format="tabular" label="${tool.name} on ${on_string} Results" from_work_dir="output/SeqSero_result.tsv"/>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
144 <data name="log" format="txt" label="${tool.name} on ${on_string} Log" from_work_dir="output/SeqSero_log.txt"/>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
145
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
146 </outputs>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
147 <tests>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
148 <test>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
149 <param name="input_type" value="assembly" />
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
150 <param name="contigs" value="CP009102.1.fasta" ftype="fasta" />
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
151 <output name="results">
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
152 <assert_contents>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
153 <has_text text="Salmonella enterica subspecies enterica (subspecies I)" />
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
154 <has_text text="Typhimurium" />
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
155 </assert_contents>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
156 </output>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
157 </test>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
158 <!-- TODO: Test for fastq files -->
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
159 </tests>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
160 <help><![CDATA[
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
161
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
162 **Usage: SeqSero2_package.py**
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
163
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
164 -m <string> (which workflow to apply, 'a'(raw reads allele micro-assembly), 'k'(raw reads and genome assembly k-mer), default=a)
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
165
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
166 -t <string> (input data type, '1' for interleaved paired-end reads, '2' for separated paired-end reads, '3' for single reads, '4' for genome assembly, '5' for nanopore reads (fasta/fastq))
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
167
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
168 -i <file> (/path/to/input/file)
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
169
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
170 -p <int> (number of threads for allele mode, if p >4, only 4 threads will be used for assembly since the amount of extracted reads is small, default=1)
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
171
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
172 -b <string> (algorithms for bwa mapping for allele mode; 'mem' for mem, 'sam' for samse/sampe; default=mem; optional; for now we only optimized for default "mem" mode)
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
173
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
174 -d <string> (output directory name)
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
175
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
176 -c <flag> (if '-c' was flagged, SeqSero2 will only output serotype prediction without the directory containing log files)
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
177
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
178 -n <string> (optional, to specify a sample name in the report output)
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
179
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
180 -s <flag> (if '-s' was flagged, SeqSero2 will not output header in `SeqSero_result.tsv`)
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
181
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
182 --check <flag> (use '--check' flag to check the required dependencies)
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
183
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
184 -v, --version (show program's version number and exit)
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
185
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
186 -----
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
187
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
188 _`Document`: https://github.com/denglab/SeqSero2
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
189
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
190 ]]></help>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
191 <citations>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
192 <citation type="bibtex">
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
193 @misc{zhang_yin_jones_zhang_deathrage_dinsmore_fitzgeral_fields_deng_2015, title={Salmonella serotype determination utilizing high-throughput genome sequencing data.}, journal={J Clin Microbiol}, publisher={ASM}, author={Zhang S, Yin Y, Jones MB, Zhang Z, Deatherage Kaiser BL, Dinsmore BA, Fitzgerald C, Fields PI, Deng X.}, year={2015}, month={Max}, url={http://http://jcm.asm.org/content/early/2015/03/05/JCM.00323-15}},
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
194 }</citation>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
195 <citation type="bibtex">
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
196 @misc{cfsan_biostatistics_group_2017, title={CFSAN Biostatistics Group fork of SeqSero2}, url={https://github.com/CFSAN-Biostatistics/SeqSero2.git}},
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
197 </citation>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
198 </citations>
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
199
93ef4c70ce5f "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/seqsero2 commit 8b41cf1161ac0f0836f5597167911596b0cfa27e-dirty"
thanhlv
parents:
diff changeset
200 </tool>