jpayne@5
|
1 <tool id="shigatyper" name="ShigaTyper" version="1.0.6">
|
jpayne@0
|
2 <description>Shigella genoserotyping</description>
|
jpayne@0
|
3 <requirements>
|
jpayne@5
|
4 <requirement type="package" version="1.0.6">shigatyper</requirement>
|
jpayne@0
|
5 </requirements>
|
jpayne@0
|
6 <command detect_errors="exit_code"><![CDATA[
|
jpayne@2
|
7 #if $reads.reads_select == 'collection'
|
jpayne@2
|
8 #set forward=$reads.coll.forward
|
jpayne@2
|
9 #set reverse=$reads.coll.reverse
|
jpayne@2
|
10 #set name=$reads.coll.name
|
jpayne@2
|
11 #else
|
jpayne@2
|
12 #set name=$reads.coll.forward.name.split('_')[0]
|
jpayne@2
|
13 #end if
|
jpayne@2
|
14
|
jpayne@2
|
15 shigatyper -n "$name" "$forward" "$reverse" -vv >
|
jpayne@2
|
16
|
jpayne@2
|
17 #if $reads.reads_select == 'collection'
|
jpayne@2
|
18 ${serotype_from_collection}
|
jpayne@2
|
19 #else
|
jpayne@2
|
20 ${serotype_from_history}
|
jpayne@2
|
21 #end if
|
jpayne@0
|
22 ]]></command>
|
jpayne@0
|
23 <inputs>
|
jpayne@2
|
24 <conditional name="reads">
|
jpayne@2
|
25 <param name="reads_select" type="select" label="Paired-end collection, or two datasets from your history">
|
jpayne@2
|
26 <option value="collection">Paired collection from your history</option>
|
jpayne@2
|
27 <option value="history">Two FASTQ datasets from your history</option>
|
jpayne@2
|
28 </param>
|
jpayne@2
|
29 <when value="collection">
|
jpayne@2
|
30 <param label="Paired reads" name="coll" type="data_collection" format="fastq,fastqsanger,fastq.gz,fastqsanger.gz,fastq.bz2,fastqsanger.bz2" collection_type="paired" />
|
jpayne@2
|
31 </when>
|
jpayne@2
|
32 <when value="history">
|
jpayne@2
|
33 <param label="Forward reads" type="data" name="forward" format="fastq,fastqsanger,fastq.gz,fastqsanger.gz,fastq.bz2,fastqsanger.bz2" />
|
jpayne@2
|
34 <param label="Reverse reads" type="data" name="reverse" format="fastq,fastqsanger,fastq.gz,fastqsanger.gz,fastq.bz2,fastqsanger.bz2" />
|
jpayne@2
|
35 </when>
|
jpayne@2
|
36 </conditional>
|
jpayne@0
|
37 </inputs>
|
jpayne@0
|
38 <outputs>
|
jpayne@4
|
39 <data label="${reads.coll.name} Shigella serotype determination" name="serotype_from_collection" format="tabular">
|
jpayne@2
|
40 <filter>reads['reads_select'] == 'collection'</filter>
|
jpayne@2
|
41 </data>
|
jpayne@4
|
42 <data label="${reads.forward.name.split('_')[0]} Shigella serotype determination" name="serotype_from_history" format="tabular">
|
jpayne@2
|
43 <filter>reads['reads_select'] == 'history'</filter>
|
jpayne@2
|
44 </data>
|
jpayne@0
|
45 </outputs>
|
jpayne@0
|
46 <tests>
|
jpayne@0
|
47 <test>
|
jpayne@2
|
48 <param name="reads_select" value="history" />
|
jpayne@2
|
49 <param name="forward" value="CFSAN029786_S10_L001_R1_001.fastq.gz"/>
|
jpayne@2
|
50 <param name="reverse" value="CFSAN029786_S10_L001_R2_001.fastq.gz"/>
|
jpayne@2
|
51 <output name="serotype_from_history" file="output.tabular"/>
|
jpayne@2
|
52 </test>
|
jpayne@2
|
53 <test>
|
jpayne@2
|
54 <param name="reads_select" value="collection" />
|
jpayne@2
|
55 <param name="coll">
|
jpayne@2
|
56 <collection type="paired">
|
jpayne@2
|
57 <element name="forward" value="CFSAN029786_S10_L001_R1_001.fastq.gz" ftype="fastqsanger.gz" />
|
jpayne@2
|
58 <element name="reverse" value="CFSAN029786_S10_L001_R2_001.fastq.gz" ftype="fastqsanger.gz" />
|
jpayne@2
|
59 </collection>
|
jpayne@2
|
60 </param>
|
jpayne@2
|
61 <output name="serotype_from_collection" value="output.tabular" />
|
jpayne@0
|
62 </test>
|
jpayne@0
|
63 </tests>
|
jpayne@0
|
64 <help><![CDATA[
|
jpayne@0
|
65 usage: shigatyper [-h] [-n SAMPLE_NAME] [--verbose] [--version] read1 read2
|
jpayne@0
|
66
|
jpayne@0
|
67 positional arguments:
|
jpayne@0
|
68 read1
|
jpayne@0
|
69 read2
|
jpayne@0
|
70
|
jpayne@0
|
71
|
jpayne@0
|
72 ]]></help>
|
jpayne@0
|
73 <citations>
|
jpayne@3
|
74 <citation type="doi">10.1128/AEM.00165-19</citation>
|
jpayne@0
|
75 </citations>
|
jpayne@0
|
76 </tool> |