comparison kraken_biom.xml @ 0:3ff4712dc111 draft

planemo upload for repository https://github.com/smdabdoub/kraken-biom commit a7d3ae6f4ff1a49b1b329532379f5ccfafd573fa
author iuc
date Sat, 03 Sep 2022 22:13:08 +0000
parents
children 65eb9962d272
comparison
equal deleted inserted replaced
-1:000000000000 0:3ff4712dc111
1 <tool id="kraken_biom" name="Kraken-biom" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
2 <description>Create BIOM-format tables from kraken output</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <version_command>kraken-biom --version</version_command>
8 <command detect_errors="exit_code"><![CDATA[
9 #for $i, $s in enumerate($kraken_reports)
10 #if $s
11 ln -s '$s' './$i-kraken_report.tabular' &&
12 #end if
13 #end for
14 kraken-biom
15 #for $i, $s in enumerate($kraken_reports)
16 #if $s
17 '$i-kraken_report.tabular'
18 #end if
19 #end for
20 #if $max
21 --max $max
22 #end if
23 #if $min
24 --min $min
25 #end if
26 #if $otu_fp
27 --otu_fp '$otu_fp'
28 #end if
29 #if $fmt
30 --fmt $fmt
31 #end if
32 ]]></command>
33 <inputs>
34 <param name="kraken_reports" type="data" multiple="true" format="tabular" label="Input files to Kraken-biom: Kraken report output file(s)"/>
35 <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">
36 <option value="O" selected="true">O</option>
37 <option value="D">D</option>
38 <option value="P">P</option>
39 <option value="C">C</option>
40 <option value="F">F</option>
41 <option value="G">G</option>
42 <option value="S">S</option>
43 </param>
44 <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">
45 <option value="O">O</option>
46 <option value="D">D</option>
47 <option value="P">P</option>
48 <option value="C">C</option>
49 <option value="F">F</option>
50 <option value="G">G</option>
51 <option value="S" selected="true">S</option>
52 </param>
53 <param argument="--otu_fp" type="data" optional="true" format="tabular" label="OTU FP" 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)"/>
54 <param argument="--fmt" type="select" optional="true" label="Output Format" help="Set the output format of the BIOM table. Default is HDF5">
55 <option value="tsv">TSV</option>
56 <option value="json">JSON</option>
57 <option value="hdf5" selected="true">Biom2 (HDF5)</option>
58 </param>
59 </inputs>
60 <outputs>
61 <data name="biomOutput" format="biom2" from_work_dir="./table.biom" label="Kraken biom output file">
62 <change_format>
63 <when input="fmt" value="json" format="json" />
64 </change_format>
65 <change_format>
66 <when input="fmt" value="tsv" format="tsv" />
67 </change_format>
68 </data>
69 </outputs>
70 <tests>
71 <test expect_num_outputs="1">
72 <param name="kraken_reports" value="krakenReport1.tabular,krakenReport2.tabular,krakenReport3.tabular"/>
73 <param name="fmt" value="hdf5"/>
74 <output name="biomOutput" ftype="biom2">
75 <assert_contents>
76 <has_text text="creation-date"/>
77 </assert_contents>
78 </output>
79 </test>
80 <test expect_num_outputs="1">
81 <param name="kraken_reports" value="krakenReport1.tabular,krakenReport2.tabular,krakenReport3.tabular"/>
82 <param name="fmt" value="tsv"/>
83 <output name="biomOutput" ftype="tsv">
84 <assert_contents>
85 <has_n_lines n="8246"/>
86 <has_text text="Constructed from biom file"/>
87 </assert_contents>
88 </output>
89 </test>
90 <test expect_num_outputs="1">
91 <param name="kraken_reports" value="krakenReport1.tabular,krakenReport2.tabular,krakenReport3.tabular"/>
92 <param name="fmt" value="json"/>
93 <output name="biomOutput" ftype="json">
94 <assert_contents>
95 <has_text text="Biological Observation"/>
96 </assert_contents>
97 </output>
98 </test>
99 </tests>
100 <help><![CDATA[
101 Kraken-biom
102 ===========
103 Create BIOM-format tables (http://biom-format.org) from Kraken output (http://ccb.jhu.edu/software/kraken/).
104
105 Input
106 =====
107 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 '.').
108
109 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.
110
111 Output
112 ======
113 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.
114
115 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.
116 ]]></help>
117 <citations>
118 <citation type="bibtex">
119 @misc{githubseqtk,
120 author = {Dabdoub, SM},
121 year = {2016},
122 title = {kraken-biom},
123 publisher = {GitHub},
124 journal = {GitHub repository},
125 url = {https://github.com/smdabdoub/kraken-biom},
126 }</citation>
127 </citations>
128 </tool>