annotate ectyper.xml @ 0:4b7f728bcd11 draft

planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
author cstrittmatter
date Wed, 28 Mar 2018 14:05:50 -0400
parents
children 5bf7e686149f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
1 <tool id="ectyper" name="ectyper" version="0.1">
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
2 <requirements>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
3 <requirement type="package" version="0.1">ectyper</requirement>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
4 <requirement type="package" version="3.5">python</requirement>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
5 </requirements>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
6 <command detect_errors="exit_code"><![CDATA[
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
7 #if $jobtype.select == "asm"
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
8 ln -s $jobtype.draft ${draft.name}.fasta;
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
9 #else if $jobtype.select == "se"
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
10 ln -s $jobtype.fastq1 ${fastq1.name}_1.fastq;
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
11 #else if $jobtype.select == "pe"
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
12 ln -s $jobtype.fastq1 ${fastq1.name}.fastq;
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
13 ln -s $jobtype.fastq2 ${fastq2.name}.fastq;
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
14 #else if $jobtype.select == "cl"
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
15 mkdir temp_data;
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
16 #for $collection_file in $jobtype.collection_files
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
17 cp $collection_file temp_data/.;
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
18 #end for
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
19
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
20 $__tool_directory__/ectyper -i temp_data
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
21 -d $percent_identity
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
22 -l $percent_length
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
23 -o "./"; cat ./output/output.csv > results.csv;
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
24
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
25 GALAXY_URL
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
26 #end if
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
27
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
28
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
29 #if $jobtype.select != "cl"
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
30 $__tool_directory__/ectyper
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
31 #if $jobtype.select == "asm"
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
32 -i ${draft.name}.fasta
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
33 #else if $jobtype.select == "se"
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
34 -i ${fastq1.name}_1.fastq
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
35 #else if $jobtype.select == "pe"
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
36 -i ${fastq1.name}.fastq,${fastq2.name}.fastq
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
37 #end if
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
38 -d $percent_identity
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
39 -l $percent_length
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
40 -o "./"; cat ./output/output.csv > results.csv;
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
41 #end if
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
42
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
43 ]]></command>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
44 <inputs>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
45 <conditional name="jobtype">
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
46 <param name="select" type="select" label="Assembly or FASTQ Reads?">
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
47 <option value="asm">Genome Assembly</option>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
48 <option value="se">Single-End Reads</option>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
49 <option value="pe">Paired-End Reads</option>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
50 <option value="cl">Collection of Reads</option>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
51 </param>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
52 <when value="asm">
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
53 <param name="draft" type="data" format="fasta" label="FASTA" />
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
54 </when>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
55 <when value="se">
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
56 <param name="fastq1" type="data" format="fastq" label="FASTQ" />
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
57 </when>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
58 <when value="pe">
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
59 <param name="fastq1" type="data" format="fastq" label="FASTQ" />
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
60 <param name="fastq2" type="data" format="fastq" label="FASTQ" />
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
61 </when>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
62 <when value="cl">
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
63 <param type="data_collection" name="collection_files" format="fastq" collection_type="list" label="FASTQS: Must be a Data Set list built from multiple fastq files" />
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
64 </when>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
65 </conditional>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
66
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
67 <param name="percent_identity" type="integer" label="Percent identity required for an allele match [default 90]" value="90" />
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
68 <param name="percent_length" type="integer" label="Percent length required for an allele match [default 50]" value="50" />
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
69
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
70 </inputs>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
71 <outputs>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
72 <data format="csv" label="ectyper Results" name="${input.name}.ectperResults" from_work_dir="*.csv"/>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
73 </outputs>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
74
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
75 <help><![CDATA[
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
76
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
77 **Usage: ectyper**
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
78
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
79 **INPUT**
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
80
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
81 A fasta assembly or single or paired end reads test or data set list of fastqs
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
82
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
83 **PERCENTIDENTITY**
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
84
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
85 Percentage of identity wanted to use against the database. From 0 to 100, default is 90%.
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
86
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
87 **PERCENTLENGTH**
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
88
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
89 Percentage of length wanted to use against the database. From 0 to 100, default is 50%.
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
90
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
91 https://github.com/phac-nml/ecoli_serotyping
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
92
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
93 ]]></help>
4b7f728bcd11 planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
cstrittmatter
parents:
diff changeset
94 </tool>