|
0
|
1 <tool id="ectyper" name="ectyper" version="0.1">
|
|
|
2 <requirements>
|
|
|
3 <requirement type="package" version="0.1">ectyper</requirement>
|
|
|
4 </requirements>
|
|
|
5 <command detect_errors="exit_code"><![CDATA[
|
|
|
6 #if $jobtype.select == "asm"
|
|
|
7 ln -s $jobtype.draft sample.fasta;
|
|
|
8 #else if $jobtype.select == "se"
|
|
|
9 ln -s $jobtype.fastq1 sample_1.fastq;
|
|
|
10 #else if $jobtype.select == "pe"
|
|
|
11 ln -s $jobtype.fastq1 sample_1.fastq;
|
|
|
12 ln -s $jobtype.fastq2 sample_2.fastq;
|
|
|
13 #end if
|
|
|
14
|
|
|
15 python $__tool_directory__/bin/ectyper
|
|
|
16 #if $jobtype.select == "asm"
|
|
|
17 -i sample.fasta
|
|
|
18 #else if $jobtype.select == "se"
|
|
|
19 -i sample_1.fastq
|
|
|
20 #else if $jobtype.select == "pe"
|
|
|
21 -i sample_1.fastq sample_2.fastq
|
|
|
22 #end if
|
|
2
|
23
|
|
|
24 #if $options.percent_identity
|
|
|
25 -d $options.percent_identity
|
|
|
26 #end if
|
|
|
27
|
|
|
28 #if $options.percent_length
|
|
|
29 -l $options.percent_length
|
|
|
30 #end if
|
|
|
31
|
|
0
|
32 cat ectyper_result*/ectyper_result.txt > results.txt;
|
|
|
33
|
|
|
34 ]]></command>
|
|
|
35 <inputs>
|
|
|
36 <conditional name="jobtype">
|
|
|
37 <param name="select" type="select" label="Assembly or FASTQ Reads?">
|
|
|
38 <option value="asm">Genome Assembly</option>
|
|
|
39 <option value="se">Single-End Reads</option>
|
|
|
40 <option value="pe">Paired-End Reads</option>
|
|
|
41 </param>
|
|
|
42 <when value="asm">
|
|
|
43 <param name="draft" type="data" format="fasta" label="FASTA" />
|
|
|
44 </when>
|
|
|
45 <when value="se">
|
|
|
46 <param name="fastq1" type="data" format="fastq" label="FASTQ" />
|
|
|
47 </when>
|
|
|
48 <when value="pe">
|
|
|
49 <param name="fastq1" type="data" format="fastq" label="FASTQ" />
|
|
|
50 <param name="fastq2" type="data" format="fastq" label="FASTQ" />
|
|
|
51 </when>
|
|
|
52 </conditional>
|
|
|
53
|
|
2
|
54 <conditional name="options">
|
|
|
55 <param name="percent_identity" type="integer" label="Percent identity required for an allele match [default 90]" value="90"/>
|
|
|
56 <param name="percent_length" type="integer" label="Percent length required for an allele match [default 50]" value="50"/>
|
|
0
|
57 </conditional>
|
|
|
58
|
|
|
59 </inputs>
|
|
|
60 <outputs>
|
|
|
61 <data format="txt" label="ectyper Results" name="results" from_work_dir="results.txt"/>
|
|
|
62 </outputs>
|
|
2
|
63
|
|
0
|
64 <help><![CDATA[
|
|
|
65
|
|
|
66 **Usage: ectyper**
|
|
|
67
|
|
|
68 **INPUT**
|
|
|
69
|
|
2
|
70 A fasta assembly or single or paired end reads
|
|
0
|
71
|
|
|
72 **PERCENTIDENTITY**
|
|
|
73
|
|
|
74 Percentage of identity wanted to use against the database. From 0 to 100, default is 90%.
|
|
|
75
|
|
|
76 **PERCENTLENGTH**
|
|
|
77
|
|
|
78 Percentage of length wanted to use against the database. From 0 to 100, default is 50%.
|
|
|
79
|
|
2
|
80 https://github.com/phac-nml/ecoli_serotyping
|
|
0
|
81
|
|
|
82 ]]></help>
|
|
|
83 </tool>
|