annotate kraken_biom.xml @ 3:a6f820992693 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/kraken-biom commit 112af255e3baac15848bf8c6b0769d8754178721
author iuc
date Tue, 11 Feb 2025 10:10:25 +0000
parents 65eb9962d272
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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>
3
a6f820992693 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/kraken-biom commit 112af255e3baac15848bf8c6b0769d8754178721
iuc
parents: 1
diff changeset
6 <expand macro="xrefs"/>
0
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
7 <expand macro="requirements"/>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
8 <version_command>kraken-biom --version</version_command>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
9 <command detect_errors="exit_code"><![CDATA[
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
10 #for $i, $s in enumerate($kraken_reports)
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
11 #if $s
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
12 ln -s '$s' './$i-kraken_report.tabular' &&
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
13 #end if
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
14 #end for
1
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
15 #if $metadata
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
16 ln -s '$metadata' './metadata.tsv' &&
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
17 #end if
0
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
18 kraken-biom
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
19 #for $i, $s in enumerate($kraken_reports)
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
20 #if $s
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
21 '$i-kraken_report.tabular'
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
22 #end if
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
23 #end for
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
24 #if $max
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
25 --max $max
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
26 #end if
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
27 #if $min
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
28 --min $min
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
29 #end if
1
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
30 #if $metadata
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
31 --metadata 'metadata.tsv'
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
32 #end if
0
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
33 #if $otu_fp
1
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
34 --otu_fp 'OTU_FP'
0
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
35 #end if
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
36 #if $fmt
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
37 --fmt $fmt
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
38 #end if
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
39 ]]></command>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
40 <inputs>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
41 <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
42 <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
43 <option value="O" selected="true">O</option>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
44 <option value="D">D</option>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
45 <option value="P">P</option>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
46 <option value="C">C</option>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
47 <option value="F">F</option>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
48 <option value="G">G</option>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
49 <option value="S">S</option>
1
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
50 <option value="SS">SS</option>
0
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
51 </param>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
52 <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
53 <option value="O">O</option>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
54 <option value="D">D</option>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
55 <option value="P">P</option>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
56 <option value="C">C</option>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
57 <option value="F">F</option>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
58 <option value="G">G</option>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
59 <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
60 <option value="SS">SS</option>
0
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
61 </param>
1
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
62 <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
63 <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
64 <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
65 <option value="tsv">TSV</option>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
66 <option value="json">JSON</option>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
67 <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
68 </param>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
69 </inputs>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
70 <outputs>
1
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
71 <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
72 <change_format>
1
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
73 <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
74 </change_format>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
75 <change_format>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
76 <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
77 </change_format>
1
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
78 </data>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
79 <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
80 <filter>otu_fp is True</filter>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
81 </data>
0
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
82 </outputs>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
83 <tests>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
84 <test expect_num_outputs="1">
1
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
85 <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
86 <param name="fmt" value="hdf5"/>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
87 <output name="biomOutput" ftype="biom2">
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
88 <assert_contents>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
89 <has_text text="creation-date"/>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
90 </assert_contents>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
91 </output>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
92 </test>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
93 <test expect_num_outputs="1">
1
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
94 <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
95 <param name="fmt" value="tsv"/>
1
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
96 <output name="biomOutput" ftype="tabular">
0
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
97 <assert_contents>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
98 <has_n_lines n="8246"/>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
99 <has_text text="Constructed from biom file"/>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
100 </assert_contents>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
101 </output>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
102 </test>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
103 <test expect_num_outputs="1">
1
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
104 <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
105 <param name="fmt" value="json"/>
1
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
106 <output name="biomOutput" ftype="biom1">
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
107 <assert_contents>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
108 <has_text text="Biological Observation"/>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
109 </assert_contents>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
110 </output>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
111 </test>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
112 <test expect_num_outputs="2">
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
113 <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
114 <param name="otu_fp" value="true"/>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
115 <param name="fmt" value="json"/>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
116 <output name="biomOutput" ftype="biom1">
0
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
117 <assert_contents>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
118 <has_text text="Biological Observation"/>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
119 </assert_contents>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
120 </output>
1
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
121 <output name="otuOutput" ftype="mothur.map">
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
122 <assert_contents>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
123 <has_n_lines n="8244"/>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
124 </assert_contents>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
125 </output>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
126 </test>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
127 <test expect_num_outputs="2">
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
128 <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
129 <param name="metadata" value="SamplesMetaDataTabular.csv"/>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
130 <param name="otu_fp" value="true"/>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
131 <param name="fmt" value="json"/>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
132 <output name="biomOutput" ftype="biom1">
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
133 <assert_contents>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
134 <has_text text="Biological Observation"/>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
135 </assert_contents>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
136 </output>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
137 <output name="otuOutput" ftype="mothur.map">
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
138 <assert_contents>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
139 <has_n_lines n="8244"/>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
140 </assert_contents>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
141 </output>
65eb9962d272 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit 345448a555041e515c3fca937cc123b5de794ca6
iuc
parents: 0
diff changeset
142 </test>
0
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
143 </tests>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
144 <help><![CDATA[
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
145 Kraken-biom
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
146 ===========
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
147 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
148
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
149 Input
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
150 =====
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
151 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
152
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
153 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
154
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
155 Output
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
156 ======
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
157 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
158
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
159 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
160 ]]></help>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
161 <citations>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
162 <citation type="bibtex">
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
163 @misc{githubseqtk,
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
164 author = {Dabdoub, SM},
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
165 year = {2016},
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
166 title = {kraken-biom},
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
167 publisher = {GitHub},
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
168 journal = {GitHub repository},
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
169 url = {https://github.com/smdabdoub/kraken-biom},
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
170 }</citation>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
171 </citations>
3ff4712dc111 planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
iuc
parents:
diff changeset
172 </tool>