Mercurial > repos > cstrittmatter > ss2v110
comparison seqsero2.xml @ 0:fc22ec8e924e draft
planemo upload commit 6b0a9d0f0ef4bdb0c2e2c54070b510ff28125f7a
author | cstrittmatter |
---|---|
date | Tue, 21 Apr 2020 12:45:34 -0400 |
parents | |
children | 9811f8cd313d |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:fc22ec8e924e |
---|---|
1 <tool id="seqsero2v110" name="SeqSero2 v1.1.0" version="1.1.0"> | |
2 <description>Salmonella serotype prediction</description> | |
3 <requirements> | |
4 <requirement type="package" version="3.6">python</requirement> | |
5 <requirement type="package" version="1.74">biopython</requirement> | |
6 <requirement type="package" version="2.7.1">blast</requirement> | |
7 <requirement type="package" version="1.9">samtools</requirement> | |
8 <requirement type="package" version="2.9.1">sra-tools</requirement> | |
9 <requirement type="package" version="0.7.17">bwa</requirement> | |
10 <requirement type="package" version="3.13.1">spades</requirement> | |
11 <requirement type="package" version="2.27.1">bedtools</requirement> | |
12 </requirements> | |
13 <command detect_errors="exit_code"><![CDATA[ | |
14 echo "SeqSero2 v1.1.2" ; | |
15 mkdir ./output; | |
16 | |
17 #if $reads.reads_select == 'history' | |
18 #set $name = $reads.forward.name.split('.')[0].replace(' ','_') | |
19 #set $forward = $reads.forward | |
20 #set $reverse = $reads.reverse | |
21 #set $infile = $name + "_1.fastq " + $name + "_2.fastq" | |
22 #set $tval = 2 | |
23 #if $reverse.is_of_type('fastq.gz', 'fastqsanger.gz') | |
24 gunzip -c $reverse > reverse.fastq; | |
25 #set $reverse = './reverse.fastq' | |
26 gunzip -c $forward > forward.fastq; | |
27 #set $forward = './forward.fastq' | |
28 #end if | |
29 ln -s $forward ${name}_1.fastq; | |
30 ln -s $reverse ${name}_2.fastq; | |
31 #else if $reads.reads_select == 'collection' | |
32 #set $name = $reads.coll.name.replace(' ', '_') | |
33 #set $forward = $reads.coll.forward | |
34 #set $reverse = $reads.coll.reverse | |
35 #set $infile = $name + "_1.fastq " + $name + "_2.fastq" | |
36 #set $tval = 2 | |
37 #if $reverse.is_of_type('fastq.gz', 'fastqsanger.gz') | |
38 gunzip -c $reverse > reverse.fastq; | |
39 #set $reverse = './reverse.fastq' | |
40 gunzip -c $forward > forward.fastq; | |
41 #set $forward = './forward.fastq' | |
42 #end if | |
43 ln -s $forward ${name}_1.fastq; | |
44 ln -s $reverse ${name}_2.fastq; | |
45 #else | |
46 #set $name = $reads.assembly.name.replace(' ', '_') | |
47 #set $ga = $reads.assembly | |
48 #set $infile = $name + ".fasta" | |
49 ln -s $ga ${name}.fasta; | |
50 #set $tval = 4 | |
51 #set $mode='k' | |
52 #end if | |
53 echo $name ; | |
54 echo "-=-=-=-=-" ; | |
55 touch output/SeqSero_log.txt ; | |
56 python $__tool_directory__/SeqSero2_package.py | |
57 -p \${GALAXY_SLOTS:-4} | |
58 -t $tval | |
59 -m $mode | |
60 -d ./output | |
61 #if $mode == 'a': | |
62 -b $maptype | |
63 #end if | |
64 -i $infile && | |
65 echo "-=-=-=-=-" && | |
66 cat output/SeqSero_log.txt && | |
67 echo "-=-=-=-=-" && | |
68 ls -lah ./output | |
69 ]]></command> | |
70 <inputs> | |
71 | |
72 <conditional name="reads"> | |
73 <param name="reads_select" type="select" label="Genome assembly,paired-end collection, or two datasets from your history"> | |
74 <option value="collection">Paired collection from your history</option> | |
75 <option value="history">Two FASTQ datasets from your history</option> | |
76 <option value="genome">Genome Assembly</option> | |
77 </param> | |
78 <when value="collection"> | |
79 <param label="Paired reads" name="coll" type="data_collection" format="fastq,fastqsanger,fastq.gz,fastqsanger.gz" collection_type="paired" /> | |
80 </when> | |
81 <when value="history"> | |
82 <param label="Forward reads" type="data" name="forward" format="fastq,fastqsanger,fastq.gz,fastqsanger.gz" /> | |
83 <param label="Reverse reads" type="data" name="reverse" format="fastq,fastqsanger,fastq.gz,fastqsanger.gz" /> | |
84 </when> | |
85 <when value="genome"> | |
86 <param label="Genome assembly" name="assembly" type="data" format="fasta"/> | |
87 </when> | |
88 </conditional> | |
89 | |
90 <!-- <param name="fastq1" type="data" format="fastq" label="FASTQ paired end read 1" /> | |
91 <param name="fastq2" type="data" format="fastq" label="FASTQ paired end read 2" /> --> | |
92 <!-- <param name="numofthr" type="select" label="Number of threads"> | |
93 <option value="1">1</option> | |
94 <option value="2">2</option> | |
95 <option value="3">3</option> | |
96 <option value="4">4</option> --> | |
97 <!-- </param> --> | |
98 | |
99 <param label="Analysis mode" type="select" name="mode"> | |
100 <option value="a">allele mode</option> | |
101 <option value="k">k-mer mode</option> | |
102 </param> | |
103 | |
104 <param name="maptype" type="select" label="Algorithms for BWA mapping"> | |
105 <option value="mem">mem</option> | |
106 <option value="sam">sam</option> | |
107 </param> | |
108 | |
109 | |
110 | |
111 </inputs> | |
112 <outputs> | |
113 <data format="tabular" label="SeqSero Results" name="results" from_work_dir="output/SeqSero_result.txt"/> | |
114 </outputs> | |
115 <tests> | |
116 <!-- <test> | |
117 <param name="reads_select" value="history" /> | |
118 <param name="forward" value="forward.fastq.gz" ftype="fastqsanger.gz" /> | |
119 <param name="reverse" value="reverse.fastq.gz" ftype="fastqsanger.gz" /> | |
120 <output name="results" file="Seqsero_result.tsv" /> | |
121 </test> | |
122 <test> | |
123 <param name="reads_select" value="collection" /> | |
124 <param name="coll"> | |
125 <collection type="paired"> | |
126 <element name="forward" value="forward.fastq.gz" ftype="fastqsanger.gz" /> | |
127 <element name="reverse" value="reverse.fastq.gz" ftype="fastqsanger.gz" /> | |
128 </collection> | |
129 </param> | |
130 <output name="results" file="Seqsero_result.tsv" /> | |
131 </test> --> | |
132 <test> | |
133 <param name="mode" value="k" /> | |
134 <param name="reads_select" value="history" /> | |
135 <param name="forward" value="forward_25k.fastq.gz" ftype="fastqsanger" /> | |
136 <param name="reverse" value="reverse_25k.fastq.gz" ftype="fastqsanger" /> | |
137 <output name="results" file="Seqsero_result_25k.tsv" /> | |
138 </test> | |
139 <test> | |
140 <param name="mode" value="k" /> | |
141 <param name="reads_select" value="collection" /> | |
142 <param name="coll"> | |
143 <collection type="paired"> | |
144 <element name="forward" value="forward_25k.fastq.gz" ftype="fastqsanger.gz" /> | |
145 <element name="reverse" value="reverse_25k.fastq.gz" ftype="fastqsanger.gz" /> | |
146 </collection> | |
147 </param> | |
148 <output name="results" file="Seqsero_result_25k_coll.tsv" /> | |
149 </test> | |
150 <test> | |
151 <param name="mode" value="a" /> | |
152 <param name="reads_select" value="history" /> | |
153 <param name="forward" value="forward_250k.fastq.gz" ftype="fastqsanger" /> | |
154 <param name="reverse" value="reverse_250k.fastq.gz" ftype="fastqsanger" /> | |
155 <assert_stdout> | |
156 <has_text text="predicted antigenic profile does not exist" /> | |
157 </assert_stdout> | |
158 </test> | |
159 <!-- <test> | |
160 <param name="mode" value="a" /> | |
161 <param name="reads_select" value="collection" /> | |
162 <param name="coll"> | |
163 <collection type="paired"> | |
164 <element name="forward" value="forward_25k.fastq.gz" ftype="fastqsanger.gz" /> | |
165 <element name="reverse" value="reverse_25k.fastq.gz" ftype="fastqsanger.gz" /> | |
166 </collection> | |
167 </param> | |
168 <output name="results" file="Seqsero_result_allele.tsv" /> | |
169 </test> --> | |
170 </tests> | |
171 <help><![CDATA[ | |
172 | |
173 **Usage: SeqSero2.py** | |
174 | |
175 **Algorithms for BWA mapping** | |
176 | |
177 'mem' for mem, 'sam' for samse/sampe; default=mem; optional; for now SeqSero2 is only optimized for "mem" mode | |
178 | |
179 ]]></help> | |
180 <citations> | |
181 <citation type="bibtex"> | |
182 @misc{zhang_yin_jones_zhang_deathrage_dinsmore_fitzgeral_fields_deng_2015, | |
183 title={Salmonella serotype determination utilizing high-throughput genome sequencing data.}, | |
184 journal={J Clin Microbiol}, publisher={ASM}, | |
185 author={Zhang S, Yin Y, Jones MB, Zhang Z, Deatherage Kaiser BL, Dinsmore BA, Fitzgerald C, Fields PI, Deng X.}, | |
186 year={2015}, month={Max}, | |
187 url={http://http://jcm.asm.org/content/early/2015/03/05/JCM.00323-15}}, | |
188 }</citation> | |
189 <citation type="bibtex"> | |
190 @misc{cfsan_biostatistics_group_2017, | |
191 title={CFSAN Biostatistics Group fork of SeqSero2}, | |
192 url={https://github.com/CFSAN-Biostatistics/SeqSero2.git}}, | |
193 </citation> | |
194 </citations> | |
195 | |
196 </tool> |