annotate srst2v2.xml @ 0:efc202baae1f draft

planemo upload
author estrain
date Sun, 03 Dec 2017 13:28:11 -0500
parents
children 43cc60256036
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
efc202baae1f planemo upload
estrain
parents:
diff changeset
1 <tool id="srst2" name="SRST2 - Short Read Sequence Typer (v2)" version="0.2.0">
efc202baae1f planemo upload
estrain
parents:
diff changeset
2 <requirements>
efc202baae1f planemo upload
estrain
parents:
diff changeset
3 <requirement type="package" version="0.2.0">srst2</requirement>
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;
efc202baae1f planemo upload
estrain
parents:
diff changeset
9 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
10
efc202baae1f planemo upload
estrain
parents:
diff changeset
11 srst2
efc202baae1f planemo upload
estrain
parents:
diff changeset
12
efc202baae1f planemo upload
estrain
parents:
diff changeset
13 #if $paired_conditional.sPaired == "single"
efc202baae1f planemo upload
estrain
parents:
diff changeset
14 --input_se $paired_conditional.fastq1
efc202baae1f planemo upload
estrain
parents:
diff changeset
15 #else if $paired_conditional.sPaired == "paired"
efc202baae1f planemo upload
estrain
parents:
diff changeset
16 --input_pe sample_1.fastq sample_2.fastq
efc202baae1f planemo upload
estrain
parents:
diff changeset
17 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
18
efc202baae1f planemo upload
estrain
parents:
diff changeset
19 --output srst2out
efc202baae1f planemo upload
estrain
parents:
diff changeset
20 --save_scores
efc202baae1f planemo upload
estrain
parents:
diff changeset
21
efc202baae1f planemo upload
estrain
parents:
diff changeset
22 #if $job_type.job == "mlst"
efc202baae1f planemo upload
estrain
parents:
diff changeset
23 --mlst_definitions $job_type.mlst_definitions
efc202baae1f planemo upload
estrain
parents:
diff changeset
24 --mlst_db $job_type.mlst_db
efc202baae1f planemo upload
estrain
parents:
diff changeset
25 --mlst_delimiter $job_type.mlstdelim
efc202baae1f planemo upload
estrain
parents:
diff changeset
26 --mlst_max_mismatch $job_type.mlst_max_mismatch
efc202baae1f planemo upload
estrain
parents:
diff changeset
27 #else if $job_type.job == "gene"
efc202baae1f planemo upload
estrain
parents:
diff changeset
28 --gene_db $job_type.genedb
efc202baae1f planemo upload
estrain
parents:
diff changeset
29 --gene_max_mismatch $job_type.gene_max_mismatch
efc202baae1f planemo upload
estrain
parents:
diff changeset
30 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
31
efc202baae1f planemo upload
estrain
parents:
diff changeset
32 #if $options.select == "advanced"
efc202baae1f planemo upload
estrain
parents:
diff changeset
33 #if $options.min_coverage
efc202baae1f planemo upload
estrain
parents:
diff changeset
34 --min_coverage $options.min_coverage
efc202baae1f planemo upload
estrain
parents:
diff changeset
35 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
36 #if $options.max_divergence
efc202baae1f planemo upload
estrain
parents:
diff changeset
37 --max_divergence $options.max_divergence
efc202baae1f planemo upload
estrain
parents:
diff changeset
38 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
39 #if $options.min_depth
efc202baae1f planemo upload
estrain
parents:
diff changeset
40 --min_depth $options.min_depth
efc202baae1f planemo upload
estrain
parents:
diff changeset
41 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
42 #if $options.min_edge_depth
efc202baae1f planemo upload
estrain
parents:
diff changeset
43 --min_edge_depth $options.min_edge_depth
efc202baae1f planemo upload
estrain
parents:
diff changeset
44 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
45 #if $options.prob_err
efc202baae1f planemo upload
estrain
parents:
diff changeset
46 --prob_err $options.prob_err
efc202baae1f planemo upload
estrain
parents:
diff changeset
47 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
48 #if $options.stop_after
efc202baae1f planemo upload
estrain
parents:
diff changeset
49 --stop_after $options.stop_after
efc202baae1f planemo upload
estrain
parents:
diff changeset
50 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
51 --other "'-p \${GALAXY_SLOTS:-1}
efc202baae1f planemo upload
estrain
parents:
diff changeset
52 #if $options.maxins
efc202baae1f planemo upload
estrain
parents:
diff changeset
53 --maxins $options.maxins
efc202baae1f planemo upload
estrain
parents:
diff changeset
54 --minins $options.minins
efc202baae1f planemo upload
estrain
parents:
diff changeset
55 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
56 '"
efc202baae1f planemo upload
estrain
parents:
diff changeset
57 #if $options.mapq
efc202baae1f planemo upload
estrain
parents:
diff changeset
58 --mapq $options.mapq
efc202baae1f planemo upload
estrain
parents:
diff changeset
59 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
60 #if $options.baseq
efc202baae1f planemo upload
estrain
parents:
diff changeset
61 --baseq $options.baseq
efc202baae1f planemo upload
estrain
parents:
diff changeset
62 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
63 #else
efc202baae1f planemo upload
estrain
parents:
diff changeset
64 --other "'-p \${GALAXY_SLOTS:-1}'"
efc202baae1f planemo upload
estrain
parents:
diff changeset
65 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
66
efc202baae1f planemo upload
estrain
parents:
diff changeset
67 #if $job_type.job == "mlst"
efc202baae1f planemo upload
estrain
parents:
diff changeset
68 ; 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
69 #end if
efc202baae1f planemo upload
estrain
parents:
diff changeset
70
efc202baae1f planemo upload
estrain
parents:
diff changeset
71 ]]></command>
efc202baae1f planemo upload
estrain
parents:
diff changeset
72 <inputs>
efc202baae1f planemo upload
estrain
parents:
diff changeset
73 <conditional name="paired_conditional">
efc202baae1f planemo upload
estrain
parents:
diff changeset
74 <param name="sPaired" type="select" label="Single-End or Paired-End FASTQ?">
efc202baae1f planemo upload
estrain
parents:
diff changeset
75 <option value="single">Single-end</option>
efc202baae1f planemo upload
estrain
parents:
diff changeset
76 <option value="paired">Paired-end</option>
efc202baae1f planemo upload
estrain
parents:
diff changeset
77 </param>
efc202baae1f planemo upload
estrain
parents:
diff changeset
78 <when value="single">
efc202baae1f planemo upload
estrain
parents:
diff changeset
79 <param name="fastq1" type="data" format="fastq" label="FASTQ file" help="FASTQ" />
efc202baae1f planemo upload
estrain
parents:
diff changeset
80 </when>
efc202baae1f planemo upload
estrain
parents:
diff changeset
81 <when value="paired">
efc202baae1f planemo upload
estrain
parents:
diff changeset
82 <param name="fastq1" type="data" format="fastq" label="Forward FASTQ file" help="FASTQ" />
efc202baae1f planemo upload
estrain
parents:
diff changeset
83 <param name="fastq2" type="data" format="fastq" label="Reverse FASTQ file" help="FASTQ" />
efc202baae1f planemo upload
estrain
parents:
diff changeset
84 </when>
efc202baae1f planemo upload
estrain
parents:
diff changeset
85 </conditional>
efc202baae1f planemo upload
estrain
parents:
diff changeset
86
efc202baae1f planemo upload
estrain
parents:
diff changeset
87 <conditional name="job_type">
efc202baae1f planemo upload
estrain
parents:
diff changeset
88 <param name="job" type="select" label="MLST or Gene Presence/Absence?">
efc202baae1f planemo upload
estrain
parents:
diff changeset
89 <option value="mlst">MLST</option>
efc202baae1f planemo upload
estrain
parents:
diff changeset
90 <option value="gene">Gene</option>
efc202baae1f planemo upload
estrain
parents:
diff changeset
91 </param>
efc202baae1f planemo upload
estrain
parents:
diff changeset
92 <when value="mlst">
efc202baae1f planemo upload
estrain
parents:
diff changeset
93 <param type="data" name="mlst_db" label="Fasta file of MLST alleles" format="fasta" />
efc202baae1f planemo upload
estrain
parents:
diff changeset
94 <param type="data" name="mlst_definitions" label="ST definitions for MLST scheme" format="tabular" />
efc202baae1f planemo upload
estrain
parents:
diff changeset
95 <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
96 <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
97 <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
98 <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
99
efc202baae1f planemo upload
estrain
parents:
diff changeset
100 </when>
efc202baae1f planemo upload
estrain
parents:
diff changeset
101 <when value="gene">
efc202baae1f planemo upload
estrain
parents:
diff changeset
102 <param name="genedb" type="data" format="fasta" label="Fasta file for gene database" />
efc202baae1f planemo upload
estrain
parents:
diff changeset
103 <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
104 </when>
efc202baae1f planemo upload
estrain
parents:
diff changeset
105 </conditional>
efc202baae1f planemo upload
estrain
parents:
diff changeset
106
efc202baae1f planemo upload
estrain
parents:
diff changeset
107 <conditional name="options">
efc202baae1f planemo upload
estrain
parents:
diff changeset
108 <param name="select" type="select" label="Options Type">
efc202baae1f planemo upload
estrain
parents:
diff changeset
109 <option value="basic">Basic</option>
efc202baae1f planemo upload
estrain
parents:
diff changeset
110 <option value="advanced">Advanced</option>
efc202baae1f planemo upload
estrain
parents:
diff changeset
111 </param>
efc202baae1f planemo upload
estrain
parents:
diff changeset
112 <when value="advanced">
efc202baae1f planemo upload
estrain
parents:
diff changeset
113 <param name="min_coverage" type="integer" label="Minimum %coverage cutoff for gene reporting" value="90"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
114 <param name="max_divergence" type="integer" label="Maximum %divergence cutoff for gene reporting" value="10"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
115 <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
116 <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
117 <param name="prob_err" type="float" label="Probability of sequencing error" value="0.01"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
118 <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
119 <param name="mapq" type="integer" label="Samtools -q parameter" value="1"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
120 <param name="baseq" type="integer" label="Samtools -Q parameter" value="20"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
121 <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
122 <validator type="in_range" message="Must be less than -X parameter." min="0"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
123 </param>
efc202baae1f planemo upload
estrain
parents:
diff changeset
124 <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
125 <validator type="in_range" message="Must be greater than -I parameter." min="0"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
126 </param>
efc202baae1f planemo upload
estrain
parents:
diff changeset
127 </when>
efc202baae1f planemo upload
estrain
parents:
diff changeset
128 <when value="basic"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
129 </conditional>
efc202baae1f planemo upload
estrain
parents:
diff changeset
130
efc202baae1f planemo upload
estrain
parents:
diff changeset
131 </inputs>
efc202baae1f planemo upload
estrain
parents:
diff changeset
132
efc202baae1f planemo upload
estrain
parents:
diff changeset
133 <outputs>
efc202baae1f planemo upload
estrain
parents:
diff changeset
134 <data format="tabular" label="SRST2 Results" name="results" from_work_dir="*.txt"/>
efc202baae1f planemo upload
estrain
parents:
diff changeset
135 <data format="tabular" label="SRST2 Allele Scores" name="scores" from_work_dir="*.scores">
efc202baae1f planemo upload
estrain
parents:
diff changeset
136 <filter>job_type['job'] == "mlst"</filter>
efc202baae1f planemo upload
estrain
parents:
diff changeset
137 </data>
efc202baae1f planemo upload
estrain
parents:
diff changeset
138 <data format="tabular" label="SRST2 Profile Scores" name="pscores" from_work_dir="*.pscores">
efc202baae1f planemo upload
estrain
parents:
diff changeset
139 <filter> job_type['job'] == "mlst"</filter>
efc202baae1f planemo upload
estrain
parents:
diff changeset
140 </data>
efc202baae1f planemo upload
estrain
parents:
diff changeset
141 <data format="tabular" label="SRST2 Predicted Alleles" name="alleles" from_work_dir="*results.txt">
efc202baae1f planemo upload
estrain
parents:
diff changeset
142 <filter> job_type['job'] == "mlst"</filter>
efc202baae1f planemo upload
estrain
parents:
diff changeset
143 </data>
efc202baae1f planemo upload
estrain
parents:
diff changeset
144 <data format="tabular" label="SRST2 Gene Scores" name="gscores" from_work_dir="*.scores">
efc202baae1f planemo upload
estrain
parents:
diff changeset
145 <filter>job_type['job'] == "gene"</filter>
efc202baae1f planemo upload
estrain
parents:
diff changeset
146 </data>
efc202baae1f planemo upload
estrain
parents:
diff changeset
147 </outputs>
efc202baae1f planemo upload
estrain
parents:
diff changeset
148
efc202baae1f planemo upload
estrain
parents:
diff changeset
149 <help><![CDATA[
efc202baae1f planemo upload
estrain
parents:
diff changeset
150
efc202baae1f planemo upload
estrain
parents:
diff changeset
151 SRST2 - Short Read Sequence Typer (v2)
efc202baae1f planemo upload
estrain
parents:
diff changeset
152
efc202baae1f planemo upload
estrain
parents:
diff changeset
153 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
154
efc202baae1f planemo upload
estrain
parents:
diff changeset
155 ]]></help>
efc202baae1f planemo upload
estrain
parents:
diff changeset
156
efc202baae1f planemo upload
estrain
parents:
diff changeset
157
efc202baae1f planemo upload
estrain
parents:
diff changeset
158 <citations>
efc202baae1f planemo upload
estrain
parents:
diff changeset
159 <citation type="bibtex">
efc202baae1f planemo upload
estrain
parents:
diff changeset
160 @misc{pope_dashnow_zobel_holt_raven_schultz_inouye_tomita_2014,
efc202baae1f planemo upload
estrain
parents:
diff changeset
161 title={SRST2: Rapid genomic surveillance for public health and hospital microbiology labs},
efc202baae1f planemo upload
estrain
parents:
diff changeset
162 url={https://genomemedicine.biomedcentral.com/articles/10.1186/s13073-014-0090-6},
efc202baae1f planemo upload
estrain
parents:
diff changeset
163 journal={Genome Medicine}, publisher={BioMed Central},
efc202baae1f planemo upload
estrain
parents:
diff changeset
164 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
165 year={2014}, month={Nov}} ,
efc202baae1f planemo upload
estrain
parents:
diff changeset
166 }</citation>
efc202baae1f planemo upload
estrain
parents:
diff changeset
167 </citations>
efc202baae1f planemo upload
estrain
parents:
diff changeset
168 </tool>