Mercurial > repos > nml > stringmlst
annotate stringmlst.xml @ 0:fc0f15ca12e0 draft
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
author | nml |
---|---|
date | Mon, 24 Oct 2016 13:15:20 -0400 |
parents | |
children | 4e03573653fe |
rev | line source |
---|---|
0
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
1 <tool id="stringmlst" name="StringMLST" version="1.0.4"> |
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> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
4 <requirement type="package" version="2.1">stringmlst</requirement> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
5 </requirements> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
6 <stdio> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
7 <exit_code range="1:" /> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
8 </stdio> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
9 <command><![CDATA[ |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
10 |
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 python $__tool_directory__/split_by_allele.py --alleles=$alleles --profiles=$scheme |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
14 && |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
15 stringMLST.py --buildDB -c config.txt -k $kmer -P DB |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
16 |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
17 && |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
18 #if $single_or_paired.type == "single" |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
19 ln -s "$input_se" "$single_or_paired.input_se.element_identifier".fastq && |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
20 |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
21 stringMLST.py |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
22 --predict |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
23 -1 "$single_or_paired.input_se.element_identifier".fastq |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
24 -s |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
25 #elif $single_or_paired.type == "paired" |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
26 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
|
27 stringMLST.py |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
28 --predict |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
29 -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
|
30 -p |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
31 #else |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
32 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
|
33 stringMLST.py |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
34 --predict |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
35 -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
|
36 -p |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
37 #end if |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
38 -o $output |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
39 -r |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
40 -P DB -k $kmer |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
41 |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
42 ]]></command> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
43 <inputs> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
44 <conditional name="single_or_paired"> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
45 <param name="type" type="select" label="Read type"> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
46 <option value="single">Single-end</option> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
47 <option value="paired">Paired-end</option> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
48 <option value="collection">Collection Paired-end</option> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
49 </param> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
50 <when value="single"> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
51 <param name="input_se" type="data" format="fastqsanger" label="Single end read file(s)"/> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
52 </when> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
53 <when value="paired"> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
54 <param name="forward_pe" type="data" format="fastqsanger" label="Forward paired-end read file"/> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
55 <param name="reverse_pe" type="data" format="fastqsanger" label="Reverse paired-end read file"/> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
56 </when> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
57 <when value="collection"> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
58 <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
|
59 </when> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
60 </conditional> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
61 <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
|
62 <param name="scheme" type="data" format="tabular" label="ST definitions for MLST scheme"/> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
63 <param name="alleles" type="data" format="fasta" label="Fasta file of MLST alleles"/> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
64 |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
65 </inputs> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
66 <outputs> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
67 <data format="tabular" name="output" label="Results"/> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
68 <data format="txt" name="log" label="Log" from_work_dir="DB.log"/> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
69 <data format="fastqsanger" name="reads" label='Reads' from_work_dir="*.fq" > |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
70 |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
71 </data> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
72 </outputs> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
73 <tests> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
74 <test> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
75 <param name="scheme" value="st.tabular" /> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
76 <param name="alleles" value="st.fasta" /> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
77 <param name="input_se" value="input.fastqsanger" /> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
78 <output file="results.tsv" ftype="tabular" name="output" /> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
79 </test> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
80 </tests> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
81 <help><![CDATA[ |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
82 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
|
83 ]]> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
84 |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
85 </help> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
86 <citations> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
87 </citations> |
fc0f15ca12e0
planemo upload commit 0366addb646f1ddea484915abdeda939d7d49bd5
nml
parents:
diff
changeset
|
88 </tool> |