annotate ectyper.xml @ 0:4724d20b14de draft

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