annotate srst2v2.xml @ 2:6787d952242e draft

Uploaded
author estrain
date Sun, 19 May 2019 07:36:55 -0400
parents 43cc60256036
children 8bf4865cc3e3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
6787d952242e Uploaded
estrain
parents: 1
diff changeset
1 <tool id="srst2" name="SRST2 - Short Read Sequence Typer (v2)" version="0.2.0">
0
efc202baae1f planemo upload
estrain
parents:
diff changeset
2 <requirements>
2
6787d952242e Uploaded
estrain
parents: 1
diff changeset
3 <requirement type="package" version="0.2.0">srst2</requirement>
0
efc202baae1f planemo upload
estrain
parents:
diff changeset
4 </requirements>
efc202baae1f planemo upload
estrain
parents:
diff changeset
5 <command detect_errors="exit_code"><![CDATA[
efc202baae1f planemo upload
estrain
parents:
diff changeset
6 #if $paired_conditional.sPaired == "paired"
efc202baae1f planemo upload
estrain
parents:
diff changeset
7 ln -s $paired_conditional.fastq1 sample_1.fastq;
efc202baae1f planemo upload
estrain
parents:
diff changeset
8 ln -s $paired_conditional.fastq2 sample_2.fastq;
2
6787d952242e Uploaded
estrain
parents: 1
diff changeset
9 #else if $paired_conditional.sPaired == "paired_coll"
6787d952242e Uploaded
estrain
parents: 1
diff changeset
10 ln -s $paired_conditional.coll.forward sample_1.fastq;
6787d952242e Uploaded
estrain
parents: 1
diff changeset
11 ln -s $paired_conditional.coll.reverse sample_2.fastq;
0
efc202baae1f planemo upload
estrain
parents:
diff changeset
12 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
13
efc202baae1f planemo upload
estrain
parents:
diff changeset
14 srst2
efc202baae1f planemo upload
estrain
parents:
diff changeset
15
efc202baae1f planemo upload
estrain
parents:
diff changeset
16 #if $paired_conditional.sPaired == "single"
efc202baae1f planemo upload
estrain
parents:
diff changeset
17 --input_se $paired_conditional.fastq1
efc202baae1f planemo upload
estrain
parents:
diff changeset
18 #else if $paired_conditional.sPaired == "paired"
efc202baae1f planemo upload
estrain
parents:
diff changeset
19 --input_pe sample_1.fastq sample_2.fastq
2
6787d952242e Uploaded
estrain
parents: 1
diff changeset
20 #else if $paired_conditional.sPaired == "paired_coll"
6787d952242e Uploaded
estrain
parents: 1
diff changeset
21 --input_pe sample_1.fastq sample_2.fastq
0
efc202baae1f planemo upload
estrain
parents:
diff changeset
22 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
23
efc202baae1f planemo upload
estrain
parents:
diff changeset
24 --output srst2out
efc202baae1f planemo upload
estrain
parents:
diff changeset
25 --save_scores
efc202baae1f planemo upload
estrain
parents:
diff changeset
26
efc202baae1f planemo upload
estrain
parents:
diff changeset
27 #if $job_type.job == "mlst"
efc202baae1f planemo upload
estrain
parents:
diff changeset
28 --mlst_definitions $job_type.mlst_definitions
efc202baae1f planemo upload
estrain
parents:
diff changeset
29 --mlst_db $job_type.mlst_db
efc202baae1f planemo upload
estrain
parents:
diff changeset
30 --mlst_delimiter $job_type.mlstdelim
efc202baae1f planemo upload
estrain
parents:
diff changeset
31 --mlst_max_mismatch $job_type.mlst_max_mismatch
efc202baae1f planemo upload
estrain
parents:
diff changeset
32 #else if $job_type.job == "gene"
efc202baae1f planemo upload
estrain
parents:
diff changeset
33 --gene_db $job_type.genedb
efc202baae1f planemo upload
estrain
parents:
diff changeset
34 --gene_max_mismatch $job_type.gene_max_mismatch
2
6787d952242e Uploaded
estrain
parents: 1
diff changeset
35 #else if $job_type.job == "nost"
6787d952242e Uploaded
estrain
parents: 1
diff changeset
36 --mlst_db $job_type.mlst_db
6787d952242e Uploaded
estrain
parents: 1
diff changeset
37 --mlst_delimiter $job_type.mlstdelim
6787d952242e Uploaded
estrain
parents: 1
diff changeset
38 --mlst_max_mismatch $job_type.mlst_max_mismatch
0
efc202baae1f planemo upload
estrain
parents:
diff changeset
39 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
40
efc202baae1f planemo upload
estrain
parents:
diff changeset
41 #if $options.select == "advanced"
efc202baae1f planemo upload
estrain
parents:
diff changeset
42 #if $options.min_coverage
efc202baae1f planemo upload
estrain
parents:
diff changeset
43 --min_coverage $options.min_coverage
efc202baae1f planemo upload
estrain
parents:
diff changeset
44 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
45 #if $options.max_divergence
efc202baae1f planemo upload
estrain
parents:
diff changeset
46 --max_divergence $options.max_divergence
efc202baae1f planemo upload
estrain
parents:
diff changeset
47 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
48 #if $options.min_depth
efc202baae1f planemo upload
estrain
parents:
diff changeset
49 --min_depth $options.min_depth
efc202baae1f planemo upload
estrain
parents:
diff changeset
50 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
51 #if $options.min_edge_depth
efc202baae1f planemo upload
estrain
parents:
diff changeset
52 --min_edge_depth $options.min_edge_depth
efc202baae1f planemo upload
estrain
parents:
diff changeset
53 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
54 #if $options.prob_err
efc202baae1f planemo upload
estrain
parents:
diff changeset
55 --prob_err $options.prob_err
efc202baae1f planemo upload
estrain
parents:
diff changeset
56 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
57 #if $options.stop_after
efc202baae1f planemo upload
estrain
parents:
diff changeset
58 --stop_after $options.stop_after
efc202baae1f planemo upload
estrain
parents:
diff changeset
59 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
60 --other "'-p \${GALAXY_SLOTS:-1}
efc202baae1f planemo upload
estrain
parents:
diff changeset
61 #if $options.maxins
efc202baae1f planemo upload
estrain
parents:
diff changeset
62 --maxins $options.maxins
efc202baae1f planemo upload
estrain
parents:
diff changeset
63 --minins $options.minins
efc202baae1f planemo upload
estrain
parents:
diff changeset
64 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
65 '"
efc202baae1f planemo upload
estrain
parents:
diff changeset
66 #if $options.mapq
efc202baae1f planemo upload
estrain
parents:
diff changeset
67 --mapq $options.mapq
efc202baae1f planemo upload
estrain
parents:
diff changeset
68 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
69 #if $options.baseq
efc202baae1f planemo upload
estrain
parents:
diff changeset
70 --baseq $options.baseq
efc202baae1f planemo upload
estrain
parents:
diff changeset
71 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
72 #else
efc202baae1f planemo upload
estrain
parents:
diff changeset
73 --other "'-p \${GALAXY_SLOTS:-1}'"
efc202baae1f planemo upload
estrain
parents:
diff changeset
74 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
75
efc202baae1f planemo upload
estrain
parents:
diff changeset
76 #if $job_type.job == "mlst"
efc202baae1f planemo upload
estrain
parents:
diff changeset
77 ; python $__tool_directory__/scoreProfiles.py --mlst_definitions $job_type.mlst_definitions --profile_cov $job_type.profile_cov --profile_max_mismatch $job_type.profile_max_mismatch --output srst2.pscores
efc202baae1f planemo upload
estrain
parents:
diff changeset
78 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
79
efc202baae1f planemo upload
estrain
parents:
diff changeset
80 ]]></command>
efc202baae1f planemo upload
estrain
parents:
diff changeset
81 <inputs>
efc202baae1f planemo upload
estrain
parents:
diff changeset
82 <conditional name="paired_conditional">
efc202baae1f planemo upload
estrain
parents:
diff changeset
83 <param name="sPaired" type="select" label="Single-End or Paired-End FASTQ?">
2
6787d952242e Uploaded
estrain
parents: 1
diff changeset
84 <option value="single">Single FASTQ</option>
6787d952242e Uploaded
estrain
parents: 1
diff changeset
85 <option value="paired">Forward and Reverse FASTQ</option>
6787d952242e Uploaded
estrain
parents: 1
diff changeset
86 <option value="paired_coll">Paired FASTQ Collection</option>
0
efc202baae1f planemo upload
estrain
parents:
diff changeset
87 </param>
efc202baae1f planemo upload
estrain
parents:
diff changeset
88 <when value="single">
1
43cc60256036 Uploaded
estrain
parents: 0
diff changeset
89 <param name="fastq1" type="data" format="fastq,fastqsanger" label="FASTQ file" help="FASTQ" />
0
efc202baae1f planemo upload
estrain
parents:
diff changeset
90 </when>
efc202baae1f planemo upload
estrain
parents:
diff changeset
91 <when value="paired">
1
43cc60256036 Uploaded
estrain
parents: 0
diff changeset
92 <param name="fastq1" type="data" format="fastq,fastqsanger" label="Forward FASTQ file" help="FASTQ" />
43cc60256036 Uploaded
estrain
parents: 0
diff changeset
93 <param name="fastq2" type="data" format="fastq,fastqsanger" label="Reverse FASTQ file" help="FASTQ" />
0
efc202baae1f planemo upload
estrain
parents:
diff changeset
94 </when>
2
6787d952242e Uploaded
estrain
parents: 1
diff changeset
95 <when value="paired_coll">
6787d952242e Uploaded
estrain
parents: 1
diff changeset
96 <param name="coll" label="Paired FASTQ" type="data_collection" format="fastq,fastqsanger" collection_type="paired" />
6787d952242e Uploaded
estrain
parents: 1
diff changeset
97 </when>
0
efc202baae1f planemo upload
estrain
parents:
diff changeset
98 </conditional>
efc202baae1f planemo upload
estrain
parents:
diff changeset
99
efc202baae1f planemo upload
estrain
parents:
diff changeset
100 <conditional name="job_type">
2
6787d952242e Uploaded
estrain
parents: 1
diff changeset
101 <param name="job" type="select" label="MLST, MLST with ST, or Gene Presence/Absence?">
6787d952242e Uploaded
estrain
parents: 1
diff changeset
102 <option value="nost">MLST</option>
6787d952242e Uploaded
estrain
parents: 1
diff changeset
103 <option value="mlst">MLST with ST Definitions</option>
0
efc202baae1f planemo upload
estrain
parents:
diff changeset
104 <option value="gene">Gene</option>
efc202baae1f planemo upload
estrain
parents:
diff changeset
105 </param>
2
6787d952242e Uploaded
estrain
parents: 1
diff changeset
106 <when value="nost">
6787d952242e Uploaded
estrain
parents: 1
diff changeset
107 <param type="data" name="mlst_db" label="Fasta file of MLST alleles" format="fasta" />
6787d952242e Uploaded
estrain
parents: 1
diff changeset
108 <param type="text" name="mlstdelim" value="_" format="txt" label="Character(s) separating gene name from allele number in MLST database (default &apos;_&apos;)" />
6787d952242e Uploaded
estrain
parents: 1
diff changeset
109 <param type="integer" name="mlst_max_mismatch" value="10" format="txt" label="Maximum number of mismatches per read" />
6787d952242e Uploaded
estrain
parents: 1
diff changeset
110 </when>
0
efc202baae1f planemo upload
estrain
parents:
diff changeset
111 <when value="mlst">
efc202baae1f planemo upload
estrain
parents:
diff changeset
112 <param type="data" name="mlst_db" label="Fasta file of MLST alleles" format="fasta" />
efc202baae1f planemo upload
estrain
parents:
diff changeset
113 <param type="data" name="mlst_definitions" label="ST definitions for MLST scheme" format="tabular" />
efc202baae1f planemo upload
estrain
parents:
diff changeset
114 <param type="text" name="mlstdelim" value="_" format="txt" label="Character(s) separating gene name from allele number in MLST database (default &apos;_&apos;)" />
efc202baae1f planemo upload
estrain
parents:
diff changeset
115 <param type="integer" name="mlst_max_mismatch" value="10" format="txt" label="Maximum number of mismatches per read" />
efc202baae1f planemo upload
estrain
parents:
diff changeset
116 <param type="float" name="profile_max_mismatch" value="1" format="txt" label="Maximum number of mismatches for reporting ST profile" />
efc202baae1f planemo upload
estrain
parents:
diff changeset
117 <param type="float" name="profile_cov" value="98" format="txt" label="Minimum mean % coverage for reporting ST profile" />
efc202baae1f planemo upload
estrain
parents:
diff changeset
118
efc202baae1f planemo upload
estrain
parents:
diff changeset
119 </when>
efc202baae1f planemo upload
estrain
parents:
diff changeset
120 <when value="gene">
efc202baae1f planemo upload
estrain
parents:
diff changeset
121 <param name="genedb" type="data" format="fasta" label="Fasta file for gene database" />
efc202baae1f planemo upload
estrain
parents:
diff changeset
122 <param name="gene_max_mismatch" type="integer" value="10" format="txt" label="Maximum number of mistaches per read (default 10)" />
efc202baae1f planemo upload
estrain
parents:
diff changeset
123 </when>
efc202baae1f planemo upload
estrain
parents:
diff changeset
124 </conditional>
efc202baae1f planemo upload
estrain
parents:
diff changeset
125
efc202baae1f planemo upload
estrain
parents:
diff changeset
126 <conditional name="options">
efc202baae1f planemo upload
estrain
parents:
diff changeset
127 <param name="select" type="select" label="Options Type">
efc202baae1f planemo upload
estrain
parents:
diff changeset
128 <option value="basic">Basic</option>
efc202baae1f planemo upload
estrain
parents:
diff changeset
129 <option value="advanced">Advanced</option>
efc202baae1f planemo upload
estrain
parents:
diff changeset
130 </param>
efc202baae1f planemo upload
estrain
parents:
diff changeset
131 <when value="advanced">
efc202baae1f planemo upload
estrain
parents:
diff changeset
132 <param name="min_coverage" type="integer" label="Minimum %coverage cutoff for gene reporting" value="90"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
133 <param name="max_divergence" type="integer" label="Maximum %divergence cutoff for gene reporting" value="10"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
134 <param name="min_depth" type="integer" label="Minimum mean depth to flag as dubious allele call" value="5"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
135 <param name="min_edge_depth" type="integer" label="Minimum edge depth to flag as dubious allele call" value="2"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
136 <param name="prob_err" type="float" label="Probability of sequencing error" value="0.01"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
137 <param name="stop_after" type="integer" label="Stop mapping after this number of reads have been mapped (otherwise map all)" optional="true"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
138 <param name="mapq" type="integer" label="Samtools -q parameter" value="1"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
139 <param name="baseq" type="integer" label="Samtools -Q parameter" value="20"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
140 <param name="minins" type="integer" label="Bowtie 2 -I parameter. The minimum fragment length for valid paired-end alignments." value="0" >
efc202baae1f planemo upload
estrain
parents:
diff changeset
141 <validator type="in_range" message="Must be less than -X parameter." min="0"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
142 </param>
efc202baae1f planemo upload
estrain
parents:
diff changeset
143 <param name="maxins" type="integer" label="Bowtie 2 -X parameter. The maximum fragment length for valid paired-end alignments." value="1000" >
efc202baae1f planemo upload
estrain
parents:
diff changeset
144 <validator type="in_range" message="Must be greater than -I parameter." min="0"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
145 </param>
efc202baae1f planemo upload
estrain
parents:
diff changeset
146 </when>
efc202baae1f planemo upload
estrain
parents:
diff changeset
147 <when value="basic"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
148 </conditional>
efc202baae1f planemo upload
estrain
parents:
diff changeset
149
efc202baae1f planemo upload
estrain
parents:
diff changeset
150 </inputs>
efc202baae1f planemo upload
estrain
parents:
diff changeset
151
efc202baae1f planemo upload
estrain
parents:
diff changeset
152 <outputs>
efc202baae1f planemo upload
estrain
parents:
diff changeset
153 <data format="tabular" label="SRST2 Results" name="results" from_work_dir="*.txt"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
154 <data format="tabular" label="SRST2 Allele Scores" name="scores" from_work_dir="*.scores">
efc202baae1f planemo upload
estrain
parents:
diff changeset
155 <filter>job_type['job'] == "mlst"</filter>
efc202baae1f planemo upload
estrain
parents:
diff changeset
156 </data>
efc202baae1f planemo upload
estrain
parents:
diff changeset
157 <data format="tabular" label="SRST2 Profile Scores" name="pscores" from_work_dir="*.pscores">
efc202baae1f planemo upload
estrain
parents:
diff changeset
158 <filter> job_type['job'] == "mlst"</filter>
efc202baae1f planemo upload
estrain
parents:
diff changeset
159 </data>
efc202baae1f planemo upload
estrain
parents:
diff changeset
160 <data format="tabular" label="SRST2 Predicted Alleles" name="alleles" from_work_dir="*results.txt">
efc202baae1f planemo upload
estrain
parents:
diff changeset
161 <filter> job_type['job'] == "mlst"</filter>
efc202baae1f planemo upload
estrain
parents:
diff changeset
162 </data>
efc202baae1f planemo upload
estrain
parents:
diff changeset
163 <data format="tabular" label="SRST2 Gene Scores" name="gscores" from_work_dir="*.scores">
efc202baae1f planemo upload
estrain
parents:
diff changeset
164 <filter>job_type['job'] == "gene"</filter>
efc202baae1f planemo upload
estrain
parents:
diff changeset
165 </data>
efc202baae1f planemo upload
estrain
parents:
diff changeset
166 </outputs>
efc202baae1f planemo upload
estrain
parents:
diff changeset
167
efc202baae1f planemo upload
estrain
parents:
diff changeset
168 <help><![CDATA[
efc202baae1f planemo upload
estrain
parents:
diff changeset
169
efc202baae1f planemo upload
estrain
parents:
diff changeset
170 SRST2 - Short Read Sequence Typer (v2)
efc202baae1f planemo upload
estrain
parents:
diff changeset
171
efc202baae1f planemo upload
estrain
parents:
diff changeset
172 This program is designed to take Illumina sequence data, a MLST database and/or a database of gene sequences (e.g. resistance genes, virulence genes, etc) and report the presence of STs and/or reference genes.
efc202baae1f planemo upload
estrain
parents:
diff changeset
173
efc202baae1f planemo upload
estrain
parents:
diff changeset
174 ]]></help>
efc202baae1f planemo upload
estrain
parents:
diff changeset
175
efc202baae1f planemo upload
estrain
parents:
diff changeset
176
efc202baae1f planemo upload
estrain
parents:
diff changeset
177 <citations>
efc202baae1f planemo upload
estrain
parents:
diff changeset
178 <citation type="bibtex">
efc202baae1f planemo upload
estrain
parents:
diff changeset
179 @misc{pope_dashnow_zobel_holt_raven_schultz_inouye_tomita_2014,
efc202baae1f planemo upload
estrain
parents:
diff changeset
180 title={SRST2: Rapid genomic surveillance for public health and hospital microbiology labs},
efc202baae1f planemo upload
estrain
parents:
diff changeset
181 url={https://genomemedicine.biomedcentral.com/articles/10.1186/s13073-014-0090-6},
efc202baae1f planemo upload
estrain
parents:
diff changeset
182 journal={Genome Medicine}, publisher={BioMed Central},
efc202baae1f planemo upload
estrain
parents:
diff changeset
183 author={Pope, Bernard J and Dashnow, Harriet and Zobel, Justin and Holt, Kathryn E and Raven, Lesley-Ann and Schultz, Mark B and Inouye, Michael and Tomita, Takehiro},
efc202baae1f planemo upload
estrain
parents:
diff changeset
184 year={2014}, month={Nov}} ,
efc202baae1f planemo upload
estrain
parents:
diff changeset
185 }</citation>
efc202baae1f planemo upload
estrain
parents:
diff changeset
186 </citations>
efc202baae1f planemo upload
estrain
parents:
diff changeset
187 </tool>