0
|
1 <tool id="ectyper" name="ectyper" version="2.0">
|
|
2 <requirements>
|
|
3 <requirement type="package" version="3.6.3">python</requirement>
|
|
4 <requirement type="package">biopython</requirement>
|
|
5 <requirement type="package">blast</requirement>
|
|
6 <requirement type="package">samtools</requirement>
|
|
7 <requirement type="package">bcftools</requirement>
|
|
8 <requirement type="package">bowtie</requirement>
|
|
9 <requirement type="package">spades</requirement>
|
|
10 <requirement type="package">seqtk</requirement>
|
|
11 # <requirement type="package">mash</requirement>
|
|
12 </requirements>
|
|
13 <command detect_errors="exit_code"><![CDATA[
|
1
|
14 #if $jobtype.select == "asm"
|
|
15 ln -s $jobtype.draft sample.fasta;
|
|
16 #else if $jobtype.select == "se"
|
|
17 ln -s $jobtype.fastq1 sample_1.fastq;
|
|
18 #else if $jobtype.select == "pe"
|
|
19 ln -s $jobtype.fastq1 sample_1.fastq;
|
|
20 ln -s $jobtype.fastq2 sample_2.fastq;
|
|
21 #end if
|
0
|
22
|
|
23 $__tool_directory__/ectyper.py
|
1
|
24 #if $jobtype.select == "asm"
|
|
25 -m 4
|
|
26 -i sample.fasta
|
|
27 #else if $jobtype.select == "se"
|
|
28 -m 3
|
|
29 -i sample_1.fastq
|
|
30 #else if $jobtype.select == "pe"
|
|
31 -m 2
|
|
32 -i sample_1.fastq sample_2.fastq
|
|
33 #end if
|
|
34 -b $maptype.select;
|
0
|
35 cat SeqSero_result*/Seqsero_result.txt > results.txt;
|
|
36
|
|
37 ]]></command>
|
|
38 <inputs>
|
1
|
39 <conditional name="jobtype">
|
|
40 <param name="select" type="select" label="Assembly or FASTQ Reads?">
|
|
41 <option value="asm">Genome Assembly</option>
|
|
42 <option value="se">Single-End Reads</option>
|
|
43 <option value="pe">Paired-End Reads</option>
|
0
|
44 </param>
|
1
|
45 <when value="asm">
|
|
46 <param name="draft" type="data" format="fasta" label="FASTA" />
|
|
47 </when>
|
|
48 <when value="se">
|
|
49 <param name="fastq1" type="data" format="fastq" label="FASTQ" />
|
|
50 </when>
|
|
51 <when value="pe">
|
|
52 <param name="fastq1" type="data" format="fastq" label="FASTQ" />
|
|
53 <param name="fastq2" type="data" format="fastq" label="FASTQ" />
|
|
54 </when>
|
|
55 </conditional>
|
|
56
|
|
57 <conditional name="maptype">
|
|
58 <param name="select" type="select" label="Algorithms for BWA mapping?">
|
|
59 <option value="sam">sam</option>
|
0
|
60 <option value="mem">mem</option>
|
|
61 </param>
|
1
|
62 </conditional>
|
0
|
63
|
|
64
|
|
65 </inputs>
|
|
66 <outputs>
|
|
67 <data format="txt" label="ectyper Results" name="results" from_work_dir="results.txt"/>
|
|
68 </outputs>
|
|
69 <tests>
|
|
70 <test>
|
|
71 <output name="results" file="results.txt"/>
|
|
72 </test>
|
|
73 </tests>
|
|
74 <help><![CDATA[
|
|
75
|
|
76 **Usage: ectyper**
|
|
77
|
|
78 **INPUT**
|
|
79
|
1
|
80 A fasta assembly
|
0
|
81
|
|
82 **PERCENTIDENTITY**
|
|
83
|
|
84 Percentage of identity wanted to use against the database. From 0 to 100, default is 90%.
|
|
85
|
|
86 **PERCENTLENGTH**
|
|
87
|
|
88 Percentage of length wanted to use against the database. From 0 to 100, default is 50%.
|
|
89
|
|
90 **verify**
|
|
91
|
|
92 Enable E. Coli. verification
|
|
93
|
|
94 **species**
|
|
95
|
|
96 Enable species identification when non-ecoli genome is found Note: refseq downloading is required when running this option for the first time.
|
|
97
|
|
98 **OUTPUT**
|
|
99 Directory location of output files.
|
|
100 ]]></help>
|
|
101 </tool>
|