|
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
|
|
7
|
15 $__tool_directory__/ectyper
|
|
0
|
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
|
|
5
|
23 -d $percent_identity
|
|
|
24 -l $percent_length
|
|
|
25
|
|
0
|
26 cat ectyper_result*/ectyper_result.txt > results.txt;
|
|
|
27
|
|
|
28 ]]></command>
|
|
|
29 <inputs>
|
|
|
30 <conditional name="jobtype">
|
|
|
31 <param name="select" type="select" label="Assembly or FASTQ Reads?">
|
|
|
32 <option value="asm">Genome Assembly</option>
|
|
|
33 <option value="se">Single-End Reads</option>
|
|
|
34 <option value="pe">Paired-End Reads</option>
|
|
|
35 </param>
|
|
|
36 <when value="asm">
|
|
|
37 <param name="draft" type="data" format="fasta" label="FASTA" />
|
|
|
38 </when>
|
|
|
39 <when value="se">
|
|
|
40 <param name="fastq1" type="data" format="fastq" label="FASTQ" />
|
|
|
41 </when>
|
|
|
42 <when value="pe">
|
|
|
43 <param name="fastq1" type="data" format="fastq" label="FASTQ" />
|
|
|
44 <param name="fastq2" type="data" format="fastq" label="FASTQ" />
|
|
|
45 </when>
|
|
|
46 </conditional>
|
|
|
47
|
|
5
|
48 <param name="percent_identity" type="integer" label="Percent identity required for an allele match [default 90]" value="90" />
|
|
|
49 <param name="percent_length" type="integer" label="Percent length required for an allele match [default 50]" value="50" />
|
|
0
|
50
|
|
|
51 </inputs>
|
|
|
52 <outputs>
|
|
|
53 <data format="txt" label="ectyper Results" name="results" from_work_dir="results.txt"/>
|
|
|
54 </outputs>
|
|
2
|
55
|
|
0
|
56 <help><![CDATA[
|
|
|
57
|
|
|
58 **Usage: ectyper**
|
|
|
59
|
|
|
60 **INPUT**
|
|
|
61
|
|
2
|
62 A fasta assembly or single or paired end reads
|
|
0
|
63
|
|
|
64 **PERCENTIDENTITY**
|
|
|
65
|
|
|
66 Percentage of identity wanted to use against the database. From 0 to 100, default is 90%.
|
|
|
67
|
|
|
68 **PERCENTLENGTH**
|
|
|
69
|
|
|
70 Percentage of length wanted to use against the database. From 0 to 100, default is 50%.
|
|
|
71
|
|
2
|
72 https://github.com/phac-nml/ecoli_serotyping
|
|
0
|
73
|
|
|
74 ]]></help>
|
|
|
75 </tool>
|