Mercurial > repos > iuc > kraken_biom
annotate kraken_biom.xml @ 2:b582a159bb10 draft default tip
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 79f3b3dd54ec6d401563f965ba93b7fca4cadda6
author | iuc |
---|---|
date | Mon, 11 Mar 2024 16:01:58 +0000 |
parents | 65eb9962d272 |
children |
rev | line source |
---|---|
0
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
1 <tool id="kraken_biom" name="Kraken-biom" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
2 <description>Create BIOM-format tables from kraken output</description> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
3 <macros> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
4 <import>macros.xml</import> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
5 </macros> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
6 <expand macro="requirements"/> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
7 <version_command>kraken-biom --version</version_command> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
8 <command detect_errors="exit_code"><![CDATA[ |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
9 #for $i, $s in enumerate($kraken_reports) |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
10 #if $s |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
11 ln -s '$s' './$i-kraken_report.tabular' && |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
12 #end if |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
13 #end for |
1
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
14 #if $metadata |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
15 ln -s '$metadata' './metadata.tsv' && |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
16 #end if |
0
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
17 kraken-biom |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
18 #for $i, $s in enumerate($kraken_reports) |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
19 #if $s |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
20 '$i-kraken_report.tabular' |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
21 #end if |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
22 #end for |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
23 #if $max |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
24 --max $max |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
25 #end if |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
26 #if $min |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
27 --min $min |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
28 #end if |
1
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
29 #if $metadata |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
30 --metadata 'metadata.tsv' |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
31 #end if |
0
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
32 #if $otu_fp |
1
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
33 --otu_fp 'OTU_FP' |
0
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
34 #end if |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
35 #if $fmt |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
36 --fmt $fmt |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
37 #end if |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
38 ]]></command> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
39 <inputs> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
40 <param name="kraken_reports" type="data" multiple="true" format="tabular" label="Input files to Kraken-biom: Kraken report output file(s)"/> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
41 <param argument="--max" type="select" optional="true" label="Max" help="Assigned reads will be recorded only if they are at or below max rank. Default: O"> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
42 <option value="O" selected="true">O</option> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
43 <option value="D">D</option> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
44 <option value="P">P</option> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
45 <option value="C">C</option> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
46 <option value="F">F</option> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
47 <option value="G">G</option> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
48 <option value="S">S</option> |
1
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
49 <option value="SS">SS</option> |
0
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
50 </param> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
51 <param argument="--min" type="select" optional="true" label="Min" help="Reads assigned at and below min rank will be recorded as being assigned to the min rank level. Default: S"> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
52 <option value="O">O</option> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
53 <option value="D">D</option> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
54 <option value="P">P</option> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
55 <option value="C">C</option> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
56 <option value="F">F</option> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
57 <option value="G">G</option> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
58 <option value="S" selected="true">S</option> |
1
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
59 <option value="SS">SS</option> |
0
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
60 </param> |
1
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
61 <param argument="--metadata" type="data" format="tabular" optional="true" label="Sample metadata file" help="This should be in TSV or CSV (Tabular) format. The first column should be the Sample ID (e.g. 0-kraken_report, 1-kraken_report, etc.). This is the same name as the input files. If no metadata is given, basic metadata is added to support importing the BIOM table into sites like phinch (http://phinch.org/index.html). Example for metadata files: http://qiime.org/documentation/ file_formats.html#mapping-file-overview"/> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
62 <param name="otu_fp" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="false" label="Do you want to create an OTU IDs file" help="Create a file containing just the (NCBI) OTU IDs for use with a service such as phyloT (http://phylot.biobyte.de/) to generate a phylogenetic tree for use in downstream analysis such as UniFrac, iTol (itol.embl.de), or PhyloToAST (phylotoast.org)"/> |
0
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
63 <param argument="--fmt" type="select" optional="true" label="Output Format" help="Set the output format of the BIOM table. Default is HDF5"> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
64 <option value="tsv">TSV</option> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
65 <option value="json">JSON</option> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
66 <option value="hdf5" selected="true">Biom2 (HDF5)</option> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
67 </param> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
68 </inputs> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
69 <outputs> |
1
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
70 <data name="biomOutput" format="tabular" from_work_dir="./table.biom" label="Kraken-biom output file"> |
0
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
71 <change_format> |
1
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
72 <when input="fmt" value="json" format="biom1" /> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
73 </change_format> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
74 <change_format> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
75 <when input="fmt" value="hdf5" format="biom2" /> |
0
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
76 </change_format> |
1
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
77 </data> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
78 <data name="otuOutput" format="mothur.map" from_work_dir="./OTU_FP" label="OTU File"> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
79 <filter>otu_fp is True</filter> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
80 </data> |
0
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
81 </outputs> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
82 <tests> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
83 <test expect_num_outputs="1"> |
1
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
84 <param name="kraken_reports" value="MG_AIR20200707.tabular,MG_AIR20200708.tabular,MG_AIR20200709.tabular"/> |
0
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
85 <param name="fmt" value="hdf5"/> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
86 <output name="biomOutput" ftype="biom2"> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
87 <assert_contents> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
88 <has_text text="creation-date"/> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
89 </assert_contents> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
90 </output> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
91 </test> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
92 <test expect_num_outputs="1"> |
1
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
93 <param name="kraken_reports" value="MG_AIR20200707.tabular,MG_AIR20200708.tabular,MG_AIR20200709.tabular"/> |
0
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
94 <param name="fmt" value="tsv"/> |
1
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
95 <output name="biomOutput" ftype="tabular"> |
0
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
96 <assert_contents> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
97 <has_n_lines n="8246"/> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
98 <has_text text="Constructed from biom file"/> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
99 </assert_contents> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
100 </output> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
101 </test> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
102 <test expect_num_outputs="1"> |
1
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
103 <param name="kraken_reports" value="MG_AIR20200707.tabular,MG_AIR20200708.tabular,MG_AIR20200709.tabular"/> |
0
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
104 <param name="fmt" value="json"/> |
1
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
105 <output name="biomOutput" ftype="biom1"> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
106 <assert_contents> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
107 <has_text text="Biological Observation"/> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
108 </assert_contents> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
109 </output> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
110 </test> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
111 <test expect_num_outputs="2"> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
112 <param name="kraken_reports" value="MG_AIR20200707.tabular,MG_AIR20200708.tabular,MG_AIR20200709.tabular"/> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
113 <param name="otu_fp" value="true"/> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
114 <param name="fmt" value="json"/> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
115 <output name="biomOutput" ftype="biom1"> |
0
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
116 <assert_contents> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
117 <has_text text="Biological Observation"/> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
118 </assert_contents> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
119 </output> |
1
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
120 <output name="otuOutput" ftype="mothur.map"> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
121 <assert_contents> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
122 <has_n_lines n="8244"/> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
123 </assert_contents> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
124 </output> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
125 </test> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
126 <test expect_num_outputs="2"> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
127 <param name="kraken_reports" value="MG_AIR20200707.tabular,MG_AIR20200708.tabular,MG_AIR20200709.tabular"/> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
128 <param name="metadata" value="SamplesMetaDataTabular.csv"/> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
129 <param name="otu_fp" value="true"/> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
130 <param name="fmt" value="json"/> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
131 <output name="biomOutput" ftype="biom1"> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
132 <assert_contents> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
133 <has_text text="Biological Observation"/> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
134 </assert_contents> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
135 </output> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
136 <output name="otuOutput" ftype="mothur.map"> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
137 <assert_contents> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
138 <has_n_lines n="8244"/> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
139 </assert_contents> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
140 </output> |
65eb9962d272
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents:
0
diff
changeset
|
141 </test> |
0
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
142 </tests> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
143 <help><![CDATA[ |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
144 Kraken-biom |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
145 =========== |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
146 Create BIOM-format tables (http://biom-format.org) from Kraken output (http://ccb.jhu.edu/software/kraken/). |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
147 |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
148 Input |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
149 ===== |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
150 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 '.'). |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
151 |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
152 OTUs are defined by the --max and --min arguments. By default these are set to Order and Species respectively. This means that counts assigned directly to an Order, Family, or Genus are recorded under the associated OTU ID, and counts assigned at or below the Species level are assigned to the OTU ID for the species. Setting a minimum rank below Species is not yet available. |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
153 |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
154 Output |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
155 ====== |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
156 The BIOM format currently has two major versions. Version 1.0 uses the JSON (JavaScript Object Notation) format as a base. Version 2.x uses the HDF5 (Hierarchical Data Format v5) as a base. The output format can be specified with the --fmt option. Note that a tab-separated (tsv) output format is also available. The resulting file will not contain most of the metadata, but can be opened by spreadsheet programs. |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
157 |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
158 Version 2 of the BIOM format is used by default for output, but requires the Python library 'h5py'. If the library is not installed, kraken-biom will automatically switch to using version 1.0. Note that the output can optionally be compressed with gzip (--gzip) for version 1.0 and TSV files. Version 2 files are automatically compressed. |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
159 ]]></help> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
160 <citations> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
161 <citation type="bibtex"> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
162 @misc{githubseqtk, |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
163 author = {Dabdoub, SM}, |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
164 year = {2016}, |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
165 title = {kraken-biom}, |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
166 publisher = {GitHub}, |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
167 journal = {GitHub repository}, |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
168 url = {https://github.com/smdabdoub/kraken-biom}, |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
169 }</citation> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
170 </citations> |
3ff4712dc111
planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff
changeset
|
171 </tool> |