comparison srst2v2.xml @ 0:ffd5306daa4c draft

planemo upload
author estrain
date Tue, 28 Nov 2017 22:46:01 -0500
parents
children 16c9fccf550d
comparison
equal deleted inserted replaced
-1:000000000000 0:ffd5306daa4c
1 <tool id="srst2v2" name="SRST2 - Short Read Sequence Typer (v2)" version="0.2.0">
2 <requirements>
3 <requirement type="package" version="0.2.0">srst2</requirement>
4 </requirements>
5 <command detect_errors="exit_code"><![CDATA[
6 #if $paired_conditional.sPaired == "paired"
7 ln -s $paired_conditional.fastq1 sample_1.fastq;
8 ln -s $paired_conditional.fastq2 sample_2.fastq;
9 #end if
10
11 srst2
12
13 #if $paired_conditional.sPaired == "single"
14 --input_se $paired_conditional.fastq1
15 #else if $paired_conditional.sPaired == "paired"
16 --input_pe sample_1.fastq sample_2.fastq
17 #end if
18
19 --output srst2out
20 --save_scores
21 --mlst_definitions "$mlst_definitions"
22 --mlst_db "$mlst_db"
23 --mlst_delimiter $mlstdelim
24 --mlst_max_mismatch $mlst_max_mismatch
25
26 ]]></command>
27 <inputs>
28 <conditional name="paired_conditional">
29 <param name="sPaired" type="select" label="Single-End or Paired-End FASTQ?">
30 <option value="single">Single-end</option>
31 <option value="paired">Paired-end</option>
32 </param>
33 <when value="single">
34 <param name="fastq1" type="data" format="fastq" label="FASTQ file" help="FASTQ" />
35 </when>
36 <when value="paired">
37 <param name="fastq1" type="data" format="fastq" label="Forward FASTQ file" help="FASTQ" />
38 <param name="fastq2" type="data" format="fastq" label="Reverse FASTQ file" help="FASTQ" />
39 </when>
40 </conditional>
41
42 <param type="data" name="mlst_db" label="Fasta file of MLST alleles" format="fasta" />
43 <param type="data" name="mlst_definitions" label="ST definitions for MLST scheme" format="tabular" />
44 <param type="text" name="mlstdelim" value="_" format="txt" label="Character(s) separating gene name from allele number in MLST database (default &apos;_&apos;)" />
45 <param type="integer" name="mlst_max_mismatch" value="10" format="txt" label="Maximum number of mismatches per read for MLST allele calling (default 10)" />
46 </inputs>
47
48 <outputs>
49 <data format="txt" label="Scores" name="scores" from_work_dir="*.scores"/>
50 <data format="bam" label="bam alignment" name="bam" from_work_dir="*.sorted.bam"/>
51 <data format="pileup" label="pileup" name="pileup" from_work_dir="*.pileup"/>
52 <data format="txt" label="Alleles" name="alleles" from_work_dir="*results.txt"/>
53 </outputs>
54
55 <help><![CDATA[
56
57 SRST2 - Short Read Sequence Typer (v2)
58
59 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.
60
61
62
63 optional arguments:
64 -h, --help show this help message and exit
65 --version show program's version number and exit
66 --input_se INPUT_SE
67 Single end read file(s) for analysing (may be gzipped)
68 --input_pe INPUT_PE
69 Paired end read files for analysing (may be gzipped)
70 --merge_paired Switch on if all the input read sets belong to a
71 single sample, and you want to merge their data to get
72 a single result
73 --forward FORWARD Designator for forward reads (only used if NOT in
74 MiSeq format sample_S1_L001_R1_001.fastq.gz; otherwise
75 default is _1, i.e. expect forward reads as
76 sample_1.fastq.gz)
77 --reverse REVERSE Designator for reverse reads (only used if NOT in
78 MiSeq format sample_S1_L001_R2_001.fastq.gz; otherwise
79 default is _2, i.e. expect forward reads as
80 sample_2.fastq.gz
81 --read_type READ_TYPE
82 Read file type (for bowtie2; default is q=fastq; other
83 options: qseq=solexa, f=fasta).
84 --mlst_db MLST_DB Fasta file of MLST alleles (optional)
85 --mlst_delimiter MLST_DELIMITER
86 Character(s) separating gene name from allele number
87 in MLST database (default "-", as in arcc-1)
88 --mlst_definitions MLST_DEFINITIONS
89 ST definitions for MLST scheme (required if mlst_db
90 supplied and you want to calculate STs)
91 --mlst_max_mismatch MLST_MAX_MISMATCH
92 Maximum number of mismatches per read for MLST allele
93 calling (default 10)
94 --gene_db GENE_DB
95 Fasta file/s for gene databases (optional)
96 --no_gene_details Switch OFF verbose reporting of gene typing
97 --gene_max_mismatch GENE_MAX_MISMATCH
98 Maximum number of mismatches per read for gene
99 detection and allele calling (default 10)
100 --min_coverage MIN_COVERAGE
101 Minimum %coverage cutoff for gene reporting (default
102 90)
103 --max_divergence MAX_DIVERGENCE
104 Maximum %divergence cutoff for gene reporting (default
105 10)
106 --min_depth MIN_DEPTH
107 Minimum mean depth to flag as dubious allele call
108 (default 5)
109 --min_edge_depth MIN_EDGE_DEPTH
110 Minimum edge depth to flag as dubious allele call
111 (default 2)
112 --prob_err PROB_ERR Probability of sequencing error (default 0.01)
113 --truncation_score_tolerance TRUNCATION_SCORE_TOLERANCE
114 % increase in score allowed to choose non-truncated
115 allele
116 --stop_after STOP_AFTER
117 Stop mapping after this number of reads have been
118 mapped (otherwise map all)
119 --other OTHER
120 Other arguments to pass to bowtie2 (must be escaped,
121 e.g. "\\--no-mixed".)
122 --max_unaligned_overlap MAX_UNALIGNED_OVERLAP
123 Read discarded from alignment if either of its ends
124 has unaligned overlap with the reference that is
125 longer than this value (default 10)
126 --mapq MAPQ Samtools -q parameter (default 1)
127 --baseq BASEQ Samtools -Q parameter (default 20)
128 --samtools_args SAMTOOLS_ARGS
129 Other arguments to pass to samtools mpileup (must be
130 escaped, e.g. "\\-A").
131 --output OUTPUT Prefix for srst2 output files
132 --log Switch ON logging to file (otherwise log to stdout)
133 --save_scores Switch ON verbose reporting of all scores
134 --report_new_consensus
135 If a matching alleles is not found, report the
136 consensus allele. Note, only SNP differences are
137 considered, not indels.
138 --report_all_consensus
139 Report the consensus allele for the most likely
140 allele. Note, only SNP differences are considered, not
141 indels.
142 --use_existing_bowtie2_sam
143 Use existing SAM file generated by Bowtie2 if
144 available, otherwise they will be generated
145 --use_existing_pileup
146 Use existing pileups if available, otherwise they will
147 be generated
148 --use_existing_scores
149 Use existing scores files if available, otherwise they
150 will be generated
151 --keep_interim_alignment
152 Keep interim files (sam & unsorted bam), otherwise
153 they will be deleted after sorted bam is created
154 --threads THREADS Use multiple threads in Bowtie and Samtools
155 --prev_output PREV_OUTPUT
156 SRST2 results files to compile (any new results from
157 this run will also be incorporated)
158
159
160 ]]></help>
161
162
163 <citations>
164 <citation type="bibtex">
165 @misc{pope_dashnow_zobel_holt_raven_schultz_inouye_tomita_2014,
166 title={SRST2: Rapid genomic surveillance for public health and hospital microbiology labs},
167 url={https://genomemedicine.biomedcentral.com/articles/10.1186/s13073-014-0090-6},
168 journal={Genome Medicine}, publisher={BioMed Central},
169 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},
170 year={2014}, month={Nov}} ,
171 }</citation>
172 </citations>
173 </tool>