Mercurial > repos > iuc > krakentools_alpha_diversity
comparison alpha_diversity.xml @ 0:e400e5ef0e7c draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/krakentools commit 3dfd5d7d5870695d24d2ede7b321bcaac25e0209
author | iuc |
---|---|
date | Fri, 13 Jan 2023 13:21:35 +0000 |
parents | |
children | 78b69342c280 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e400e5ef0e7c |
---|---|
1 <tool id="krakentools_alpha_diversity" name="Krakentools: Calculates alpha diversity" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> | |
2 <description>from the Bracken abundance estimation file</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="biotools"/> | |
7 <expand macro="requirements"> | |
8 <requirement type="package" version="1.9.3">scipy</requirement> | |
9 </expand> | |
10 <expand macro="version"/> | |
11 <command detect_errors="exit_code"><![CDATA[ | |
12 alpha_diversity.py | |
13 --filename '$filename' | |
14 --alpha '$alpha' | |
15 > '$output' | |
16 ]]></command> | |
17 <inputs> | |
18 <param argument="--filename" type="data" format="tabular" label="Abundance file" help="The file can be created by Bracken"/> | |
19 <param argument="--alpha" type="select" label="Specify alpha diversity type"> | |
20 <option value="Sh" selected="true">Shannon's alpha diversity</option> | |
21 <option value="BP">Berger-Parker's alpha</option> | |
22 <option value="Si">Simpson's diversity</option> | |
23 <option value="ISi">Inverse Simpson's diversity</option> | |
24 <option value="F">Fisher's index</option> | |
25 </param> | |
26 </inputs> | |
27 <outputs> | |
28 <data name="output" format="txt" /> | |
29 </outputs> | |
30 <tests> | |
31 <test> | |
32 <param name="filename" value="bracken_abundance.tabular"/> | |
33 <param name="alpha" value="Sh"/> | |
34 <output name="output" ftype="txt"> | |
35 <assert_contents> | |
36 <has_text text="Shannon's diversity: 4.194127607417342"/> | |
37 </assert_contents> | |
38 </output> | |
39 </test> | |
40 <test> | |
41 <param name="filename" value="bracken_abundance.tabular"/> | |
42 <param name="alpha" value="BP"/> | |
43 <output name="output" ftype="txt"> | |
44 <assert_contents> | |
45 <has_text text="Berger-parker's diversity: 0.05525121757950085"/> | |
46 </assert_contents> | |
47 </output> | |
48 </test> | |
49 <test> | |
50 <param name="filename" value="bracken_abundance.tabular"/> | |
51 <param name="alpha" value="Si"/> | |
52 <output name="output" ftype="txt"> | |
53 <assert_contents> | |
54 <has_text text="Simpson's diversity: 0.9805668888241948"/> | |
55 </assert_contents> | |
56 </output> | |
57 </test> | |
58 <test> | |
59 <param name="filename" value="bracken_abundance.tabular"/> | |
60 <param name="alpha" value="ISi"/> | |
61 <output name="output" ftype="txt"> | |
62 <assert_contents> | |
63 <has_text text="Simpson's Reciprocal Index: 51.45856424909617"/> | |
64 </assert_contents> | |
65 </output> | |
66 </test> | |
67 <test> | |
68 <param name="filename" value="bracken_abundance.tabular"/> | |
69 <param name="alpha" value="F"/> | |
70 <output name="output" ftype="txt"> | |
71 <assert_contents> | |
72 <has_text text="Fisher's index: 1688.9352909860668"/> | |
73 </assert_contents> | |
74 </output> | |
75 </test> | |
76 </tests> | |
77 <help><![CDATA[ | |
78 | |
79 KrakenTools is a suite of scripts to be used alongside the Kraken, KrakenUniq, Kraken 2, or Bracken programs. These scripts are designed to help Kraken users with downstream analysis of Kraken results. This program calculates alpha diversity, from the Bracken abundance estimation file. User must specify Bracken output file, and type of alpha diversity to be calculated. Specific options are specified below. | |
80 | |
81 Input | |
82 ------ | |
83 Bracken abundance estimation file. | |
84 | |
85 Input Bracken file must be in standard Bracken output file format and must be run specifically for Abundance Estimation. Example format: | |
86 name tax_id tax_lvl kraken... added... new... fraction... | |
87 Homo sapiens 9606 S ... .... 999000 0.999000 | |
88 Streptococcus pyogenes 1314 S ... .... 10 0.000001 | |
89 Streptococcus agalactiae 1311 S ... .... 5 0.000000 | |
90 Streptococcus pneumoniae 1313 S ... .... 3 0.000000 | |
91 Bordetella pertussis 520 S ... .... 20 0.000002 | |
92 | |
93 Output | |
94 --------- | |
95 Alpha diversity with the specified type. | |
96 | |
97 ]]></help> | |
98 <expand macro="citations"/> | |
99 </tool> |