Mercurial > repos > devteam > kraken_translate
annotate kraken-translate.xml @ 8:3bf51fef65e5 draft default tip
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/ commit 3873b52450c86190e4fb8767cffe5730d6e37692"
author | iuc |
---|---|
date | Sat, 27 Nov 2021 10:11:18 +0000 (2021-11-27) |
parents | e0458a8ae67b |
children |
rev | line source |
---|---|
6
e44e186320d7
planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/kraken_translate/ commit e8fc7c9dad5f583ad6763ecb9bd8c924832abacd
iuc
parents:
5
diff
changeset
|
1 <tool id="kraken-translate" name="Kraken-translate" version="@WRAPPER_VERSION@"> |
e44e186320d7
planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/kraken_translate/ commit e8fc7c9dad5f583ad6763ecb9bd8c924832abacd
iuc
parents:
5
diff
changeset
|
2 <description>convert taxonomy IDs to names</description> |
0 | 3 <macros> |
4 <import>macros.xml</import> | |
5 </macros> | |
3
443674e0ca7f
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
devteam
parents:
2
diff
changeset
|
6 <expand macro="requirements" /> |
443674e0ca7f
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
devteam
parents:
2
diff
changeset
|
7 <expand macro="version_command" /> |
6
e44e186320d7
planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/kraken_translate/ commit e8fc7c9dad5f583ad6763ecb9bd8c924832abacd
iuc
parents:
5
diff
changeset
|
8 <command detect_errors="exit_code"><![CDATA[ |
1
f23c90363093
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit cb1743eafd4ca98be0148d557770ef8635cc8d4c-dirty
devteam
parents:
0
diff
changeset
|
9 @SET_DATABASE_PATH@ && |
6
e44e186320d7
planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/kraken_translate/ commit e8fc7c9dad5f583ad6763ecb9bd8c924832abacd
iuc
parents:
5
diff
changeset
|
10 |
e44e186320d7
planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/kraken_translate/ commit e8fc7c9dad5f583ad6763ecb9bd8c924832abacd
iuc
parents:
5
diff
changeset
|
11 kraken-translate |
e44e186320d7
planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/kraken_translate/ commit e8fc7c9dad5f583ad6763ecb9bd8c924832abacd
iuc
parents:
5
diff
changeset
|
12 @INPUT_DATABASE@ |
e44e186320d7
planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/kraken_translate/ commit e8fc7c9dad5f583ad6763ecb9bd8c924832abacd
iuc
parents:
5
diff
changeset
|
13 $mpa_format |
e44e186320d7
planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/kraken_translate/ commit e8fc7c9dad5f583ad6763ecb9bd8c924832abacd
iuc
parents:
5
diff
changeset
|
14 '${input}' |
e44e186320d7
planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/kraken_translate/ commit e8fc7c9dad5f583ad6763ecb9bd8c924832abacd
iuc
parents:
5
diff
changeset
|
15 > '${translated}' |
e44e186320d7
planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/kraken_translate/ commit e8fc7c9dad5f583ad6763ecb9bd8c924832abacd
iuc
parents:
5
diff
changeset
|
16 ]]></command> |
0 | 17 <inputs> |
6
e44e186320d7
planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/kraken_translate/ commit e8fc7c9dad5f583ad6763ecb9bd8c924832abacd
iuc
parents:
5
diff
changeset
|
18 <param name="input" type="data" format="tabular" label="Kraken output" |
e44e186320d7
planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/kraken_translate/ commit e8fc7c9dad5f583ad6763ecb9bd8c924832abacd
iuc
parents:
5
diff
changeset
|
19 help="Select taxonomy classification produced by kraken"/> |
e44e186320d7
planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/kraken_translate/ commit e8fc7c9dad5f583ad6763ecb9bd8c924832abacd
iuc
parents:
5
diff
changeset
|
20 <param name="mpa_format" type="boolean" truevalue="--mpa-format" falsevalue="" |
e44e186320d7
planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/kraken_translate/ commit e8fc7c9dad5f583ad6763ecb9bd8c924832abacd
iuc
parents:
5
diff
changeset
|
21 label="Restrict labels to standard rank assignments" /> |
e44e186320d7
planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/kraken_translate/ commit e8fc7c9dad5f583ad6763ecb9bd8c924832abacd
iuc
parents:
5
diff
changeset
|
22 |
0 | 23 <expand macro="input_database" /> |
24 </inputs> | |
25 <outputs> | |
6
e44e186320d7
planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/kraken_translate/ commit e8fc7c9dad5f583ad6763ecb9bd8c924832abacd
iuc
parents:
5
diff
changeset
|
26 <data name="translated" format="tabular" label="${tool.name} on ${on_string}: Translated classification"/> |
0 | 27 </outputs> |
3
443674e0ca7f
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
devteam
parents:
2
diff
changeset
|
28 <tests> |
443674e0ca7f
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
devteam
parents:
2
diff
changeset
|
29 <test> |
7
e0458a8ae67b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/ commit 1590e274eaa41ea77a6017111f9122e0a58aa75d-dirty"
iuc
parents:
6
diff
changeset
|
30 <param name="input" value="kraken-translate/kraken_translate_test1.tab" ftype="tabular"/> |
8
3bf51fef65e5
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/ commit 3873b52450c86190e4fb8767cffe5730d6e37692"
iuc
parents:
7
diff
changeset
|
31 <param name="mpa_format" value="false"/> |
7
e0458a8ae67b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/ commit 1590e274eaa41ea77a6017111f9122e0a58aa75d-dirty"
iuc
parents:
6
diff
changeset
|
32 <param name="kraken_database" value="new_style_test_entry"/> |
e0458a8ae67b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/ commit 1590e274eaa41ea77a6017111f9122e0a58aa75d-dirty"
iuc
parents:
6
diff
changeset
|
33 <output name="translated" file="kraken-translate/kraken_translate_test1_output.tab" ftype="tabular"/> |
3
443674e0ca7f
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
devteam
parents:
2
diff
changeset
|
34 </test> |
443674e0ca7f
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
devteam
parents:
2
diff
changeset
|
35 </tests> |
6
e44e186320d7
planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/kraken_translate/ commit e8fc7c9dad5f583ad6763ecb9bd8c924832abacd
iuc
parents:
5
diff
changeset
|
36 <help><![CDATA[ |
2
a080250b8326
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit cb6ebb843c71dcfc73aa05cc616f8e3229170108-dirty
devteam
parents:
1
diff
changeset
|
37 |
a080250b8326
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit cb6ebb843c71dcfc73aa05cc616f8e3229170108-dirty
devteam
parents:
1
diff
changeset
|
38 .. class:: warningmark |
a080250b8326
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit cb6ebb843c71dcfc73aa05cc616f8e3229170108-dirty
devteam
parents:
1
diff
changeset
|
39 |
a080250b8326
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit cb6ebb843c71dcfc73aa05cc616f8e3229170108-dirty
devteam
parents:
1
diff
changeset
|
40 **Note**: the database used must be the same as the one used in the original Kraken run |
a080250b8326
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit cb6ebb843c71dcfc73aa05cc616f8e3229170108-dirty
devteam
parents:
1
diff
changeset
|
41 |
a080250b8326
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit cb6ebb843c71dcfc73aa05cc616f8e3229170108-dirty
devteam
parents:
1
diff
changeset
|
42 ------- |
a080250b8326
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit cb6ebb843c71dcfc73aa05cc616f8e3229170108-dirty
devteam
parents:
1
diff
changeset
|
43 |
0 | 44 **What it does** |
45 | |
2
a080250b8326
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit cb6ebb843c71dcfc73aa05cc616f8e3229170108-dirty
devteam
parents:
1
diff
changeset
|
46 The file sequences.labels generated by the above example is a text file with two tab-delimited columns, and one line for each classified sequence in sequences.fa; unclassified sequences are not reported by kraken-translate. The first column of kraken-translate's output are the sequence IDs of the classified sequences, and the second column contains the taxonomy of the sequence. For example, an output line from kraken:: |
0 | 47 |
2
a080250b8326
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit cb6ebb843c71dcfc73aa05cc616f8e3229170108-dirty
devteam
parents:
1
diff
changeset
|
48 C SEQ1 562 36 562:6 |
0 | 49 |
2
a080250b8326
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit cb6ebb843c71dcfc73aa05cc616f8e3229170108-dirty
devteam
parents:
1
diff
changeset
|
50 Would result in a corresponding output line from kraken-translate:: |
0 | 51 |
2
a080250b8326
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit cb6ebb843c71dcfc73aa05cc616f8e3229170108-dirty
devteam
parents:
1
diff
changeset
|
52 SEQ1 root;cellular organisms;Bacteria;Proteobacteria;Gammaproteobacteria;Enterobacteriales;Enterobacteriaceae;Escherichia;Escherichia coli |
0 | 53 |
2
a080250b8326
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit cb6ebb843c71dcfc73aa05cc616f8e3229170108-dirty
devteam
parents:
1
diff
changeset
|
54 Alternatively, kraken-translate accepts the option ``--mpa-format`` which will report only levels of the taxonomy with standard rank assignments (superkingdom, kingdom, phylum, class, order, family, genus, species), and uses pipes to delimit the various levels of the taxonomy. For example, ``kraken-translate --mpa-format`` with the above example output from kraken would result in the following line of output:: |
0 | 55 |
2
a080250b8326
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit cb6ebb843c71dcfc73aa05cc616f8e3229170108-dirty
devteam
parents:
1
diff
changeset
|
56 SEQ1 d__Bacteria|p__Proteobacteria|c__Gammaproteobacteria|o__Enterobacteriales|f__Enterobacteriaceae|g__Escherichia|s__Escherichia_coli |
0 | 57 |
2
a080250b8326
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit cb6ebb843c71dcfc73aa05cc616f8e3229170108-dirty
devteam
parents:
1
diff
changeset
|
58 Taxonomy assignments above the superkingdom rank are represented as just "root" when using the ``--mpa-report`` option with kraken-translate. |
6
e44e186320d7
planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/kraken_translate/ commit e8fc7c9dad5f583ad6763ecb9bd8c924832abacd
iuc
parents:
5
diff
changeset
|
59 ]]></help> |
0 | 60 <expand macro="citations" /> |
2
a080250b8326
planemo upload for repository https://github.com/galaxyproject/tools-devteam/blob/master/tool_collections/kraken/kraken_translate/ commit cb6ebb843c71dcfc73aa05cc616f8e3229170108-dirty
devteam
parents:
1
diff
changeset
|
61 </tool> |