annotate ecoli_serotyping/ectyper.xml @ 24:53882f206880 draft

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