Mercurial > repos > youyuh48 > kraken_tools
annotate kraken_biom.xml @ 1:7c9b12bda2a6 draft default tip
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
author | youyuh48 |
---|---|
date | Sun, 02 May 2021 06:21:24 +0000 |
parents | |
children |
rev | line source |
---|---|
1
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
1 <tool id="kraken_biom" name="kraken-biom" version="0.1.0"> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
2 <description>Create BIOM-format tables from Kraken output</description> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
3 <requirements> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
4 <requirement type="package" version="1.0.1">kraken-biom</requirement> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
5 </requirements> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
6 <command detect_errors="exit_code"> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
7 <![CDATA[ |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
8 #import re |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
9 #set $files_to_convert = [] |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
10 #for $i, $file in enumerate( $input_files ): |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
11 #set $safename = re.sub('[^\w\-_\.]', '_', $file.element_identifier) |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
12 #set $newfile = $safename + ".report" |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
13 #silent files_to_convert.append(str($newfile)) |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
14 ln -s '$file' ./$newfile && |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
15 #end for |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
16 |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
17 kraken-biom |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
18 #for $file in $files_to_convert: |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
19 '$file' |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
20 #end for |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
21 -o '$output1' |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
22 ]]> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
23 </command> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
24 <inputs> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
25 <param type="data" name="input_files" format="tabular" multiple="True" |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
26 label="Kraken report output" help="Select taxonomy classification report produced by Kraken" /> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
27 </inputs> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
28 <outputs> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
29 <data name="output1" format="biom2" label="${tool.name} on ${on_string}" /> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
30 </outputs> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
31 <help> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
32 <![CDATA[ |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
33 .. class:: infomark |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
34 |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
35 **What it does** |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
36 |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
37 The program takes as input, one or more files output from the kraken-report tool. Each file is parsed and the counts for each OTU (operational taxonomic unit) are recorded, along with database ID (e.g. NCBI), and lineage. The extracted data are then stored in a BIOM table where each count is linked to the Sample and OTU it belongs to. Sample IDs are extracted from the input filenames (everything up to the '.'). |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
38 |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
39 ]]> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
40 </help> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
41 <citations> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
42 <citation type="bibtex"> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
43 @misc{githubKrakenTools, |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
44 title = {KrakenTools}, |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
45 publisher = {GitHub}, |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
46 journal = {GitHub repository}, |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
47 url = {https://github.com/smdabdoub/kraken-biom}, |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
48 }</citation> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
49 </citations> |
7c9b12bda2a6
planemo upload for repository https://github.com/youyuh48/galaxy-tools/tree/master/tools/KrakenTools
youyuh48
parents:
diff
changeset
|
50 </tool> |