annotate ectyper.xml @ 3:4df890ffed44 draft default tip

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