annotate stringmlst.xml @ 1:4e03573653fe draft default tip

planemo upload commit 008f4667b70be22e9ddf496738b3f74bb942ed28
author nml
date Tue, 19 Sep 2017 16:34:57 -0400
parents fc0f15ca12e0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
4e03573653fe planemo upload commit 008f4667b70be22e9ddf496738b3f74bb942ed28
nml
parents: 0
diff changeset
1 <tool id="stringmlst" name="StringMLST" version="1.1.0">
0
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
2 <description>k-mer tool for multilocus sequence typing</description>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
3 <requirements>
1
4e03573653fe planemo upload commit 008f4667b70be22e9ddf496738b3f74bb942ed28
nml
parents: 0
diff changeset
4 <requirement type="package" version="0.4.1">stringMLST</requirement>
4e03573653fe planemo upload commit 008f4667b70be22e9ddf496738b3f74bb942ed28
nml
parents: 0
diff changeset
5 <requirement type="package" version="1.70">biopython</requirement>
0
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
6 </requirements>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
7 <stdio>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
8 <exit_code range="1:" />
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
9 </stdio>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
10 <command><![CDATA[
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
11
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
12
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
13
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
14 python $__tool_directory__/split_by_allele.py --alleles=$alleles --profiles=$scheme
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
15 &&
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
16 stringMLST.py --buildDB -c config.txt -k $kmer -P DB
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
17
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
18 &&
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
19 #if $single_or_paired.type == "single"
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
20 ln -s "$input_se" "$single_or_paired.input_se.element_identifier".fastq &&
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
21
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
22 stringMLST.py
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
23 --predict
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
24 -1 "$single_or_paired.input_se.element_identifier".fastq
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
25 -s
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
26 #elif $single_or_paired.type == "paired"
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
27 ln -s "$single_or_paired.forward_pe" "$single_or_paired.forward_pe.name"_1.fastq && ln -s "$single_or_paired.reverse_pe" "$single_or_paired.forward_pe.name"_2.fastq &&
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
28 stringMLST.py
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
29 --predict
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
30 -1 "$single_or_paired.forward_pe.name"_1.fastq -2 "$single_or_paired.forward_pe.name"_2.fastq
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
31 -p
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
32 #else
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
33 ln -s "$single_or_paired.fastq_collection.forward" "$single_or_paired.fastq_collection.forward.name"_1.fastq && ln -s "$single_or_paired.fastq_collection.reverse" "$single_or_paired.fastq_collection.forward.name"_2.fastq &&
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
34 stringMLST.py
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
35 --predict
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
36 -1 "$single_or_paired.fastq_collection.forward.name"_1.fastq -2 "$single_or_paired.fastq_collection.forward.name"_2.fastq
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
37 -p
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
38 #end if
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
39 -o $output
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
40 -r
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
41 -P DB -k $kmer
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
42
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
43 ]]></command>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
44 <inputs>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
45 <conditional name="single_or_paired">
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
46 <param name="type" type="select" label="Read type">
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
47 <option value="single">Single-end</option>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
48 <option value="paired">Paired-end</option>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
49 <option value="collection">Collection Paired-end</option>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
50 </param>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
51 <when value="single">
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
52 <param name="input_se" type="data" format="fastqsanger" label="Single end read file(s)"/>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
53 </when>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
54 <when value="paired">
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
55 <param name="forward_pe" type="data" format="fastqsanger" label="Forward paired-end read file"/>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
56 <param name="reverse_pe" type="data" format="fastqsanger" label="Reverse paired-end read file"/>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
57 </when>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
58 <when value="collection">
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
59 <param name="fastq_collection" type="data_collection" label="Paired-end reads collection" optional="false" format="fastqsanger" collection_type="paired" />
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
60 </when>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
61 </conditional>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
62 <param name="kmer" type="integer" label="K-mer to use" value="35" help=" Kmer length for which the db was created(Default k = 35)." />
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
63 <param name="scheme" type="data" format="tabular" label="ST definitions for MLST scheme"/>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
64 <param name="alleles" type="data" format="fasta" label="Fasta file of MLST alleles"/>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
65
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
66 </inputs>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
67 <outputs>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
68 <data format="tabular" name="output" label="Results"/>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
69 <data format="txt" name="log" label="Log" from_work_dir="DB.log"/>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
70 <data format="fastqsanger" name="reads" label='Reads' from_work_dir="*.fq" >
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
71
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
72 </data>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
73 </outputs>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
74 <tests>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
75 <test>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
76 <param name="scheme" value="st.tabular" />
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
77 <param name="alleles" value="st.fasta" />
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
78 <param name="input_se" value="input.fastqsanger" />
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
79 <output file="results.tsv" ftype="tabular" name="output" />
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
80 </test>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
81 </tests>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
82 <help><![CDATA[
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
83 Original manual for command line available at http://jordan.biology.gatech.edu/page/software/stringmlst/stringMLST-useageDocumentation.pdf
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
84 ]]>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
85
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
86 </help>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
87 <citations>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
88 </citations>
fc0f15ca12e0 planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff changeset
89 </tool>