Mercurial > repos > thanhlv > bbmap
annotate sendsketch.xml @ 3:abd4087dc088 draft
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit e2d76780e87f3792d756ca65d6eb80e9d47f3234-dirty"
| author | thanhlv |
|---|---|
| date | Mon, 25 Nov 2019 17:54:14 +0000 |
| parents | 68bea7cc680c |
| children |
| rev | line source |
|---|---|
|
0
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
1 <tool id="bbmap_sendsketch" name="sendsketch" version="@VERSION@"> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
2 <description> Identifying species using sketch</description> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
3 <macros> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
4 <import>macros.xml</import> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
5 </macros> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
6 <expand macro="requirements" /> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
7 <expand macro="version_command" /> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
8 |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
9 <command detect_errors="exit_code"><![CDATA[ |
|
1
f285fe3f81ff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e-dirty"
thanhlv
parents:
0
diff
changeset
|
10 #import re |
|
f285fe3f81ff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e-dirty"
thanhlv
parents:
0
diff
changeset
|
11 #set $safename = re.sub('[^\w\-_\.]', '_', $input.element_identifier) |
|
f285fe3f81ff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e-dirty"
thanhlv
parents:
0
diff
changeset
|
12 ln -sf '$input' '$safename' && |
|
0
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
13 sendsketch.sh |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
14 #if $printall |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
15 printall=t |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
16 #end if |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
17 #if $translate |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
18 translate=t |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
19 #end if |
|
2
68bea7cc680c
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit 34025d7211ff832f73481bbf9da4c901c99cb717"
thanhlv
parents:
1
diff
changeset
|
20 in='$safename' |
|
0
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
21 out=output.txt |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
22 outsketch=sketch |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
23 minhits=$minhits |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
24 minani=$minani |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
25 format=$format |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
26 score=t |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
27 $db |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
28 ]]> </command> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
29 |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
30 <inputs> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
31 <param name="input" type="data" format="fasta,fasta.gz" label="Input sequence"/> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
32 <param name="db" type="select" label="Sketch Database"> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
33 <option value="refseq" selected="true">Refseq</option> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
34 <option value="nt">nt</option> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
35 <option value="silva">silva</option> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
36 <option value="protein">RefSeq prokaryotic amino acid sketches</option> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
37 </param> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
38 <param name="format" type="select" label="Output Format"> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
39 <option value="2" selected="true">Default format with, per query, one query header line; |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
40 one column header line; and one reference line per hit</option> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
41 <option value="3">One line per hit, with columns query, reference, ANI, |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
42 and sizeRatio</option> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
43 <option value="4">JSON</option> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
44 </param> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
45 <param name="minhits" type="integer" min="1" value="3" label="Only report records with at least this many hits"/> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
46 <param name="minani" type="float" min="0" value="0.0" max="1" label="Only report records with at least this ANI"/> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
47 <param name="minwkid" type="float" min="0" value="0.0001" max="1" label="Only report records with at least this WKID"/> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
48 <param name="minbases" type="integer" min="0" value="0" label="Ignore ref sketches of sequences shortert than this"/> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
49 <param name="minsizeratio" type="float" min="0" value="0.0" max="1" label="Don't compare sketches if the smaller genome is less than |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
50 this fraction of the size of the larger"/> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
51 <param name="records" type="integer" min="1" value="20" label="Report at most this many best-matching records"/> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
52 <param name="write_sketch" type="boolean" truevalue="yes" falsevalue="no" checked="false" label="Write sketch?"/> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
53 <param name="translate" type="boolean" truevalue="yes" falsevalue="no" checked="false" label="Call genes and translate to proteins. Input should be |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
54 nucleotides"/> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
55 <param name="printall" type="boolean" truevalue="yes" falsevalue="no" checked="false" label="Print all column?"/> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
56 </inputs> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
57 |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
58 <outputs> |
|
3
abd4087dc088
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit e2d76780e87f3792d756ca65d6eb80e9d47f3234-dirty"
thanhlv
parents:
2
diff
changeset
|
59 <data name="Output" format="txt" label="${tool.name} on ${on_string} Results" from_work_dir="output.txt"/> |
|
abd4087dc088
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit e2d76780e87f3792d756ca65d6eb80e9d47f3234-dirty"
thanhlv
parents:
2
diff
changeset
|
60 <data name="Sketch" format="binary" label="${tool.name} on ${on_string} Sketch" from_work_dir="sketch"> |
|
0
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
61 <filter>write_sketch is True</filter> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
62 </data> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
63 </outputs> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
64 <help><![CDATA[ |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
65 Compares query sketches to reference sketches hosted on a |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
66 remote server via the Internet. The input can be sketches made by sketch.sh, |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
67 or fasta/fastq files from which SendSketch will generate sketches. |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
68 Only sketches will sent, not sequences. |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
69 ]]> </help> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
70 <expand macro="citations" /> |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
71 |
|
23ecfa3e5eff
"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/bbmap commit fec9224232f4fe1200df4f66e1fa064533b3f21e"
thanhlv
parents:
diff
changeset
|
72 </tool> |
